/* =========================================================
   ZG HighLevel Devs | Portfolio styles
   Mobile-first. Tokens up top; components below.
   ========================================================= */

:root {
  /* Palette: graphite + brass & silver (taken from the logo) */
  --bg:        #0F1020;
  --bg-alt:    #121327;
  --surface:   #181A31;
  --surface-2: #20223D;
  --ink:       #ECEBFA;
  --ink-soft:  #BAB8D6;
  --muted:     #8B89AA;
  --brass:     #8E7CF6;
  --brass-hi:  #B6A9FF;
  --silver:    #C3C1E0;
  --won:       #7FB89A;
  --line:      rgba(236, 235, 250, 0.10);
  --line-2:    rgba(236, 235, 250, 0.17);
  --line-3:    rgba(236, 235, 250, 0.30);
  --on-brass:  #0F0D24;
  --glass:     rgba(15, 16, 32, .78);
  --glass-2:   rgba(15, 16, 32, .72);
  --glass-3:   rgba(24, 26, 49, .86);
  --board-end: #14152B;
  --tint:      rgba(255, 255, 255, .02);
  --tint-2:    rgba(255, 255, 255, .025);
  --ghost-1:   rgba(236, 235, 250, .14);
  --ghost-2:   rgba(236, 235, 250, .07);
  --live-bg:   #262150;
  --won-bg:    #1F2925;
  --log-bg:    #101124;
  --shadow:    rgba(4, 3, 20, .75);
  --err:       #D98A7A;
  --err-text:  #E3A193;
  --hero-glow: rgba(142, 124, 246, .16);
  color-scheme: dark;
  --brass-a:   rgba(142, 124, 246, 0.14);

  /* Type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.8125rem;   /* 13 */
  --step-0:  1rem;        /* 16 */
  --step-1:  1.125rem;    /* 18 */
  --step-2:  1.375rem;    /* 22 */
  --step-3:  clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4:  clamp(2.6rem, 1.7rem + 3.6vw, 4.25rem);

  /* Space & shape */
  --gutter: 1rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2.5rem; --header-h: 76px; } }


/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg:        #F5F5FA;
  --bg-alt:    #ECECF5;
  --surface:   #FFFFFF;
  --surface-2: #F0F0F7;
  --ink:       #16152B;
  --ink-soft:  #45445E;
  --muted:     #6C6B85;
  --brass:     #6C5CE7;
  --brass-hi:  #4E3CCF;
  --silver:    #565670;
  --won:       #2E7A55;
  --line:      rgba(22, 21, 43, 0.10);
  --line-2:    rgba(22, 21, 43, 0.16);
  --line-3:    rgba(22, 21, 43, 0.30);
  --brass-a:   rgba(108, 92, 231, 0.10);
  --on-brass:  #FFFFFF;
  --glass:     rgba(245, 245, 250, .80);
  --glass-2:   rgba(245, 245, 250, .78);
  --glass-3:   rgba(255, 255, 255, .88);
  --board-end: #FAFAFE;
  --tint:      rgba(23, 24, 27, .02);
  --tint-2:    rgba(255, 255, 255, .9);
  --ghost-1:   rgba(23, 24, 27, .13);
  --ghost-2:   rgba(23, 24, 27, .06);
  --live-bg:   #F1EEFF;
  --won-bg:    #E9F4EE;
  --log-bg:    #F6F6FB;
  --shadow:    rgba(30, 24, 80, .20);
  --err:       #C0533F;
  --err-text:  #A8402D;
  --hero-glow: rgba(108, 92, 231, .14);
  color-scheme: light;
}

/* Logo: two versions, one per theme */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

/* Smooth colour change only while switching (avoids sluggish hovers) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), fill .45s, stroke .45s !important;
}

/* Theme toggle button */
.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--brass); color: var(--brass-hi); }
.theme-toggle .i { position: absolute; width: 19px; height: 19px; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.theme-toggle .icon-sun  { transform: rotate(-90deg) scale(.5); opacity: 0; }
:root[data-theme="light"] .theme-toggle .icon-moon { transform: rotate(90deg) scale(.5); opacity: 0; }
:root[data-theme="light"] .theme-toggle .icon-sun  { transform: none; opacity: 1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brass); color: #fff; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--brass); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Inline icon helper */
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary { background: var(--brass); color: var(--on-brass); }
.btn-primary:hover { background: var(--brass-hi); box-shadow: 0 10px 30px -10px rgba(142,124,246,.55); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-hi); }
.btn-outline { border-color: rgba(142,124,246,.5); color: var(--brass-hi); }
.btn-outline:hover { background: var(--brass); color: var(--on-brass); border-color: var(--brass); }
.btn-small { min-height: 40px; padding: .5rem 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body.menu-open .site-header {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 30px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 34px; } }

.nav-desktop { display: none; gap: 2rem; font-size: .9375rem; color: var(--ink-soft); }
.nav-desktop a { position: relative; padding-block: .35rem; transition: color .2s; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--ink); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }

.menu-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child  { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav-desktop, .header-cta { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 3rem); line-height: 1.25;
  padding-block: .25rem; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s;
}
.mobile-menu nav a:hover { color: var(--brass-hi); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .04s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .12s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .16s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .20s; }
.mobile-menu-foot { display: grid; gap: 1rem; text-align: center; }
.mobile-menu-mail { color: var(--muted); font-size: .9375rem; }
body.menu-open { overflow: hidden; }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: var(--section);
  isolation: isolate;
  overflow-x: clip;
}
.hero::before { /* faint brass light behind the board */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -20vw; top: -10vw;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(3rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

.hero-kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-soft); font-size: .9375rem; margin-bottom: 1.5rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--won); box-shadow: 0 0 0 0 rgba(127,184,154,.6); animation: ping 2.4s var(--ease) infinite; flex-shrink: 0; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(127,184,154,0); } 100% { box-shadow: 0 0 0 0 rgba(127,184,154,0); } }

.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--step-4); line-height: 1.02; letter-spacing: -.015em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-sub { margin-top: 1.5rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.25rem 2rem;
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 34rem;
}
.hero-facts dt { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.hero-facts dd { font-size: var(--step--1); color: var(--muted); margin-top: .2rem; }
@media (max-width: 479px) { .hero-facts { grid-template-columns: 1fr 1fr; } }

/* Pipeline board */
.board {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--board-end) 100%);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 1rem;
  box-shadow: 0 40px 80px -40px var(--shadow), inset 0 1px 0 var(--tint-2);
}
@media (min-width: 640px) { .board { padding: 1.25rem; } }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: .25rem .25rem 1rem; }
.board-title { display: flex; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 500; }
.board-dots { display: flex; gap: 5px; }
.board-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); }
.board-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; color: var(--won); }
.board-live .status-dot { width: 6px; height: 6px; }

.board-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 560px) { .board-cols { grid-template-columns: repeat(4, 1fr); } }
.col { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-md); padding: .65rem; min-height: 150px; }
.col-name { font-size: .75rem; color: var(--muted); margin-bottom: .6rem; display: flex; justify-content: space-between; }
.col[data-stage="3"] .col-name { color: var(--won); }
.col-list { display: flex; flex-direction: column; gap: .45rem; }

.lead { border-radius: 10px; }
.lead-ghost { height: 38px; padding: .55rem .6rem; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.lead-ghost b { height: 5px; width: 70%; border-radius: 3px; background: var(--ghost-1); }
.lead-ghost i { height: 4px; width: 45%; border-radius: 3px; background: var(--ghost-2); }
.lead-ghost-won { border-color: rgba(127,184,154,.25); }

.lead-live {
  display: flex; align-items: center; gap: .5rem; padding: .5rem;
  background: var(--live-bg); border: 1px solid rgba(142,124,246,.55);
  box-shadow: 0 10px 24px -10px rgba(142,124,246,.45);
  will-change: transform;
}
.lead-live.is-won { border-color: rgba(127,184,154,.7); background: var(--won-bg); box-shadow: 0 10px 24px -10px rgba(127,184,154,.45); }
.lead-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .625rem; font-weight: 600;
  background: var(--brass); color: var(--on-brass);
}
.lead-live.is-won .lead-avatar { background: var(--won); }
.lead-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lead-text strong { font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-text small { font-size: .6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.board-log { margin-top: .9rem; padding: .85rem .9rem; border-radius: var(--r-md); background: var(--log-bg); border: 1px solid var(--line); min-height: 118px; }
.log-title { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.log-list { display: flex; flex-direction: column; gap: .35rem; font-size: .8125rem; }
.log-list li { display: flex; gap: .6rem; align-items: baseline; color: var(--ink-soft); animation: logIn .45s var(--ease) both; }
.log-list li time { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; min-width: 3.2em; }
.log-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex-shrink: 0; transform: translateY(-1px); order: -1; align-self: center; }
.log-list li.won::before { background: var(--won); }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 3rem; }
  .section-head-stack { grid-template-columns: 1fr; gap: 1rem; }
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--step-3); line-height: 1.06; letter-spacing: -.01em;
  max-width: 18ch; text-wrap: balance;
}
.section-lede { color: var(--ink-soft); font-size: var(--step-1); max-width: 32rem; line-height: 1.55; }

/* ---------- Work ---------- */
.work-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .project-feature, .project-wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .project-feature { grid-column: span 2; grid-row: span 2; }
  /* Wide card: screenshot left, details right */
  .work-grid > .project-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; align-items: center; }
  .work-grid > .project-wide .project-shot { margin: .5rem 0 .5rem .5rem; aspect-ratio: 1200 / 590; }
  .project-wide .project-info { padding: 1.5rem 2rem; }
  .project-wide .project-info h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
}

.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project:hover { border-color: rgba(142,124,246,.5); transform: translateY(-4px); box-shadow: 0 30px 60px -30px var(--shadow); }
.project-shot { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); margin: .5rem .5rem 0; border-radius: calc(var(--r-lg) - 8px); }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.project:hover .project-shot img { transform: scale(1.04); }
.project-feature .project-shot { aspect-ratio: auto; flex: 1; min-height: 220px; }

.project-info { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .6rem; }
.project-info h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.project-feature .project-info h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); }
.project-info p { color: var(--ink-soft); font-size: .9375rem; max-width: 40ch; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .75rem; color: var(--silver); padding: .2rem .65rem; border: 1px solid var(--line-2); border-radius: 999px; }
.project-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--brass-hi); margin-top: .2rem; }
.project-link .i { transition: transform .3s var(--ease); }
.project:hover .project-link .i { transform: translate(2px, -2px); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(280px, 0.8fr) 1.2fr; } }
.about-photo { position: relative; max-width: 420px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-2); filter: saturate(.9); }
.about-photo figcaption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  padding: .75rem 1rem; border-radius: var(--r-md);
  background: var(--glass-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-weight: 500; line-height: 1.35;
}
.about-photo figcaption span { color: var(--muted); font-size: .8125rem; font-weight: 400; }
@media (min-width: 900px) { .about-photo { position: sticky; top: calc(var(--header-h) + 2rem); } }
.about-copy .section-title { margin-bottom: 1.5rem; }
.about-copy p { color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.1rem; }
.about-copy .about-lead { color: var(--ink); font-size: var(--step-2); line-height: 1.45; font-family: var(--serif); }
.about-copy .btn { margin-top: 1rem; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .8125rem; padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---------- Process timeline ---------- */
.process-grid { display: grid; gap: 1rem; }
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }
  .process-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(var(--brass), var(--line-2) 60%, transparent); }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 1.25rem; padding-bottom: 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.t-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; color: var(--brass-hi);
  background: var(--bg-alt); border: 1px solid rgba(142,124,246,.45); position: relative; z-index: 1;
}
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin-top: .1rem; }
.timeline p { color: var(--ink-soft); max-width: 34rem; margin-top: .25rem; }

/* ---------- Reviews ---------- */
.reviews-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
@media (min-width: 1024px) {
  .reviews-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.review { scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s var(--ease); }
.review:hover { border-color: rgba(142,124,246,.45); }
.review-video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #000; }
.review figcaption { padding: .9rem 1.1rem; font-family: var(--serif); font-size: 1.35rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: start; } }
.contact-intro .section-title { margin-bottom: 1rem; }
.channels { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.channels li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.channel-label { font-size: .8125rem; color: var(--muted); }
.channels a { font-size: var(--step-1); transition: color .2s; word-break: break-word; }
.channels a:hover { color: var(--brass-hi); }
.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.copy-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .35rem .85rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .8125rem; color: var(--ink-soft);
  transition: border-color .2s, color .2s, background-color .2s;
}
.copy-btn:hover { border-color: var(--brass); color: var(--brass-hi); }
.copy-btn.is-done { border-color: var(--won); color: var(--won); }

.contact-form {
  display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 1rem; /* 16px prevents iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E9099' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(142,124,246,.2); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: rgba(127,184,154,.55); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(217,138,122,.15); }
.field-error { display: none; font-size: .8125rem; color: var(--err-text); }
.field.is-invalid .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .25rem; }
.form-status { font-size: .9375rem; color: var(--ink-soft); }
.form-status.ok { color: var(--won); }
.form-status.err { color: var(--err-text); }
@media (max-width: 479px) { .form-foot .btn { width: 100%; } }

/* ---------- Calendly ---------- */
.calendly-shell { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.calendly-inline-widget { min-width: 300px; height: 720px; }
@media (max-width: 640px) { .calendly-inline-widget { height: 1000px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-logo { height: 26px; width: auto; opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9375rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brass-hi); }
.footer-copy { font-size: .875rem; color: var(--muted); }

/* ---------- Floating bits ---------- */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--glass-3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); color: var(--ink); font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s; }
.to-top:hover { border-color: var(--brass); color: var(--brass-hi); }
@media (min-width: 1024px) { .to-top { right: 2rem; bottom: 2rem; } }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 150;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: .7rem 1.1rem; border-radius: 999px; font-size: .875rem;
  background: var(--ink); color: var(--bg); font-weight: 500;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion: page load + scroll reveal ---------- */
.js [data-load] { opacity: 0; transform: translateY(16px); }
.js.is-loaded [data-load] { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js.is-loaded [data-load]:nth-child(2) { transition-delay: .08s; }
.js.is-loaded [data-load]:nth-child(3) { transition-delay: .16s; }
.js.is-loaded [data-load]:nth-child(4) { transition-delay: .24s; }
.js.is-loaded [data-load]:nth-child(5) { transition-delay: .32s; }
.js.is-loaded .hero-visual[data-load] { transition-delay: .3s; transition-duration: 1.1s; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-load], .js .reveal { opacity: 1; transform: none; }
}

/* ---------- A2P skill card + guarantee section ---------- */
.badge-guarantee {
  font-size: .6875rem; font-weight: 600; letter-spacing: .01em;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--won); color: #0F1A14;
}

.a2p-section { padding-top: 0; }
.a2p-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 2.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: calc(var(--r-lg) + 6px);
  background: var(--surface);
  border: 1px solid rgba(142,124,246,.45);
  box-shadow: 0 40px 90px -50px var(--shadow);
}
.a2p-card::before { /* soft brass light in the corner */
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -220px; top: -240px;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 72%);
}
@media (min-width: 960px) { .a2p-card { grid-template-columns: 1.25fr 1fr; gap: 4rem; } }

.a2p-kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--brass-hi); font-size: .9375rem; font-weight: 500; margin-bottom: 1rem; }
.a2p-kicker .i { width: 18px; height: 18px; }
.a2p-copy .section-title { max-width: 16ch; }
.a2p-promise { margin-top: .75rem; font-family: var(--serif); font-size: var(--step-2); color: var(--brass-hi); line-height: 1.3; }
.a2p-lede { margin-top: 1.25rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; max-width: 36rem; }
.a2p-list { display: grid; gap: .7rem; margin-top: 1.75rem; }
.a2p-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.a2p-list .i { width: 20px; height: 20px; padding: 3px; margin-top: .15rem; border-radius: 50%; color: var(--won); background: color-mix(in srgb, var(--won) 16%, transparent); stroke-width: 2.4; }
.a2p-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 479px) { .a2p-actions .btn { flex: 1 1 100%; } }
.a2p-terms { margin-top: 1.25rem; font-size: .8125rem; color: var(--muted); max-width: 36rem; line-height: 1.5; }

.a2p-visual { display: grid; justify-items: center; gap: 2rem; }

/* Guarantee seal */
.seal { position: relative; width: min(240px, 64vw); aspect-ratio: 1; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.seal-ring text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; fill: var(--brass-hi); }
.seal-core {
  position: absolute; inset: 22%; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 55%, #5B48D6);
  color: var(--on-brass);
  box-shadow: 0 18px 40px -14px rgba(142,124,246,.6), inset 0 0 0 6px rgba(255,255,255,.14), inset 0 0 0 7px rgba(0,0,0,.12);
}
:root[data-theme="light"] .seal-core { background: radial-gradient(circle at 35% 30%, #A99BFF, var(--brass) 55%, #5B48D6); }
.seal-core strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1; }
.seal-core span { font-size: .75rem; font-weight: 600; line-height: 1.25; margin-top: .25rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Approval tracker */
.a2p-track { width: 100%; max-width: 360px; display: grid; gap: 0; position: relative; }
.a2p-track li { display: grid; grid-template-columns: 22px 1fr; gap: .9rem; padding-bottom: 1.1rem; position: relative; }
.a2p-track li:last-child { padding-bottom: 0; }
.a2p-track li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line-2); }
.a2p-track li.done:not(:last-child)::after { background: var(--won); transition: background-color .4s var(--ease); }
.a2p-track .dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.a2p-track li.done .dot { background: var(--won); border-color: var(--won); transform: scale(1.05); }
.a2p-track li.done .dot::after { content: ""; width: 9px; height: 5px; border: 2px solid #0F1A14; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.a2p-track b { display: block; font-weight: 600; font-size: .9375rem; }
.a2p-track small { color: var(--muted); font-size: .8125rem; }
.a2p-track li.is-final.done b { color: var(--won); }

@media (prefers-reduced-motion: reduce) { .seal-ring { animation: none; } }

.lightbox {
  margin: auto; /* the global margin reset removes the dialog's default centring */
  border: 0; padding: 0; background: transparent; color: var(--ink);
  max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 11, 13, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lbIn .3s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.lightbox figcaption { text-align: center; color: #D9D5CC; font-size: .9375rem; margin: .85rem auto 0; max-width: 46rem; line-height: 1.5; }
.lightbox figcaption strong { display: block; color: #fff; font-weight: 600; margin-bottom: .2rem; }
.lightbox figcaption small { display: block; color: #9A9DA6; font-size: .8125rem; margin-top: .35rem; }
.lightbox-nav {
  position: absolute; top: 41vh; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: 1.2rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  transition: border-color .2s, color .2s;
}
.lightbox-nav:hover { border-color: var(--brass); color: var(--brass-hi); }
.lightbox-prev { left: -64px; } .lightbox-next { right: -64px; }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 1340px) { .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; } }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: 1.1rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
}
@media (max-width: 640px) { .lightbox-close { top: -52px; right: 0; } }

/* ---------- Skills: bento grid ---------- */
@property --bt-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .bt-workflows, .bt-agency { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
  .bt-workflows { grid-column: span 4; }
  .bt-a2p { grid-column: span 2; }
  .bt-pipelines, .bt-email, .bt-funnels { grid-column: span 2; }
  .bt-agency { grid-column: 1 / -1; }
}

/* Tile shell: 1px animated gradient edge around an inner panel */
.bt {
  position: relative; display: block; border-radius: 26px; padding: 1px; isolation: isolate;
  background: var(--line-2); color: inherit;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.bt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--bt-ang), transparent 0 62%, var(--brass) 75%, var(--brass-hi) 80%, transparent 92%);
  opacity: 0; transition: opacity .5s var(--ease);
  animation: btSpin 6s linear infinite;
}
.bt-feature::before { opacity: .55; }
.bt:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px var(--shadow); }
.bt:hover::before { opacity: 1; }
@keyframes btSpin { to { --bt-ang: 360deg; } }

.bt-inner {
  position: relative; height: 100%; border-radius: 25px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--board-end) 100%);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 720px) { .bt-inner { padding: 1.5rem; } }
.bt-inner::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), var(--hero-glow), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.bt:hover .bt-inner::before { opacity: 1; }
.bt-inner > * { position: relative; z-index: 1; }

.bt-head { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; }
.bt-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brass-a); border: 1px solid rgba(142,124,246,.3); color: var(--brass-hi);
  transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.bt-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bt:hover .bt-icon { transform: rotate(-8deg) scale(1.06); background: var(--brass); color: var(--on-brass); }
/* Smaller tiles: icon + badge on one row, title underneath */
.bt:not(.bt-workflows) .bt-head { grid-template-columns: auto 1fr; row-gap: 1rem; }
.bt:not(.bt-workflows) .bt-head .sk-badge { justify-self: end; align-self: center; grid-row: 1; grid-column: 2; }
.bt:not(.bt-workflows) .bt-titles { grid-column: 1 / -1; grid-row: 2; }
.bt-titles h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.005em; }
.bt-feature .bt-titles h3 { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.3rem); }
.bt-titles p { color: var(--ink-soft); font-size: .9375rem; margin-top: .3rem; line-height: 1.5; max-width: 38rem; }

.sk-badge { font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.sk-badge-real { background: var(--brass-a); color: var(--brass-hi); border: 1px solid rgba(142,124,246,.4); }
.sk-badge-won  { background: var(--won); color: #0F1A14; }
.sk-badge-ex   { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }

/* Media window */
.bt-media {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2);
  aspect-ratio: 16 / 10; flex: 1 0 auto;
}
.bt-workflows .bt-media { aspect-ratio: 16 / 8.2; }
.bt-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 7s linear;
}
.bt-img.is-on { opacity: 1; transform: scale(1); }
.bt-media:hover .bt-img.is-on { transform: scale(1.03); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }

.bt-view {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: var(--ink);
  background: var(--glass-3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
  transform: translateY(6px); opacity: .9; transition: transform .4s var(--ease), opacity .4s, border-color .3s;
}
.bt-media:hover .bt-view { transform: none; opacity: 1; border-color: var(--brass); }
.bt-caption {
  position: absolute; left: .75rem; top: .75rem; z-index: 3; max-width: 60%;
  padding: .45rem .8rem; border-radius: 999px; font-size: .8125rem; font-weight: 500;
  background: var(--glass-3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.bt-caption.is-swapping { opacity: 0; transform: translateY(6px); }

/* Workflow notification toasts */
.bt-toasts { position: absolute; left: 1rem; top: 1rem; z-index: 3; display: grid; gap: .5rem; width: min(270px, 70%); }
.bt-toast {
  display: grid; grid-template-columns: 10px 1fr; column-gap: .65rem; align-items: center;
  padding: .6rem .85rem; border-radius: 14px; text-align: left;
  background: rgba(22, 23, 46, .96); color: #ECEBFA; border: 1px solid rgba(236,235,250,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px -16px rgba(0,0,0,.6);
  opacity: 0; transform: translateX(-16px) scale(.96);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.bt-toast i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.bt-toast b { font-size: .8125rem; font-weight: 600; }
.bt-toast small { font-size: .72rem; color: #9A9DA6; }
.bt-toast.is-on { opacity: 1; transform: none; }

/* Fanned card stacks (email + sites) */
.bt-fan { background: radial-gradient(120% 90% at 50% 110%, var(--brass-a), transparent 60%), var(--surface-2); }
.bt-card {
  position: absolute; left: 50%; top: 14%; width: 62%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top;
  border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -18px var(--shadow);
  transform-origin: 50% 120%;
  transition: transform .7s var(--ease), box-shadow .5s;
}
.bt-card:nth-of-type(1) { transform: translateX(-50%) rotate(-9deg) translate(-14%, 6%); }
.bt-card:nth-of-type(2) { transform: translateX(-50%) rotate(0deg); z-index: 1; }
.bt-card:nth-of-type(3) { transform: translateX(-50%) rotate(9deg) translate(14%, 6%); z-index: 2; }
.bt-fan:hover .bt-card:nth-of-type(1) { transform: translateX(-50%) rotate(-16deg) translate(-30%, 4%); }
.bt-fan:hover .bt-card:nth-of-type(2) { transform: translateX(-50%) translateY(-6%) scale(1.04); }
.bt-fan:hover .bt-card:nth-of-type(3) { transform: translateX(-50%) rotate(16deg) translate(30%, 4%); }
.bt-fan-sites .bt-card { width: 58%; aspect-ratio: 16 / 9; top: 12%; }
.bt-fan-sites .bt-card:nth-of-type(1) { transform: translateX(-50%) rotate(-10deg) translate(-20%, 10%); }
.bt-fan-sites .bt-card:nth-of-type(2) { transform: translateX(-50%) rotate(-3deg) translate(-6%, 3%); z-index: 1; }
.bt-fan-sites .bt-card:nth-of-type(3) { transform: translateX(-50%) rotate(4deg) translate(8%, 6%); z-index: 2; }
.bt-fan-sites .bt-card:nth-of-type(4) { transform: translateX(-50%) rotate(10deg) translate(20%, 12%); z-index: 3; }
.bt-fan-sites:hover .bt-card:nth-of-type(1) { transform: translateX(-50%) rotate(-14deg) translate(-36%, 6%); }
.bt-fan-sites:hover .bt-card:nth-of-type(2) { transform: translateX(-50%) rotate(-5deg) translate(-12%, -4%); }
.bt-fan-sites:hover .bt-card:nth-of-type(3) { transform: translateX(-50%) rotate(5deg) translate(14%, -2%); }
.bt-fan-sites:hover .bt-card:nth-of-type(4) { transform: translateX(-50%) rotate(14deg) translate(36%, 8%); }

/* A2P tile */
.bt-a2p .bt-inner { background: radial-gradient(100% 70% at 50% 45%, color-mix(in srgb, var(--won) 14%, transparent), transparent 70%), linear-gradient(180deg, var(--surface), var(--board-end)); }
.bt-seal { position: relative; width: min(230px, 70%); aspect-ratio: 1; margin: .25rem auto 0; }
.bt-seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.bt-seal-ring text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; fill: var(--brass-hi); }
.bt-seal-core {
  position: absolute; inset: 21%; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 55%, #5B48D6); color: var(--on-brass);
  box-shadow: 0 20px 44px -16px rgba(142,124,246,.7), inset 0 0 0 6px rgba(255,255,255,.14);
  transition: transform .6s var(--ease);
}
:root[data-theme="light"] .bt-seal-core { background: radial-gradient(circle at 35% 30%, #A99BFF, var(--brass) 55%, #5B48D6); }
.bt-a2p:hover .bt-seal-core { transform: scale(1.06) rotate(-4deg); }
.bt-seal-core strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 2.9rem); line-height: 1; }
.bt-seal-core > span { font-size: .75rem; font-weight: 600; }
.bt-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-top: auto; }
.bt-track li {
  position: relative; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 1.35rem;
  transition: color .4s var(--ease);
}
.bt-track li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  border: 2px solid var(--line-3); background: var(--surface); transition: all .4s var(--ease); z-index: 1;
}
.bt-track li:not(:first-child)::after {
  content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line-2);
  transform-origin: left; transition: background-color .4s var(--ease);
}
.bt-track li.done { color: var(--ink); }
.bt-track li.done::before { background: var(--won); border-color: var(--won); box-shadow: 0 0 0 4px color-mix(in srgb, var(--won) 22%, transparent); }
.bt-track li.done::after { background: var(--won); }
.bt-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--brass-hi); font-weight: 500; font-size: .9375rem; }
.bt-link .i { transition: transform .3s var(--ease); }
.bt:hover .bt-link .i { transform: translateX(4px); }

/* Agency wide tile */
@media (min-width: 900px) {
  .bt-agency .bt-inner { flex-direction: row; align-items: center; gap: 2rem; }
  .bt-agency-copy { flex: 0 0 38%; display: grid; gap: 1.1rem; }
  .bt-agency .bt-media { flex: 1; aspect-ratio: 16 / 7; }
}
.bt-chips li { background: transparent; }

/* Entrance: tiles rise and their media unblurs */
.js .bt.reveal { transform: translateY(28px) scale(.98); }
.js .bt.reveal.in { transform: none; }
.js .bt.reveal .bt-media { filter: blur(8px) saturate(.6); transition: filter 1s var(--ease) .15s; }
.js .bt.reveal.in .bt-media { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .bt::before, .bt-seal-ring { animation: none; }
  .bt-img { transition: none; }
  .js .bt.reveal .bt-media { filter: none; }
}
@media (max-width: 719px) {
  .bt-workflows .bt-head { grid-template-columns: auto 1fr; row-gap: 1rem; }
  .bt-workflows .bt-head .sk-badge { justify-self: end; align-self: center; grid-row: 1; grid-column: 2; }
  .bt-workflows .bt-titles { grid-column: 1 / -1; grid-row: 2; }
  .bt-workflows .bt-media { aspect-ratio: 4 / 3.4; }
  .bt-toasts { left: .6rem; top: .6rem; gap: .35rem; width: 72%; }
  .bt-toast { padding: .45rem .65rem; border-radius: 11px; }
  .bt-toast b { font-size: .75rem; } .bt-toast small { font-size: .66rem; }
}
