/* Slim — freelance site
   Palette "Berkeley hills"
   paper:  #EEF0EA  sage-tinted paper
   ink:    #151A17  green-black
   accent: #9CCBB5  eucalyptus (fills)  /  #2E6B57 (text, links)
   muted:  #5B655F  lichen grey
*/

:root {
  --bg: #EEF0EA;
  --bg-alt: #E3E7DF;
  --ink: #151A17;
  --ink-2: #26302B;
  --muted: #5B655F;
  --accent: #9CCBB5;
  --accent-strong: #2E6B57;
  --line: rgba(21, 26, 23, 0.10);
  --card: #ffffff;
  --shadow: 0 1px 0 rgba(10, 10, 15, 0.04), 0 8px 24px rgba(10, 10, 15, 0.05);
  --radius: 16px;
  --max: 1280px;
  --serif: 'Newsreader', 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --term-bg: #15151e;
  --term-bg-2: #0e0e16;
  --term-ink: #cdd1e8;
  --hero-card-bg: #ffffff;
  --section-alt-bg: #E3E7DF;
  --btn-ghost-bg: transparent;
  --btn-ghost-color: var(--ink);
  --btn-ghost-border: rgba(21, 26, 23, 0.2);
  --nav-bg: rgba(238, 240, 234, 0.85);
}

[data-theme="dark"] {
  --bg: #0F1412;
  --bg-alt: #161D1A;
  --ink: #EDF1EE;
  --ink-2: #D2DAD5;
  --muted: #8D9A93;
  --accent: #9CCBB5;
  --accent-strong: #A6D8C1;
  --line: rgba(255, 255, 255, 0.08);
  --card: #18201C;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --term-bg: #0a0b12;
  --term-bg-2: #050609;
  --term-ink: #d6dae9;
  --hero-card-bg: #18201C;
  --section-alt-bg: #161D1A;
  --btn-ghost-bg: transparent;
  --btn-ghost-color: var(--ink);
  --btn-ghost-border: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(15, 20, 18, 0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
}

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

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

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238,240,234, 0.8);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06) inset;
}
.brand-name { font-size: 17px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--accent-strong); }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { color: var(--bg) !important; opacity: .9; }

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 6px 12px;
  background: rgba(156,203,181,0.18);
  border-radius: 999px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
  text-wrap: balance;
  margin: 0 0 28px;
  color: var(--ink);
}
.accent {
  color: var(--accent-strong);
  font-weight: 600;
}
.accent-italic {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 400;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 34em;
}
.lede strong { font-weight: 700; color: var(--ink); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10,10,15,0.18);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-light {
  color: var(--bg);
  border-color: rgba(238,240,234,0.3);
}
.btn-light:hover { border-color: var(--bg); color: var(--bg); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.hero-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dbb6f;
  box-shadow: 0 0 0 4px rgba(45,187,111,0.18);
}
.dot-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hero-card-row:last-child { border-bottom: none; }
.kicker {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.value {
  font-weight: 600;
  font-size: 15px;
  text-align: right;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}
.section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-num {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.edge-msg { animation: ai-in .3s ease both; }
@media (prefers-reduced-motion: reduce) { .edge-msg { animation: none; } }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

/* ---------- SERVICE CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* 5-card row: 3 columns at full width, then the remaining 2 cards span
   the first two columns (no orphaned card on the right). */
.cards-5 {
  grid-template-columns: repeat(6, 1fr);
}
.cards-5 .card:nth-child(4) { grid-column: span 3; }
.cards-5 .card:nth-child(5) { grid-column: span 3; }

.service-group {
  margin-bottom: 80px;
}
.service-group:last-child { margin-bottom: 0; }
.service-group-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}
.service-group-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  font-style: italic;
  flex-shrink: 0;
}
.service-group-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.service-group-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  flex: 1;
  text-align: right;
  min-width: 200px;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 640px;
  line-height: 1.5;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(156,203,181,0.5);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(156,203,181,0.18);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent-strong);
  margin: 0 0 14px;
  font-weight: 400;
}
.card-body {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.card-list li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0 4px 18px;
  position: relative;
  font-weight: 500;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(10,10,15,0.08);
  border-color: rgba(156,203,181,0.6);
}
.portfolio-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e3e1ed;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.portfolio-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.portfolio-shot-code {
  background: linear-gradient(135deg, #11111a 0%, #1f2030 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}
.code-card {
  width: 100%;
  color: #cdd1e8;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 12.5px;
}
.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.code-label { color: #fff; font-weight: 600; }
.code-lang { margin-left: auto; color: rgba(255,255,255,0.4); font-size: 11px; }
.code-card pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: #b8bcd6;
}
.code-card code { color: inherit; }
.portfolio-meta { padding: 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.portfolio-meta h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.portfolio-meta p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 14px;
  line-height: 1.55;
}
.link-arrow {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.section-head-vertical .section-title { font-size: clamp(38px, 4.5vw, 56px); }
.about-copy .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
}
.about-copy .lede strong { font-weight: 600; }
.about-copy p { margin: 0 0 16px; font-size: 17px; color: var(--ink-2); }
.about-copy .muted { color: var(--muted); font-size: 15px; }

.skills {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.skills-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 9px;
}
.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.tags li {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  color: var(--ink-2);
  transition: border-color .12s ease, color .12s ease;
}
.tags li:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* ---------- CONTACT ---------- */
.section-dark {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink);
}
.section-dark .section-num { color: var(--accent); }
.contact {
  text-align: center;
  max-width: 820px;
  padding: 40px 0;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--bg);
}
.contact-title .accent-italic { color: var(--accent); }
.contact-lede {
  font-size: 19px;
  color: rgba(238,240,234,0.7);
  margin: 0 auto 40px;
  max-width: 540px;
}
.section-dark .btn-primary { background: var(--accent); color: var(--ink); }
.section-dark .btn-primary:hover { background: #fff; color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--accent-strong); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 520px; }
  .cards { grid-template-columns: 1fr; }
  .cards-5 { grid-template-columns: 1fr; }
  .cards-5 .card:nth-child(4),
  .cards-5 .card:nth-child(5) { grid-column: auto; }
  .service-group-sub { text-align: left; }
  .portfolio { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .display { font-size: 44px; }
  .lede { font-size: 18px; }
  .section-title { font-size: 32px; }
  .contact-title { font-size: 44px; }
  .skills { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Card lead / flag (added Oct 2026) ---------- */
.card-lead {
  border-color: rgba(156,203,181,0.45);
  background: linear-gradient(180deg, #f6f9f6 0%, #ffffff 100%);
}
.card-flag {
  display: inline-block;
  font-family: 'SF Mono','Menlo','Monaco',monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2E6B57;
  background: rgba(156,203,181,0.16);
  border: 1px solid rgba(156,203,181,0.35);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: 2px;
}
.card h3 { display: flex; align-items: baseline; flex-wrap: wrap; }

/* ---------- Theme toggle (added Oct 2026) ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--btn-ghost-border);
  border-radius: 999px;
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-color);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  user-select: none;
  margin-left: 6px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-strong); }
.theme-toggle .ico { font-size: 14px; line-height: 1; }

/* Body backgrounds that were hard-coded in :root-scope pieces */
.nav { background: var(--nav-bg); backdrop-filter: blur(12px); }
.section-alt { background: var(--section-alt-bg); }
.hero-card { background: var(--hero-card-bg); }
.term { background: linear-gradient(180deg, var(--term-bg) 0%, var(--term-bg-2) 100%); }
.term-body { color: var(--term-ink); }

/* Smooth transition when toggling */
body, .nav, .section, .section-alt, .hero-card, .card, .btn-ghost, .theme-toggle {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ---------- See it in motion — interactive demo (Oct 2026) ---------- */
.live-tabs {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin: 0 auto 28px;
  width: fit-content;
  display: flex;
  justify-content: center;
}
.live-tab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.live-tab:hover { color: var(--ink); }
.live-tab.active {
  background: var(--ink);
  color: var(--bg);
}

.live-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.live-pane { display: none; min-height: 520px; }
.live-pane.active { display: flex; }

/* --- Pane 0: 3D site hero --- */
.scene-3d {
  width: 100%;
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top, rgba(156,203,181,0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  perspective: 1400px;
  overflow: hidden;
  cursor: grab;
}
.browser-mock {
  width: 78%;
  max-width: 720px;
  aspect-ratio: 16 / 10;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 40px 80px -20px rgba(10,10,15,0.35), 0 0 0 1px rgba(156,203,181,0.18) inset;
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }
.browser-url {
  flex: 1;
  font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  text-align: center;
}
.browser-content {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  background: var(--bg);
}
.hero-orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit-ring { position: absolute; border: 1px dashed var(--accent); border-radius: 50%; opacity: 0.5; }
.orbit-ring.r1 { width: 220px; height: 220px; animation: spin 12s linear infinite; }
.orbit-ring.r2 { width: 320px; height: 320px; animation: spin 20s linear infinite reverse; opacity: 0.35; }
.orbit-ring.r3 { width: 420px; height: 420px; animation: spin 32s linear infinite; opacity: 0.22; }
.orb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #B9DCCB 0%, #2E6B57 60%, #1F4F40 100%);
  box-shadow: 0 0 60px rgba(156,203,181,0.7), inset -8px -8px 16px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
  animation: pulse-orb 3s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(156,203,181,0.7), inset -8px -8px 16px rgba(0,0,0,0.25); }
  50%      { transform: scale(1.08); box-shadow: 0 0 90px rgba(156,203,181,0.9), inset -8px -8px 16px rgba(0,0,0,0.25); }
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  position: relative;
  z-index: 2;
  color: var(--ink);
}
.hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}
.hero-cta {
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: transform .12s ease;
}
.hero-cta:hover { transform: translateY(-1px); }
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 8px 0;
  font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.hero-marquee span {
  display: inline-block;
  animation: marquee 14s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cursor-tip {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

/* --- Pane 1: AI chat --- */
.chat-stage {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  font-family: var(--sans);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  border-bottom: none;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9CCBB5, #2E6B57);
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.chat-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.chat-status { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.dot-online { width: 6px; height: 6px; border-radius: 50%; background: #2dbb6f; display: inline-block; }
.chat-body {
  flex: 1;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.chat-msg span:first-child { display: block; }
.chat-msg.from-user {
  background: var(--ink);
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.from-bot {
  background: var(--bg-alt);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.from-bot .chat-code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace);
  font-size: 12px;
  margin: 6px 0;
  color: var(--ink);
}
.chat-msg.typing { padding: 14px 18px; display: flex; gap: 4px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s 1; }
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.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; } }
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 14px 14px;
  font-size: 13px;
}
.chat-placeholder { color: var(--muted); }
.chat-send {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 14px;
}

/* --- Pane 2: Automation flow --- */
.flow-stage {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.flow-node {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(10,10,15,0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.flow-node:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10,10,15,0.1); }
.flow-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--accent-strong);
}
.flow-node.n-trigger .flow-icon { background: rgba(156,203,181,0.18); color: var(--accent-strong); }
.flow-node.n-llm .flow-icon    { background: rgba(185,220,203,0.2); color: #2E6B57; }
.flow-node.n-action .flow-icon  { background: rgba(45,187,111,0.18); color: #1f9d5b; }
.flow-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.flow-sub { font-size: 11px; color: var(--muted); font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace); }
.flow-edge { width: 60px; height: 14px; flex-shrink: 0; }
.flow-stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  padding: 40px 32px 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.flow-stats > div { display: flex; flex-direction: column; align-items: center; }
.fs-num { font-family: var(--serif); font-size: 32px; color: var(--ink); }
.fs-lab { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* --- Pane 3: Telegram bot stream --- */
.tg-stage {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  font-family: var(--sans);
}
.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #6ab2f2 0%, #4d9be0 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.tg-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; font-size: 16px; }
.tg-name { font-weight: 600; font-size: 14px; }
.tg-name .tg-online { display: block; font-size: 11px; opacity: 0.85; font-weight: 400; }
.tg-body {
  flex: 1;
  background: linear-gradient(180deg, #c8def0 0%, #b0d0e8 100%);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 380px;
}
.tg-msg {
  background: white;
  border-radius: 10px;
  padding: 6px 10px 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #111;
  max-width: 78%;
  align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  position: relative;
  word-wrap: break-word;
}
.tg-msg.bot { background: #e8f4ff; }
.tg-msg.cmd { background: white; max-width: 92%; }
.tg-msg .tg-who { font-size: 11px; font-weight: 600; color: #2a7bbf; margin-bottom: 1px; }
.tg-cmds { font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace); font-size: 12px; line-height: 1.7; }
.tg-cmds span { color: #2a7bbf; }

/* Responsive */
@media (max-width: 720px) {
  .live-stage { min-height: 460px; }
  .live-pane { min-height: 460px; }
  .scene-3d, .chat-stage, .tg-stage, .flow-stage { min-height: 460px; }
  .browser-mock { width: 92%; }
  .flow-stage { padding: 32px 12px 0; }
  .flow-edge { width: 24px; }
  .flow-stats { gap: 16px; }
}

/* ---------- Interactive portfolio cards (Oct 2026) ---------- */

/* --- Edge AI: live AI chat + animated orb --- */
.portfolio-shot-edge { padding: 0 !important; }
.edge-stage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0e0f17 0%, #1a1d2c 100%);
  position: relative;
  overflow: hidden;
}
.edge-orb {
  width: 70px; height: 70px;
  position: relative;
  display: grid; place-items: center;
}
.edge-orb-ring {
  position: absolute;
  border: 1px solid rgba(156,203,181,0.5);
  border-radius: 50%;
  pointer-events: none;
}
.edge-orb-ring.r1 { width: 50px; height: 50px; animation: edge-spin 4s linear infinite; }
.edge-orb-ring.r2 { width: 64px; height: 64px; animation: edge-spin 6s linear infinite reverse; opacity: 0.6; }
.edge-orb-ring.r3 { width: 80px; height: 80px; animation: edge-spin 10s linear infinite; opacity: 0.35; }
@keyframes edge-spin { to { transform: rotate(360deg); } }
.edge-orb-core {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #B9DCCB 0%, #2E6B57 60%, #1F4F40 100%);
  box-shadow: 0 0 20px rgba(156,203,181,0.85);
  animation: edge-pulse 2.4s ease-in-out infinite;
}
@keyframes edge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.edge-msgs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace);
  font-size: 11px;
  line-height: 1.4;
  color: #d6dae9;
  padding-left: 8px;
  border-left: 1px solid rgba(156,203,181,0.2);
}
.edge-msg { padding: 4px 8px; border-radius: 6px; max-width: 95%; }
.edge-msg.from-user { background: rgba(255,255,255,0.06); align-self: flex-end; }
.edge-msg.from-ai { background: rgba(156,203,181,0.18); align-self: flex-start; color: #f3f4f8; }
.edge-msg b { color: #B9DCCB; font-weight: 600; }
.edge-msg.typing { padding: 6px 8px; display: flex; gap: 3px; align-items: center; }
.edge-msg.typing span { width: 5px; height: 5px; border-radius: 50%; background: #B9DCCB; animation: edge-typing 1.2s 1; }
.edge-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.edge-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes edge-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }

/* --- Hooja Fun: Twitter post --- */
.portfolio-shot-tweet { background: var(--card); }
.tweet {
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  background: var(--card);
}
.tweet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tweet-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B9DCCB 0%, #2E6B57 100%);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tweet-name { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.tweet-check { color: #2a7bbf; font-size: 12px; }
.tweet-handle { font-size: 11px; color: var(--muted); }
.tweet-logo { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--ink); }
.tweet-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
  flex: 1;
}
.tweet-body b { font-weight: 700; }
.tweet-stats { display: flex; gap: 14px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.tweet-stats span { display: flex; align-items: center; gap: 3px; }

/* --- Music Legends: trading card --- */
.portfolio-shot-card { background: linear-gradient(135deg, #1a1426 0%, #2d1f3d 100%); padding: 20px !important; display: grid; place-items: center; }
.trading-card {
  width: 140px;
  height: 196px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
}
.tc-front, .tc-back {
  position: absolute; inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .55s cubic-bezier(.4,1.4,.5,1);
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: linear-gradient(160deg, #2a1f3d 0%, #1a1226 100%);
  border: 1px solid rgba(185,220,203,0.45);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 0 20px rgba(185,220,203,0.08);
  color: #f3f4f8;
  overflow: hidden;
}
.tc-front { transform: rotateY(0deg); }
.tc-back { transform: rotateY(180deg); background: linear-gradient(160deg, #1a1226 0%, #2a1f3d 100%); }
.trading-card:hover .tc-front { transform: rotateY(180deg); }
.trading-card:hover .tc-back { transform: rotateY(360deg); }
.tc-rarity { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: #B9DCCB; text-align: center; margin-bottom: 4px; }
.tc-art {
  font-size: 64px;
  text-align: center;
  flex: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(185,220,203,0.25) 0%, transparent 70%);
}
.tc-name { font-family: var(--serif); font-size: 20px; text-align: center; letter-spacing: 0.04em; font-weight: 400; margin: 4px 0 6px; }
.tc-stats { display: flex; justify-content: space-between; font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace); font-size: 11px; color: #B9DCCB; }
.tc-back { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; text-align: center; gap: 8px; }
.tc-back-head { font-family: var(--serif); font-size: 16px; }
.tc-back-body { font-size: 11px; line-height: 1.6; color: #B9DCCB; }
.tc-back-body b { color: #f3f4f8; }

/* --- FlipN SOL: clickable coin --- */
.portfolio-shot-coin { background: radial-gradient(circle at center, #2d1f3d 0%, #0a0815 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; gap: 10px; }
.coin {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  perspective: 800px;
  position: relative;
}
.coin-side {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  color: #0a0815;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .8s cubic-bezier(.5,1.5,.4,1);
  box-shadow: inset -6px -6px 12px rgba(0,0,0,0.25), inset 4px 4px 12px rgba(255,255,255,0.35), 0 8px 24px rgba(0,0,0,0.4);
  border: 3px solid #b8a957;
}
.coin-side.heads { background: linear-gradient(135deg, #f4d76e 0%, #b8a957 100%); }
.coin-side.tails { background: linear-gradient(135deg, #B9DCCB 0%, #2E6B57 100%); transform: rotateY(180deg); color: white; }
.coin.flipping .heads { transform: rotateY(1800deg); }
.coin.flipping .tails { transform: rotateY(1620deg); }
.coin-result {
  font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace);
  font-size: 11px;
  color: #B9DCCB;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 16px;
}
.coin-meta { font-size: 11px; color: #6b5e8a; font-family: var(--mono, 'SF Mono','Menlo','Monaco',monospace); }

/* Responsive */
@media (max-width: 720px) {
  .edge-stage { grid-template-columns: 60px 1fr; padding: 10px 12px; }
  .edge-orb { width: 50px; height: 50px; }
  .edge-orb-ring.r1 { width: 36px; height: 36px; }
  .edge-orb-ring.r2 { width: 48px; height: 48px; }
  .edge-orb-ring.r3 { width: 60px; height: 60px; }
  .edge-msgs { font-size: 11px; }
  .trading-card { width: 110px; height: 154px; }
  .tc-art { font-size: 50px; }
}


/* ---------- 3D mini-site preview in Business Websites card (Oct 2026) ---------- */
.card-3d-feature {
  padding: 0;
  overflow: hidden;
  position: relative;
  contain: paint;
  max-width: 100%;
}
.card-3d-feature .card-head,
.card-3d-feature .price,
.card-3d-feature .card-body,
.card-3d-feature .card-list { padding-left: 22px; padding-right: 22px; }
.card-3d-feature .card-head { padding-top: 22px; }
.card-3d-feature .card-list { padding-bottom: 22px; }

.card-3d-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  max-height: 220px;
  background: linear-gradient(160deg, #1a1226 0%, #2d1f3d 50%, #0a0815 100%);
  perspective: 1000px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  z-index: 0;
  isolation: isolate;
  contain: strict;
}

.mini-site {
  position: absolute;
  width: 84%;
  aspect-ratio: 16 / 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-6deg);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  background: #faf9fb;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(185,220,203,0.25);
  overflow: hidden;
}
.card-3d-preview:hover .mini-site {
  transform: translate(-50%, -50%) rotateX(2deg) rotateY(-2deg);
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #ecebf3;
  border-bottom: 1px solid #d4d3dc;
  height: 18px;
}
.mini-bar span { width: 6px; height: 6px; border-radius: 50%; background: #B9DCCB; }
.mini-bar span:nth-child(1) { background: #ff5f56; }
.mini-bar span:nth-child(2) { background: #ffbd2e; }
.mini-bar span:nth-child(3) { background: #27c93f; }
.mini-url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #5e5d6e;
  font-family: 'SF Mono','Menlo','Monaco',monospace;
  background: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  margin: 0 4px;
}

.mini-hero {
  position: relative;
  height: calc(100% - 18px);
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #faf9fb 0%, #eef2ff 100%);
  overflow: hidden;
}
.mini-orb {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #B9DCCB 0%, #2E6B57 60%, #1F4F40 100%);
  box-shadow: 0 0 22px rgba(156,203,181,0.7);
  top: 22%; left: 50%; transform: translateX(-50%);
  animation: mini-pulse 2.4s ease-in-out infinite;
}
@keyframes mini-pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.1); } }
.mini-orb-ring {
  position: absolute;
  width: 80px; height: 80px;
  border: 1px dashed rgba(156,203,181,0.4);
  border-radius: 50%;
  top: 11%; left: 50%; transform: translateX(-50%);
  animation: mini-spin 8s linear infinite;
}
@keyframes mini-spin { to { transform: translateX(-50%) rotate(360deg); } }
.mini-h1 {
  position: absolute;
  top: 48%;
  left: 50%; transform: translateX(-50%);
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-size: 14px;
  color: #1a1a2e;
  white-space: nowrap;
}
.mini-sub {
  position: absolute;
  top: 60%;
  left: 50%; transform: translateX(-50%);
  font-size: 11px;
  color: #5e5d6e;
  white-space: nowrap;
}
.mini-cta {
  position: absolute;
  top: 72%;
  left: 50%; transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #faf9fb;
  background: #1a1a2e;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.mini-cursor {
  position: absolute;
  bottom: 16px; right: 16px;
  font-size: 11px;
  color: #B9DCCB;
  font-family: 'SF Mono','Menlo','Monaco',monospace;
  background: rgba(26,18,38,0.7);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ---------- Hooja play button ---------- */
.tweet { position: relative; }
.tweet-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #0a0815;
  font-size: 18px;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transition: transform .2s ease, background .2s ease;
  pointer-events: none;
  z-index: 2;
}
.portfolio-card:hover .tweet-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: #B9DCCB;
  color: #fff;
}


/* ---------- Card videos (Oct 2026) ---------- */
.card-video {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: #0a0815;
}
.card-3d-preview .card-video {
  border-radius: 0;
}
.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  color: #B9DCCB;
  font-family: 'SF Mono','Menlo','Monaco',monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}
.portfolio-shot .card-video {
  position: absolute;
  inset: 0;
}


/* ---------- Hooja video frame (Oct 2026) ---------- */
.video-frame {
  position: absolute; inset: 0;
  background: #000;
  overflow: hidden;
}
.video-frame .card-video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .2s ease, background .2s ease;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: #B9DCCB; }
.video-play-btn .play-triangle {
  width: 0; height: 0;
  border-left: 13px solid #0a0815;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}
.video-frame.playing .video-play-btn { opacity: 0; pointer-events: none; }
.video-meta {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between;
  font-family: 'SF Mono','Menlo','Monaco',monospace;
  font-size: 11px;
  color: #f3f4f8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 2;
}
.vm-channel { font-weight: 700; }
.vm-duration { opacity: 0.85; }


/* ---------- Hooja static poster (no <video> element) ---------- */
.portfolio-shot-hooja {
  background: linear-gradient(160deg, #1a1226 0%, #2d1f3d 50%, #0a0815 100%);
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hooja-poster {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(185,220,203,0.15) 0%, transparent 50%),
    linear-gradient(160deg, #1a1226 0%, #2d1f3d 50%, #0a0815 100%);
  position: relative;
}
.hooja-play {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #0a0815;
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  transition: transform .2s ease, background .2s ease;
  margin-bottom: 12px;
}
.portfolio-card:hover .hooja-play {
  transform: scale(1.12);
  background: #B9DCCB;
  color: #fff;
}
.hooja-meta {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  display: flex; justify-content: space-between;
  font-family: 'SF Mono','Menlo','Monaco',monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  pointer-events: none;
}
.hooja-channel { font-weight: 700; }
.hooja-duration { opacity: 0.85; }

/* ==========================================================
   Polish pass (Oct 12 2026): hero showcase + demo mini-sites
   ========================================================== */

/* --- Shared browser chrome --- */
.chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  padding: 0 12px;
  background: #E4E7E1;
  border-bottom: 1px solid rgba(21, 26, 23, 0.08);
  flex: none;
}
.chrome-dots { display: inline-flex; gap: 5px; }
.chrome-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(21, 26, 23, 0.16);
}
.chrome-url {
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  font-size: 11px;
  color: #5B655F;
  background: #F6F7F4;
  border-radius: 6px;
  padding: 3px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="dark"] .chrome { background: #222B26; border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .chrome-dots i { background: rgba(255,255,255,0.18); }
[data-theme="dark"] .chrome-url { background: #18201C; color: #8D9A93; }

/* --- Hero showcase --- */
.showcase { margin: 0; }
.showcase-window {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(21, 26, 23, 0.04), 0 30px 60px -24px rgba(21, 26, 23, 0.28);
}
.showcase-stage {
  position: relative;
  aspect-ratio: 1366 / 800;
  background: #DDE2DA;
}
.showcase-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0;
  transition: opacity .7s ease;
}
.showcase-stage img.is-on { opacity: 1; }
.showcase-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.showcase-pager { display: inline-flex; gap: 6px; flex: none; }
.showcase-pager button {
  width: 22px; height: 4px;
  padding: 0; border: 0; border-radius: 2px;
  background: rgba(21, 26, 23, 0.18);
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.showcase-pager button[aria-pressed="true"] { background: var(--accent-strong); width: 34px; }
[data-theme="dark"] .showcase-pager button { background: rgba(255,255,255,0.2); }
[data-theme="dark"] .showcase-pager button[aria-pressed="true"] { background: var(--accent-strong); }
.showcase-pager button:focus-visible,
.btn:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

/* --- Demo cards: frame --- */
.card-3d-preview.demo {
  height: 250px;
  max-height: 250px;
  display: flex;
  flex-direction: column;
  background: #DDE2DA;
  perspective: none;
  cursor: default;
}
.demo-hint {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 3;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(21, 26, 23, 0.55);
  backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity .3s ease;
}
.card-3d-preview.demo:hover .demo-hint { opacity: 0; }
@media (hover: none) { .demo-hint { display: none; } }

/* --- Juniper & Salt (restaurant) --- */
.js-site {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 100%, #2A2620 0%, #171A16 60%);
  color: #F1E9DC;
  font-family: var(--sans);
}
.js-glow { position: absolute; inset: 0; width: 100%; height: 100%; }
.js-nav {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  font-size: 11px;
}
.js-mark { font-family: var(--serif); font-size: 14px; letter-spacing: 0.01em; }
.js-links { display: inline-flex; gap: 12px; align-items: center; color: rgba(241,233,220,0.75); }
.js-pill {
  color: #F1E9DC;
  border: 1px solid rgba(241,233,220,0.35);
  padding: 3px 9px; border-radius: 999px;
}
.js-hero { position: relative; z-index: 1; padding: 14px 16px 0; max-width: 62%; }
.js-title {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-variation-settings: 'opsz' 48;
}
.js-sub { font-size: 11px; margin: 0 0 12px; color: rgba(241,233,220,0.7); }
.js-cta {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: #171A16; background: #F2B66D;
  padding: 6px 12px; border-radius: 999px;
}

/* --- Tidewater (3D product) --- */
.tw-site {
  position: relative;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(42% 70% at 74% 48%, rgba(255,253,248,0.95) 0%, rgba(255,253,248,0) 70%),
    linear-gradient(180deg, #EDEAE3 0%, #D9D5CB 100%);
  color: #1E2A24;
  touch-action: pan-y;
}
.tw-stage { position: absolute; inset: 0; }
.tw-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.tw-nav {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  font-size: 11px;
}
.tw-mark { font-family: var(--serif); font-size: 15px; }
.tw-links { display: inline-flex; gap: 12px; color: rgba(30,42,36,0.88); }
.tw-copy { position: relative; z-index: 1; padding: 18px 16px 0; max-width: 46%; pointer-events: none; }
.tw-name {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.05;
  margin: 0 0 6px;
}
.tw-price { font-size: 11px; margin: 0 0 12px; color: rgba(30,42,36,0.88); }
.tw-cta {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: #F2F1EC; background: #1E2A24;
  padding: 6px 12px; border-radius: 999px;
}
.tw-swatches {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: inline-flex; gap: 7px;
}
.tw-sw {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 2px #F2F1EC;
  border: 1px solid rgba(30,42,36,0.25);
  cursor: pointer;
}
.tw-sw.is-on { border-color: #1E2A24; }
.tw-site.no-3d .tw-stage {
  background: radial-gradient(closest-side, rgba(184,105,46,0.35), transparent) 72% 60% / 34% 70% no-repeat;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase { max-width: 680px; }
}
@media (max-width: 640px) {
  .display { font-size: 40px; }
  .showcase-caption { font-size: 13px; }
  .js-hero { max-width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-stage img { transition: none; }
}
[data-theme="dark"] .card-lead { background: var(--card); border-color: rgba(156,203,181,0.3); }

/* ==========================================================
   More service examples (Oct 12 2026): landing, assistant, UGC
   ========================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Fogline Run Club landing page --- */
.lp-site {
  --lp-bg1: #DCE4E8; --lp-bg2: #BFCCD3;
  --lp-ink: #14212B; --lp-soft: rgba(20,33,43,0.82);
  --lp-cta: #F5C842; --lp-cta-ink: #14212B;
  --lp-topo: rgba(20,33,43,0.13); --lp-route: #E8572E;
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
  background: linear-gradient(170deg, var(--lp-bg1) 0%, var(--lp-bg2) 100%);
  color: var(--lp-ink);
  transition: background .5s ease, color .5s ease;
}
.lp-site[data-v="b"] {
  --lp-bg1: #14212B; --lp-bg2: #0B141B;
  --lp-ink: #F2F5F7; --lp-soft: rgba(242,245,247,0.65);
  --lp-cta: #F5C842; --lp-cta-ink: #14212B;
  --lp-topo: rgba(245,200,66,0.16); --lp-route: #F5C842;
}
.lp-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-topo path { stroke: var(--lp-topo); transition: stroke .5s ease; }
.lp-route { fill: none; stroke: var(--lp-route); stroke-width: 2.2; stroke-linecap: round; opacity: .85; }
.lp-runner { fill: var(--lp-route); filter: drop-shadow(0 0 4px var(--lp-route)); }
.lp-nav, .lp-body { position: relative; z-index: 1; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; padding: 11px 0 0; }
.lp-mark { font-weight: 800; font-size: 11px; letter-spacing: -0.01em; }
.lp-ab { display: inline-flex; background: rgba(127,140,150,0.2); border-radius: 999px; padding: 2px; }
.lp-ab button {
  border: 0; background: transparent; cursor: pointer;
  font: 700 11px/1 var(--sans); color: var(--lp-ink);
  padding: 4px 9px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.lp-ab button[aria-pressed="true"] { background: var(--lp-ink); color: var(--lp-bg1); }
.lp-clock {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font: 600 11px var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink);
  background: rgba(255,255,255,0.45);
  padding: 3px 9px 3px 7px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.lp-site[data-v="b"] .lp-clock { background: rgba(255,255,255,0.08); }
.lp-clock i { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-route); }
@keyframes lp-pulse { 50% { opacity: .3; transform: scale(.7); } }
.lp-title {
  font-size: 22px; font-weight: 800; line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 8px 0 11px;
  max-width: 13em;
}
.lp-title.swap { animation: lp-swap .45s cubic-bezier(.2,.7,.2,1); }
@keyframes lp-swap { from { opacity: 0; transform: translateY(8px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.lp-form { display: flex; gap: 6px; max-width: 290px; }
.lp-form.shake { animation: lp-shake .35s ease; }
@keyframes lp-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lp-form input {
  flex: 1; min-width: 0;
  font: 400 11px var(--sans);
  padding: 7px 10px;
  border: 1px solid rgba(127,140,150,0.45);
  border-radius: 7px;
  background: rgba(255,255,255,0.92); color: #14212B;
  transition: opacity .3s ease, flex .4s ease, padding .4s ease;
}
.lp-form input[aria-invalid="true"] { border-color: #E8572E; }
.lp-form button {
  font: 800 11px var(--sans);
  padding: 7px 11px;
  border: 0; border-radius: 7px;
  background: var(--lp-cta); color: var(--lp-cta-ink);
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .3s ease;
}
.lp-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(245,200,66,0.9); }
.lp-form.is-done input { flex: 0; padding: 7px 0; border-width: 0; opacity: 0; }
.lp-form.is-done button { flex: 1; background: #2E9A62; color: #fff; }
.lp-crowd { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--lp-soft); }
.lp-crowd b { color: var(--lp-ink); font-size: 11px; display: inline-block; }
.lp-crowd b.pop { animation: lp-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes lp-pop { 40% { transform: scale(1.6); color: #2E9A62; } }
.lp-faces { display: inline-flex; }
.lp-faces i {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--lp-bg1);
  margin-left: -5px;
  transition: border-color .5s ease;
}
.lp-faces i:first-child { margin-left: 0; background: linear-gradient(135deg, #F5B78E, #C9714A); }
.lp-faces i:nth-child(2) { background: linear-gradient(135deg, #8EC6F5, #3F7FB8); }
.lp-faces i:nth-child(3) { background: linear-gradient(135deg, #C8E59A, #6F9C3A); }
.lp-faces i:nth-child(4) { background: linear-gradient(135deg, #F2D27A, #C99A2E); }
.lp-spark {
  position: absolute; z-index: 4;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--lp-cta);
  pointer-events: none;
  animation: lp-spark .65s ease-out forwards;
}
.lp-spark:nth-of-type(3n) { background: #2E9A62; }
.lp-spark:nth-of-type(3n+1) { background: var(--lp-route); }
@keyframes lp-spark { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lp-clock i, .lp-title.swap, .lp-form.shake, .lp-crowd b.pop { animation: none; }
}
.lp-form input:focus-visible, .lp-form button:focus-visible, .lp-ab button:focus-visible,
.ai-prompts button:focus-visible, .ugc-hooks button:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 2px;
}

/* --- AI assistant chat --- */
.card-3d-preview.ai-demo { background: #F7F8F5; }
.ai-head { gap: 8px; height: 34px; }
.ai-avatar {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #CFE6DA, #2E6B57);
}
.ai-name { font-size: 11.5px; font-weight: 600; color: #151A17; }
.ai-tools { margin-left: auto; font-size: 11px; color: #5B655F; }
.ai-log {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 10px 12px 6px;
  overflow: hidden;
}
.ai-msg {
  max-width: 86%;
  font-size: 11px; line-height: 1.4;
  padding: 7px 10px;
  border-radius: 12px;
  animation: ai-in .25s ease both;
}
.ai-msg.me { align-self: flex-end; background: #151A17; color: #F2F4F1; border-bottom-right-radius: 4px; }
.ai-msg.bot { align-self: flex-start; background: #E7EBE5; color: #151A17; border-bottom-left-radius: 4px; }
.ai-msg.tool {
  align-self: flex-start;
  padding: 0 2px; font-size: 11px; color: #2E6B57; font-weight: 600;
}
.ai-msg.tool::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2E6B57; margin-right: 6px; vertical-align: 1px; }
.ai-msg.typing { display: inline-flex; gap: 3px; padding: 9px 11px; }
.ai-msg.typing span { width: 5px; height: 5px; border-radius: 50%; background: #9AA39D; animation: ai-dot 1s 1; }
.ai-msg.typing span:nth-child(2) { animation-delay: .15s; }
.ai-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ai-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.ai-prompts {
  display: flex; gap: 5px; flex-wrap: wrap; overflow: hidden;
  padding: 7px 12px 8px;
  border-top: 1px solid rgba(21,26,23,0.07);
  scrollbar-width: none;
}
.ai-prompts button {
  flex: none;
  font: 500 11px var(--sans);
  color: #151A17; background: #fff;
  border: 1px solid rgba(21,26,23,0.16);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
}
.ai-prompts button:hover { border-color: #2E6B57; color: #2E6B57; }
[data-theme="dark"] .card-3d-preview.ai-demo { background: #131A17; }
[data-theme="dark"] .ai-name { color: #EDF1EE; }
[data-theme="dark"] .ai-tools { color: #8D9A93; }
[data-theme="dark"] .ai-msg.me { background: #EDF1EE; color: #151A17; }
[data-theme="dark"] .ai-msg.bot { background: #1E2723; color: #EDF1EE; }
[data-theme="dark"] .ai-msg.tool { color: #8CC7AE; }
[data-theme="dark"] .ai-msg.tool::before { background: #8CC7AE; }
[data-theme="dark"] .ai-prompts { border-top-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .ai-prompts button { background: #1E2723; color: #EDF1EE; border-color: rgba(255,255,255,0.14); }

/* --- UGC vertical ad --- */
.card-3d-preview.ugc-demo {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: linear-gradient(160deg, #2B2420 0%, #191512 100%);
}
.ugc-phone {
  position: relative;
  height: 222px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #0D0B0A;
  background: #1A1512;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
  flex: none;
}
.ugc-bars { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; gap: 3px; z-index: 3; }
.ugc-bars i { flex: 1; height: 2px; border-radius: 1px; background: rgba(255,255,255,0.35); overflow: hidden; position: relative; }
.ugc-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.ugc-bars i.is-done::after { transform: scaleX(1); }
.ugc-bars i.is-on::after { animation: ugc-fill 2.4s linear forwards; }
@keyframes ugc-fill { to { transform: scaleX(1); } }
.ugc-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #1a1512;
}
.ugc-phone::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 62%, rgba(0,0,0,0.55) 100%);
}
.ugc-scene {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0; transition: opacity .35s ease;
}
.ugc-scene.is-on { opacity: 1; }
.ugc-cap {
  position: absolute; left: 9px; right: 9px; top: 26%;
  margin: 0;
  font: 800 12.5px/1.15 var(--sans);
  color: #fff; text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7), 0 0 14px rgba(0,0,0,0.35);
}
.ugc-cap.low { top: auto; bottom: 36px; font-size: 11px; }
.ugc-card {
  position: absolute; left: 8px; right: 8px; bottom: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: rgba(242,241,236,0.95);
  border-radius: 8px;
  padding: 6px 7px;
}
.ugc-brand { font-family: var(--serif); font-size: 11px; color: #1E2A24; line-height: 1.1; }
.ugc-shop { flex: none; font: 700 11px var(--sans); color: #F2F1EC; background: #1E2A24; border-radius: 999px; padding: 4px 8px; }
.ugc-hooks { display: flex; flex-direction: column; gap: 6px; }
.ugc-hook-list { display: flex; flex-direction: column; gap: 6px; }
.ugc-hooks-title { font-size: 11px; color: rgba(242,241,236,0.7); margin: 4px 0 0; }
.ugc-hooks button {
  font: 600 11px var(--sans);
  text-align: left;
  color: #F2F1EC;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.ugc-hooks button[aria-pressed="true"] { background: #F2F1EC; color: #1E2A24; border-color: #F2F1EC; }
.ugc-src { display: inline-flex; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 2px; align-self: flex-start; }
.ugc-hooks .ugc-src button { border: 0; border-radius: 999px; padding: 4px 10px; font-size: 11px; background: transparent; }
.ugc-hooks .ugc-src button[aria-pressed="true"] { background: #F2F1EC; color: #1E2A24; }
@media (prefers-reduced-motion: reduce) {
  .ugc-scene, .ai-msg { transition: none; animation: none; }
}

/* ==========================================================
   Signature logo, rotating headline, hero tilt, card reveal
   ========================================================== */
.brand { color: var(--ink); }
.sig { display: block; width: 187px; height: 47px; overflow: visible; }
.sig text {
  font-family: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;
  font-size: 50px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 0.8;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}
.sig.on text { animation: sig-draw 1.8s cubic-bezier(.5,.1,.3,1) forwards; }
.sig.done text { stroke-dashoffset: 0; fill: currentColor; }
@keyframes sig-draw {
  70% { stroke-dashoffset: 0; fill: transparent; }
  100% { stroke-dashoffset: 0; fill: currentColor; }
}

.rot { display: block; position: relative; height: 1.2em; margin-bottom: -0.16em; overflow: hidden; }
.rot-word {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.rot-word.is-on { transform: none; opacity: 1; }
.rot-word.is-out { transform: translateY(-100%); opacity: 0; }

.showcase-window { transform-origin: 50% 50%; will-change: transform; }

.reveal-ready #services .cards > .card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal-ready #services .cards > .card.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) { .sig { width: 147px; height: 37px; } }

/* ==========================================================
   Landing Pages card: five switchable examples (Oct 14 2026)
   ========================================================== */
.lx-stage { position: relative; flex: 1; overflow: hidden; }
.lx-pane { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.lx-pane.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lx-pane > * { flex: 1; }

/* Savings (Yoke-style) */
.lx-sun { position: relative; background: #E9B64A; color: #1B1408; cursor: ew-resize; overflow: hidden; user-select: none; display: flex; flex-direction: column; }
.lx-sun-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11px; font-weight: 700; }
.lx-sun-nav span:last-child { background: #1B1408; color: #E9B64A; padding: 4px 10px; border-radius: 999px; font-size: 11px; }
.lx-sun-label { text-align: center; font-size: 11px; font-weight: 600; }
.lx-sun-num { text-align: center; font: 400 52px/1 var(--serif); letter-spacing: -0.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.lx-sun-sub { text-align: center; font-size: 11px; }
.lx-sun-bars { flex: 1; display: flex; gap: 4px; align-items: flex-end; margin: 12px 14px 14px; min-height: 40px; }
.lx-sun-bars i { flex: 1; background: rgba(27,20,8,.18); border-radius: 2px 2px 0 0; transition: background .25s; }
.lx-sun-bars i.on { background: #1B1408; }

/* Quote builder */
.lx-shine { background: #F7F7F5; color: #10172A; padding: 0 14px 12px; display: flex; flex-direction: column; }
.lx-sh-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 0; font-size: 11px; font-weight: 800; }
.lx-sh-nav em { font-style: normal; color: #B8321F; }
.lx-sh-nav span:last-child { font-weight: 600; color: #5A6275; font-size: 11px; }
.lx-sh-lab { font-size: 11px; font-weight: 600; color: #5A6275; margin-top: 9px; }
.lx-sh-row { display: flex; gap: 5px; margin-top: 4px; }
.lx-chip { flex: 1; font: 600 11px var(--sans); padding: 6px 4px; border-radius: 7px; border: 1px solid #D6D9E0; background: #fff; color: #10172A; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.lx-chip:active { transform: scale(.97); }
.lx-chip[aria-pressed="true"] { background: #10172A; color: #fff; border-color: #10172A; }
.lx-sh-total { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 10px; }
.lx-sh-price { font: 800 30px/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lx-sh-time { font-size: 11px; color: #5A6275; margin-top: 3px; }
.lx-sh-cta { font: 700 11px var(--sans); color: #fff; background: #B8321F; border: 0; border-radius: 7px; padding: 8px 11px; cursor: pointer; }
.lx-sh-cta.done { background: #1F8A4C; }
.lx-chip:focus-visible, .lx-sh-cta:focus-visible, .lx-share:focus-visible, .lx-lp-form button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* Catering planner */
.lx-au { background: #F3EDE3; color: #2A2118; padding: 0 14px; }
.lx-au-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 4px; font: 500 14px var(--serif); }
.lx-au-nav span:last-child { font: 700 11px var(--sans); background: #7A3B1D; color: #F3EDE3; padding: 4px 10px; border-radius: 999px; }
.lx-au-main { display: grid; grid-template-columns: 1fr 1.05fr; gap: 12px; margin-top: 4px; }
.lx-au-lab { font-size: 11px; font-weight: 600; color: #6A5947; }
.lx-au-guests { font: 400 40px/1 var(--serif); font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.lx-au-range { width: 100%; accent-color: #7A3B1D; margin: 0 0 8px; }
.lx-au-row { display: flex; gap: 4px; }
.lx-au-chip { flex: 1; font: 600 11px var(--sans); padding: 6px 2px; border-radius: 7px; border: 1px solid #D9CDBB; background: #FBF8F3; color: #2A2118; cursor: pointer; }
.lx-au-chip[aria-pressed="true"] { background: #2A2118; color: #F3EDE3; border-color: #2A2118; }
.lx-au-right { border-left: 1px solid #DDD1BF; padding-left: 12px; }
.lx-au-total { font: 800 26px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.lx-au-pp { font-size: 11px; color: #6A5947; margin: 3px 0 6px; }
.lx-au-menu { list-style: none; margin: 0; padding: 0; font: 400 11.5px/1.45 var(--serif); }
.lx-au-menu li::before { content: "\2014  "; color: #B08A63; }

/* Notary: full-bleed street map + floating booking panel */
.lx-pn { position: relative; overflow: hidden; background: #EEF1EC; color: #10223A; }
.lx-pn-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lx-pn-brand {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-size: 12px; font-weight: 800; background: #fff; color: #10223A;
  padding: 6px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(16,34,58,.12);
}
.lx-pn-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #fff; background: #1F5FBF;
  padding: 6px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(16,34,58,.18);
}
.lx-pn-panel {
  position: absolute; z-index: 3; top: 12px; right: 12px; bottom: 12px; width: 47%;
  background: #fff; border-radius: 12px; padding: 13px 14px;
  box-shadow: 0 10px 30px -10px rgba(16,34,58,.35);
  display: flex; flex-direction: column;
}
.lx-pn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.lx-pn-lab { font-size: 11px; font-weight: 600; color: #5A6275; }
.lx-pn-open { font-size: 11px; font-weight: 700; color: #1F5FBF; white-space: nowrap; }
.lx-pn-when { font: 500 21px/1.1 var(--serif); margin: 4px 0 10px; }
.lx-pn-track { position: relative; height: 18px; border-radius: 6px; background: #FDF1D2; cursor: ew-resize; touch-action: none; }
.lx-pn-track:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.lx-pn-night { position: absolute; top: 0; bottom: 0; background: #1C2C48; }
.lx-pn-night.lx-l { left: 0; width: 25%; border-radius: 6px 0 0 6px; }
.lx-pn-night.lx-r { right: 0; width: 16.7%; border-radius: 0 6px 6px 0; }
.lx-pn-knob { position: absolute; top: -4px; width: 12px; height: 26px; margin-left: -6px; border-radius: 5px; background: #fff; border: 2px solid #10223A; box-shadow: 0 2px 6px rgba(0,0,0,.2); pointer-events: none; }
.lx-pn-ticks { display: flex; justify-content: space-between; font-size: 11px; color: #6B7487; margin: 4px 0 auto; }
.lx-pn-price { font-size: 11px; color: #5A6275; margin: 8px 0 8px; }
.lx-pn-price b { font: 800 22px/1 var(--sans); color: #10223A; letter-spacing: -.03em; margin-right: 4px; }
.lx-pn-cta { width: 100%; font: 700 12px var(--sans); color: #fff; background: #1F5FBF; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.lx-pn-cta.done { background: #1F8A4C; }
.lx-pn-cta:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.lx-pn-eta { font-size: 11px; color: #1F8A4C; font-weight: 600; margin-top: 6px; min-height: 14px; }
@media (prefers-reduced-motion: reduce) { .lx-pane, .lx-pane.is-on { transition: none; } .lx-pn-open i { animation: none; } }

/* Contact headline: second line roman (no oversized italic serif) */
.contact-title .accent-italic { font-style: normal; color: var(--accent); }

/* UGC phone overlay: account label + side action icons (restored) */
.ugc-meta {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  font-size: 11px; color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.ugc-meta b { font-weight: 700; margin-right: 4px; color: #fff; }
.ugc-rail { position: absolute; right: 6px; bottom: 30px; display: flex; flex-direction: column; gap: 7px; z-index: 3; }
.ugc-rail i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.8); }
.lp-form input::placeholder { color: #6A6F73; }

/* ==========================================================
   Landing Pages feature card: full top row, picker + big demo
   ========================================================== */
.cards > .lpf {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.75fr);
  gap: 40px;
  align-items: center;
  padding: 8px 0 28px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cards > .lpf:hover { transform: none; box-shadow: none; }
.lpf-info { display: flex; flex-direction: column; }
.lpf-info .card-head { padding: 0; }
.lpf-demo { padding: 0; }
.lpf-kicker { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lpf-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lpf-picks button {
  position: relative; overflow: hidden;
  font: 600 14px var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px 11px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lpf-picks button:hover { border-color: var(--accent-strong); }
.lpf-picks button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lpf-picks button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.lpf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.lpf-picks button.run .lpf-bar { animation: lpf-fill 8s linear forwards; }
@keyframes lpf-fill { to { transform: scaleX(1); } }
.lpf-frame {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 2px 4px rgba(21, 26, 23, 0.04), 0 26px 50px -28px rgba(21, 26, 23, 0.35);
}
.lpf-viewport { position: relative; overflow: hidden; }
.lpf-scale { position: absolute; top: 0; left: 0; transform-origin: 0 0; display: flex; flex-direction: column; }
.lpf-scale > .lx-stage { flex: 1; }
.lpf-caption { margin: 12px 2px 0; font-size: 14px; line-height: 1.5; color: var(--muted); min-height: 3em; }
@media (max-width: 980px) {
  .cards > .lpf { grid-template-columns: 1fr; gap: 22px; }
  .lpf-demo { order: -1; }
}
@media (max-width: 640px) {
  .lpf-picks button { font-size: 13px; padding: 9px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) { .lpf-picks button.run .lpf-bar { animation: none; } }

/* ==========================================================
   E-commerce card demo: Hillside Roasters mini store
   ========================================================== */
.ec { position: relative; flex: 1; overflow: hidden; background: #F7F1E8; color: #2A1F17; padding: 0 12px; display: flex; flex-direction: column; }
.ec-nav { display: flex; align-items: center; gap: 12px; padding: 9px 0 8px; }
.ec-mark { font: 500 15px/1 var(--serif); letter-spacing: -0.01em; }
.ec-links { display: inline-flex; gap: 10px; font-size: 11px; color: #5C4A3B; margin-left: auto; }
.ec-cartbtn {
  display: inline-flex; align-items: center; gap: 5px;
  font: 700 11px var(--sans); color: #F7F1E8; background: #2A1F17;
  border: 0; border-radius: 999px; padding: 4px 9px 4px 8px; cursor: pointer;
}
.ec-cartbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ec-cartbtn b { display: inline-block; min-width: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.ec-cartbtn b.bump { animation: ec-bump .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes ec-bump { 40% { transform: scale(1.5); color: #E9B64A; } }
.ec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; flex: 1; min-height: 0; }
.ec-item { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ec-shot { position: relative; flex: 1; min-height: 0; border-radius: 7px; overflow: hidden; background: #EFE6DA; }
.ec-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ec-line { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 5px; }
.ec-name { font: 500 13px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-price { font-size: 11px; font-weight: 700; color: #2A1F17; font-variant-numeric: tabular-nums; }
.ec-add {
  position: absolute; right: 6px; bottom: 6px;
  font: 700 11px var(--sans); color: #2A1F17; background: rgba(247,241,232,.94);
  border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(42,31,23,.18);
  transition: background .15s ease, color .15s ease;
}
.ec-add:hover { background: #fff; }
.ec-add.in { background: #2A1F17; color: #F7F1E8; }
.ec-ship { display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; }
.ec-truck { width: 18px; height: 18px; flex: none; fill: none; stroke: #5C4A3B; stroke-width: 1.8; stroke-linejoin: round; }
.ec-ship-body { flex: 1; min-width: 0; }
.ec-ship-text { font-size: 11px; font-weight: 600; color: #5C4A3B; margin-bottom: 4px; }
.ec-ship-bar { height: 4px; border-radius: 2px; background: #E6DACB; overflow: hidden; }
.ec-ship-bar i { display: block; height: 100%; width: 0; background: #A9482A; border-radius: 2px; transition: width .45s cubic-bezier(.2,.7,.2,1), background .3s; }
.ec-ship-bar i.done { background: #2E7A4F; }
.ec-drawer {
  position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; width: 62%;
  background: #fff; padding: 11px 12px; display: flex; flex-direction: column;
  box-shadow: -12px 0 30px -14px rgba(42,31,23,.45);
  transform: translateX(105%); visibility: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
}
.ec-drawer.on { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.ec-dr-head { display: flex; justify-content: space-between; align-items: center; font: 500 15px var(--serif); margin-bottom: 6px; }
.ec-close { font: 600 11px var(--sans); background: none; border: 0; color: #5C4A3B; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ec-lines { list-style: none; margin: 0; padding: 0; font-size: 11px; flex: 1; overflow: hidden; }
.ec-lines li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #EFE6DA; }
.ec-lines .ec-empty { color: #5C4A3B; border: 0; }
.ec-total { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; padding: 6px 0; font-variant-numeric: tabular-nums; }
.ec-checkout { font: 700 12px var(--sans); color: #fff; background: #2A1F17; border: 0; border-radius: 8px; padding: 8px; cursor: pointer; }
.ec-checkout.done { background: #2E7A4F; }
.ec-toast {
  position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 10px;
  font-size: 11px; font-weight: 600; color: #fff; background: #2A1F17;
  padding: 8px 10px; border-radius: 8px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.ec-toast.on { opacity: 1; transform: none; }
.ec-cartbtn:focus-visible, .ec-add:focus-visible, .ec-close:focus-visible, .ec-checkout:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ec-drawer, .ec-drawer.on, .ec-toast, .ec-ship-bar i, .ec-cartbtn b.bump { transition: none; animation: none; } }

/* ==========================================================
   Retainer card demo: Fern & Fade Salon support thread
   ========================================================== */
.rt { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #FAFAF7; color: #151A17; }
.rt-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; background: #fff; border-bottom: 1px solid rgba(21,26,23,.08); flex: none; }
.rt-who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rt-av { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #2E6B57; color: #fff; font: 700 11px var(--sans); display: grid; place-items: center; }
.rt-who-tx { display: flex; flex-direction: column; min-width: 0; }
.rt-who-tx b { font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-who-tx small { font-size: 11px; line-height: 1.25; color: #5B655F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-plan { margin-left: auto; flex: none; display: inline-flex; background: #EEF0EA; border-radius: 999px; padding: 2px; }
.rt-plan button { font: 600 11px var(--sans); color: #5B655F; background: none; border: 0; border-radius: 999px; padding: 4px 8px; cursor: pointer; }
.rt-plan button[aria-pressed="true"] { background: #151A17; color: #fff; }
.rt-meter { display: flex; align-items: center; gap: 10px; padding: 7px 12px; flex: none; border-bottom: 1px solid rgba(21,26,23,.06); }
.rt-used { font-size: 11px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-bar { flex: 1; height: 5px; border-radius: 3px; background: #E3E7E0; overflow: hidden; }
.rt-bar i { display: block; height: 100%; width: 15%; background: #2E6B57; border-radius: 3px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.rt-log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px 12px; overflow: hidden; }
.rt-msg { flex: none; max-width: 84%; font-size: 11px; line-height: 1.4; padding: 6px 9px; border-radius: 11px; animation: ai-in .25s ease both; }
.rt-msg.me { align-self: flex-end; background: #151A17; color: #F2F4F1; border-bottom-right-radius: 4px; }
.rt-msg.ken { align-self: flex-start; background: #E7EBE5; border-bottom-left-radius: 4px; }
.rt-msg.typing { display: inline-flex; gap: 3px; padding: 9px 11px; }
.rt-msg.typing span { width: 5px; height: 5px; border-radius: 50%; background: #9AA39D; animation: ai-dot 1s infinite; }
.rt-msg.typing span:nth-child(2) { animation-delay: .15s; }
.rt-msg.typing span:nth-child(3) { animation-delay: .3s; }
.rt-done { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #1E6B45; background: #E2F1E8; border-radius: 999px; padding: 3px 10px 3px 8px; animation: ai-in .25s ease both; }
.rt-done span::before { content: ""; display: inline-block; width: 8px; height: 4px; margin: 0 6px 2px 0; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.rt-done b { font-variant-numeric: tabular-nums; color: #151A17; }
.rt-asks { display: flex; gap: 5px; flex-wrap: wrap; padding: 7px 12px 8px; border-top: 1px solid rgba(21,26,23,.07); flex: none; }
.rt-asks button { font: 500 11px var(--sans); color: #151A17; background: #fff; border: 1px solid rgba(21,26,23,.16); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.rt-asks button:hover { border-color: #2E6B57; color: #2E6B57; }
.rt-asks button:disabled { opacity: .45; cursor: default; border-color: rgba(21,26,23,.16); color: #151A17; }
.rt-plan button:focus-visible, .rt-asks button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* ==========================================================
   Automation card demo: florist order flow (n8n-style canvas)
   ========================================================== */
.af {
  position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; color: #1C2420;
  background-color: #F3F4EF;
  background-image: radial-gradient(rgba(28,36,32,.14) 1px, transparent 1.3px);
  background-size: 14px 14px;
}
.af-top { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: #fff; border-bottom: 1px solid rgba(28,36,32,.08); flex: none; }
.af-title { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-live { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #1E7A46; }
.af-live i { width: 6px; height: 6px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 3px rgba(34,163,90,.18); }
.af-canvas { position: relative; flex: 1; min-height: 0; }
.af-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.af-wires .base { fill: none; stroke: #C5CBC2; stroke-width: 1.5; stroke-dasharray: 3 3; }
.af-wires .lit { fill: none; stroke: #22A35A; stroke-width: 2; stroke-linecap: round; }
.af.ready .af-wires .lit { transition: stroke-dashoffset .4s cubic-bezier(.4,0,.2,1); }
.af-node {
  position: absolute; left: var(--x); top: var(--y); width: 40%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 7px; padding: 5px 7px;
  background: #fff; border: 1px solid rgba(28,36,32,.13); border-radius: 9px;
  box-shadow: 0 1px 2px rgba(28,36,32,.06), 0 6px 14px -10px rgba(28,36,32,.3);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.af-ic { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--c); display: grid; place-items: center; }
.af-ic svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.af-tx { min-width: 0; display: flex; flex-direction: column; }
.af-tx b { font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-tx small { font-size: 11px; line-height: 1.25; color: #5B655F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-node::after {
  content: ""; position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%;
  background: #22A35A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transform: scale(0); transition: transform .25s cubic-bezier(.25,1,.5,1);
}
.af-node.run { border-color: #22A35A; box-shadow: 0 0 0 3px rgba(34,163,90,.18); }
.af-node.ok { border-color: rgba(34,163,90,.55); }
.af-node.ok::after { transform: scale(1); }
.af-node.ok small { color: #1E7A46; font-weight: 600; }
.af-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-top: 1px solid rgba(28,36,32,.08); }
.af-run { flex: none; font: 700 11px var(--sans); color: #fff; background: #1C2420; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.af-run:disabled { opacity: .5; cursor: default; }
.af-stat { min-width: 0; display: flex; flex-direction: column; font-size: 11px; line-height: 1.3; color: #5B655F; }
.af-stat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-stat #af-order { color: #1C2420; font-weight: 600; }
.af-run:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* ==========================================================
   Bots card demo: Lantern Cards & Games pack-opening mini app
   ========================================================== */
.pk { container-type: inline-size; position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; color: #F3EEFF; background: radial-gradient(120% 90% at 50% 40%, #3A2A5E 0%, #1A1030 62%, #0F0A1C 100%); }
.pk-top { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); flex: none; }
.pk-app { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pk-logo { flex: none; width: 22px; height: 22px; border-radius: 6px; background: radial-gradient(circle at 50% 58%, #FFE3A3 0 22%, #F0A43A 23% 40%, #2C1B4D 41%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pk-app-tx { display: flex; flex-direction: column; min-width: 0; }
.pk-app-tx b { font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-app-tx small { font-size: 11px; line-height: 1.25; color: #B9ACD8; white-space: nowrap; }
.pk-count { margin-left: auto; font-size: 11px; color: #B9ACD8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-stage { position: relative; flex: 1; min-height: 0; container-type: inline-size; }

.pk-pack {
  position: absolute; left: 50%; top: 50%; width: 104px; height: 146px; margin: -78px 0 0 -52px; padding: 0;
  border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; color: #1A1030;
  background: linear-gradient(135deg, #D7C9FF 0%, #8FDCFF 28%, #FFE9A6 52%, #FFA9D8 76%, #D7C9FF 100%);
  box-shadow: 0 22px 34px -14px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.55);
  animation: pk-bob 2.8s ease-in-out infinite;
  transition: transform .45s cubic-bezier(.5,0,.75,0), opacity .35s ease;
}
.pk-pack::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 48%, transparent 60%);
  background-size: 300% 100%; animation: pk-sheen 3.4s ease-in-out infinite;
}
.pk-flap { position: absolute; left: 0; right: 0; top: 0; height: 15px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(26,16,48,.12)); border-bottom: 1px dashed rgba(26,16,48,.45); transition: transform .4s cubic-bezier(.3,0,.3,1), opacity .4s ease; }
.pk-pack-art { position: absolute; left: 7px; right: 7px; top: 21px; height: 70px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 4px 10px -4px rgba(26,16,48,.6); }
.pk-pack-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pk-pack-name { position: absolute; left: 0; right: 0; top: 96px; text-align: center; font: 600 17px/1 var(--serif); letter-spacing: -0.01em; }
.pk-pack-name small { display: block; margin-top: 3px; font: 700 11px/1 var(--sans); color: #3A2A5E; }
.pk-tap { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 700 11px var(--sans); color: #3A2A5E; }
.pk-pack:hover { animation-play-state: paused; }
.pk-pack:focus-visible { outline: 2px solid #FFE3A3; outline-offset: 3px; }
@keyframes pk-bob { 50% { transform: translateY(-5px) rotate(-1.5deg); } }
@keyframes pk-sheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
.pk.open .pk-pack { animation: none; transform: translateY(170px) rotate(6deg); opacity: 0; pointer-events: none; }
.pk.open .pk-flap { transform: translate(14px, -26px) rotate(14deg); opacity: 0; }

.pk-cards { position: absolute; inset: 0; pointer-events: none; }
.pk-card {
  --cw: min(96px, 30cqw);
  position: absolute; left: calc(50% - var(--cw) / 2); top: 12px; width: var(--cw); height: calc(var(--cw) * 1.4);
  perspective: 600px; opacity: 0; transform: translateY(70px) scale(.85);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.pk.open .pk-card { opacity: 1; pointer-events: auto; }
.pk.open .pk-card.s0 { transform: translateX(calc(var(--cw) * -1.1)) rotate(-6deg); transition-delay: .15s; }
.pk.open .pk-card.s1 { transform: translateY(-3px); transition-delay: .22s; }
.pk.open .pk-card.s2 { transform: translateX(calc(var(--cw) * 1.1)) rotate(6deg); transition-delay: .29s; }
.pk-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,.7,.3,1); }
.pk-card.flip .pk-in { transform: rotateY(calc(180deg + var(--ty, 0deg))) rotateX(var(--tx, 0deg)); }
.pk-card.tilt .pk-in { transition: transform .1s linear; }
.pk-back, .pk-face { position: absolute; inset: 0; border-radius: 7px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pk-back {
  background:
    radial-gradient(circle at 50% 50%, #FFE3A3 0 7px, #F0A43A 8px 12px, transparent 13px),
    repeating-conic-gradient(from 0deg at 50% 50%, #2A1A48 0 12deg, #35225D 12deg 24deg);
  box-shadow: inset 0 0 0 3px #C9A24A, inset 0 0 0 5px #1A1030, 0 10px 20px -10px rgba(0,0,0,.7);
}
.pk-face {
  transform: rotateY(180deg); display: flex; flex-direction: column; gap: 4px; padding: 6px;
  background: #F6EEDC; color: #1A1030;
  box-shadow: inset 0 0 0 3px #3A2A5E, 0 10px 20px -10px rgba(0,0,0,.7);
}
.pk-nm { display: flex; align-items: center; justify-content: space-between; gap: 4px; font: 700 11px/1.1 var(--sans); padding: 1px 2px 0; white-space: nowrap; }
.pk-nm i { flex: none; font-style: normal; width: 16px; height: 16px; border-radius: 50%; background: #1A1030; color: #F6EEDC; display: grid; place-items: center; font-size: 11px; }
.pk-face img { display: block; width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(26,16,48,.35); }
.pk-ty { font: 600 11px/1 var(--sans); color: #5A4A78; padding: 0 2px 2px; }
.pk-card.rare .pk-face { background: linear-gradient(160deg, #FFEDB5 0%, #F3C658 100%); box-shadow: inset 0 0 0 3px #A97A22, 0 0 22px rgba(255,214,120,.55), 0 10px 20px -10px rgba(0,0,0,.7); }
.pk-card.rare .pk-ty { color: #6B4A10; }
.pk-card.rare .pk-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 22%, rgba(255,110,200,.55) 36%, rgba(110,220,255,.55) 47%, rgba(255,240,130,.6) 58%, transparent 74%);
  background-size: 260% 260%; background-position: var(--hx, 20%) var(--hy, 20%);
  mix-blend-mode: color-dodge; animation: pk-holo 3.2s ease-in-out infinite alternate;
}
.pk-card.rare.tilt .pk-face::after { animation: none; }
@keyframes pk-holo { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.pk-win {
  position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 11px; border-radius: 10px; font-size: 11px; line-height: 1.35;
  background: rgba(15,10,28,.86); border: 1px solid rgba(255,214,120,.35);
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.pk-win.on { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s ease; }
.pk-win-tx { flex: 1; min-width: 0; }
.pk-win-tx b { color: #FFD98A; }
.pk-again { flex: none; font: 700 11px var(--sans); color: #1A1030; background: #FFD98A; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.pk-again:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ==========================================================
   Lead pipeline card demo: Shade Lab tint preview + texted quote
   ========================================================== */
.tn { --tint: .7; position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #0A0B0D; color: #EEF1F4; }
.tn-shot { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tn-shot img, .tn-glass { position: absolute; inset: 0; width: 100%; height: 100%; }
.tn-shot { background: #0B0C0E; }
.tn-shot img { display: block; object-fit: contain; object-position: 50% 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%); mask-image: linear-gradient(180deg, transparent 0, #000 45%); }
.tn-glass polygon { fill: #030405; opacity: var(--tint); transition: opacity .6s cubic-bezier(.25,1,.5,1); }
.tn-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,11,13,.55) 0%, transparent 32%, transparent 70%, rgba(10,11,13,.75) 100%); }
.tn-mark { position: absolute; z-index: 2; left: 12px; top: 10px; font: 500 15px/1 var(--serif); letter-spacing: -0.01em; transition: opacity .3s ease; }
.tn-vlt { position: absolute; z-index: 2; right: 12px; top: 8px; display: flex; flex-direction: column; align-items: flex-end; transition: opacity .3s ease; }
.tn-vlt b { font: 400 34px/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tn-vlt small { font-size: 11px; color: #AEB6BE; margin-top: 2px; }
.tn.run .tn-vlt, .tn.run .tn-mark { opacity: 0; }
.tn-panel { position: absolute; z-index: 3; left: 10px; right: 10px; top: 8px; }
.tn-card {
  font-size: 11px; line-height: 1.35; color: #EEF1F4;
  background: rgba(26,30,35,.82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px 10px 9px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.85);
  animation: tn-in .4s cubic-bezier(.25,1,.5,1) both;
}
@keyframes tn-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.tn-card-h { display: block; font-weight: 700; color: #AEB6BE; margin-bottom: 6px; }
.tn-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 4px 0 10px; border-radius: 8px; background: rgba(255,255,255,.94); color: #0A0B0D; font-weight: 600; }
.tn-field em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-field em::after { content: ""; display: inline-block; width: 1px; height: 12px; margin-left: 1px; vertical-align: -2px; background: #0A0B0D; }
.tn-field::after { content: "Send"; flex: none; font-size: 11px; font-weight: 700; color: #0A0B0D; background: #8BE0B0; border-radius: 6px; padding: 4px 9px; }
.tn-field.sent em::after { display: none; }
.tn-field.sent::after { content: "Sent"; background: #0A0B0D; color: #8BE0B0; }
.tn-crm { display: flex; align-items: center; gap: 8px; }
.tn-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #0A0B0D; background: #F5B98B; }
.tn-crm-tx { display: flex; flex-direction: column; min-width: 0; }
.tn-crm-tx b { font-size: 12px; }
.tn-crm-tx small { font-size: 11px; color: #AEB6BE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tn-tags i { font-style: normal; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: #D5DBE0; }
.tn-mails { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.tn-mails li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 3px 0; color: #8C959E; transition: color .25s ease, opacity .25s ease; }
.tn-mails i { font-style: normal; font-weight: 600; }
.tn-mails span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-mails b { font-weight: 700; }
.tn-mails li.sent { color: #EEF1F4; }
.tn-mails li.sent b { color: #8BE0B0; }
.tn-mails li.won b { color: #0A0B0D; background: #8BE0B0; border-radius: 999px; padding: 1px 7px; }
.tn-mails li.skip { opacity: .5; }
.tn-mails li.skip span { text-decoration: line-through; }
.tn-report { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.1); color: #D5DBE0; animation: tn-in .4s cubic-bezier(.25,1,.5,1) both; }
.tn-report b { color: #EEF1F4; }
.tn-track { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 8px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; opacity: 0; transition: opacity .3s ease; }
.tn.run .tn-track { opacity: 1; }
.tn-track li { font-size: 11px; font-weight: 600; color: #AEB6BE; padding-top: 6px; border-top: 2px solid rgba(255,255,255,.18); transition: color .3s ease, border-color .3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-track li.on { color: #EEF1F4; border-color: #8BE0B0; }
.tn-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 9px; background: #0A0B0D; border-top: 1px solid rgba(255,255,255,.08); }
.tn-seg { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tn-seg button { font: 600 11px var(--sans); color: #AEB6BE; background: none; border: 0; border-radius: 999px; padding: 5px 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tn-seg button[aria-pressed="true"] { background: #EEF1F4; color: #0A0B0D; }
.tn-go { margin-left: auto; flex: none; font: 700 11px var(--sans); color: #0A0B0D; background: #8BE0B0; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.tn-go:disabled { opacity: .5; cursor: default; }
.tn-seg button:focus-visible, .tn-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .pk-pack, .pk-pack::after, .pk-card.rare .pk-face::after, .tn-card, .tn-report, .rt-msg, .rt-done, .rt-msg.typing span { animation: none; }
  .pk-card, .pk-in, .pk-pack, .pk-flap, .pk-win, .tn-glass polygon, .tn-track, .tn-track li, .tn-vlt, .rt-bar i, .af.ready .af-wires .lit, .af-node::after { transition: none; }
}
