/* TIGEST site styles.
   Layout concept: dark editorial landing page. Mono eyebrows, grotesque display type,
   one ember accent used sparingly, generous vertical rhythm, bento grid for the offer.
   Every section is a self-contained block built from the tokens below, so new blocks
   only need the shared classes (.block, .shead, .card, .grid-3, .reveal). */

:root {
  --ink: #0c0e13;        /* page background */
  --ink-2: #11141b;      /* alternate section background */
  --ink-3: #171b24;      /* cards */
  --line: #242a36;       /* hairlines */
  --line-2: #323a49;     /* hover hairlines */
  --fg: #edeae3;         /* main text */
  --muted: #9aa2b1;      /* secondary text */
  --ember: #ff6a3d;      /* the one bold accent */
  --ember-2: #ff8a5f;
  --on-ember: #160803;   /* text on ember buttons */
  --mint: #8fe3c6;       /* success ticks */

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 16px;
  --maxw: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2);
}
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; z-index: 100; background: var(--fg); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: 15.5px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--ember); color: var(--on-ember);
  box-shadow: 0 10px 30px -10px rgba(255, 106, 61, .65);
}
.btn-primary:hover { background: var(--ember-2); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 106, 61, .8); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 19, .7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(12, 14, 19, .88); }
.nav > .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .03em; text-decoration: none; color: var(--fg); }
.brand span { color: var(--ember); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--fg); }
.nav .btn { padding: 11px 18px; font-size: 15px; }

/* Solutions dropdown */
.dd { position: relative; }
.dd-btn { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn svg { transition: transform .25s var(--ease); }
.dd.open .dd-btn { color: var(--fg); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; width: 660px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 10px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 881px) {
  .dd:hover .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dd:hover .dd-btn { color: var(--fg); }
  .dd:hover .dd-btn svg { transform: rotate(180deg); }
}
.dd-side { background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding-bottom: 6px; display: flex; flex-direction: column; }
.dd-label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 6px; }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--fg); transition: background-color .2s; }
.dd-item:hover, .dd-item:focus-visible { background: rgba(255, 255, 255, .04); }
.dd-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 106, 61, .1); border: 1px solid rgba(255, 106, 61, .25); color: var(--ember-2);
  transition: background-color .2s;
}
.dd-item:hover .dd-ico { background: rgba(255, 106, 61, .18); }
.dd-item b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.dd-item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.dd-all { margin: auto 12px 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ember-2); text-decoration: none; }
.dd-all:hover { color: var(--fg); }

/* Mobile menu */
.menu-btn {
  display: none; width: 42px; height: 42px; flex: none; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mmenu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto;
  background: var(--ink); border-bottom: 1px solid var(--line); padding: 6px 0 24px;
}
.mmenu .wrap { padding-inline: 12px; }
.mmenu.open { display: block; animation: rise .3s var(--ease) both; }
.mmenu .dd-label { padding-top: 16px; }
.mm-links { margin: 14px 12px 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; }
.mm-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav.menu-open { background: var(--ink); border-bottom-color: var(--line); }
@media (max-width: 880px) {
  .nav-link, .dd { display: none; }
  .nav-links { gap: 10px; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 881px) { .mmenu.open { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 56px; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 78% 10%, rgba(255, 106, 61, .18), transparent 65%),
    radial-gradient(600px 380px at 8% 0%, rgba(143, 227, 198, .07), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-30px, 20px, 0) scale(1.05); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.live { display: inline-flex; align-items: center; gap: 10px; }
.live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(143, 227, 198, .6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(143, 227, 198, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 227, 198, 0); } }

.hero h1 { margin-top: 18px; font-size: clamp(42px, 6.4vw, 72px); letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--ember); }
.hero .lead { margin-top: 22px; font-size: 19.5px; color: var(--muted); max-width: 40ch; }
.hero .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .trust { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* hero load sequence */
.rise { animation: rise .8s var(--ease) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hero visual: a week of booked calls and a live reply */
.inbox {
  position: relative;
  background: linear-gradient(180deg, rgba(25, 29, 39, .95), rgba(17, 20, 27, .95));
  border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  animation: rise .9s var(--ease) .3s both, float 7s ease-in-out 1.6s infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.inbox-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.inbox-head .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.slot {
  margin-top: 12px; display: flex; gap: 14px; align-items: center;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015);
}
.slot .time { font-family: var(--mono); font-size: 12.5px; color: var(--ember-2); white-space: nowrap; }
.slot .who { font-size: 14.5px; font-weight: 600; }
.slot .role { font-size: 13px; color: var(--muted); }
.slot.s1 { animation: rise .6s var(--ease) .8s both; }
.slot.new { border-color: rgba(255, 106, 61, .45); background: rgba(255, 106, 61, .07); animation: rise .6s var(--ease) 3.3s both; }
.slot.new .badge {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-ember); background: var(--ember); border-radius: 999px; padding: 3px 8px;
}
.thread { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); min-height: 112px; position: relative; }
.thread .from { font-size: 12.5px; color: var(--muted); }
.typing { position: absolute; left: 14px; top: 42px; display: flex; gap: 5px; animation: typing-out .01s linear 2.5s forwards; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: blink 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes typing-out { to { opacity: 0; visibility: hidden; } }
.msg { margin-top: 6px; font-size: 14.5px; animation: rise .5s var(--ease) 2.5s both; }
.booked {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mint); border: 1px solid rgba(143, 227, 198, .3); border-radius: 999px; padding: 4px 10px;
  animation: pop .45s var(--ease) 3s both;
}
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.inbox .note { margin-top: 12px; font-size: 12px; color: var(--muted); opacity: .75; }

/* ---------- Value strip ---------- */
.strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.strip ul { list-style: none; margin: 0 auto; padding: 18px 20px; max-width: var(--maxw); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.strip li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.strip li::before { content: "✓"; color: var(--mint); font-weight: 700; }

/* ---------- Generic blocks ---------- */
.block { padding: 96px 0; }
.block.alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.shead { max-width: 640px; }
.shead h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.015em; }
.shead p:not(.eyebrow) { margin-top: 14px; font-size: 18px; color: var(--muted); }
.grid-3 { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-3 > * { min-width: 0; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9); }
.card h3 { font-size: 20px; }
.card p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.card .k { font-family: var(--mono); font-size: 12.5px; color: var(--ember-2); margin-bottom: 14px; display: block; }

/* steps */
.step .num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--on-ember); background: var(--ember);
}
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; top: 43px; left: 6%; right: 6%; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent);
}
.steps .card { position: relative; z-index: 1; }
@media (max-width: 860px) { .steps::before { display: none; } }

/* bento */
.bento { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { min-width: 0; }
.bento .wide { grid-column: span 4; }
.bento .full { grid-column: 1 / -1; }
.bento .reg { grid-column: span 2; }
.bento .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255, 106, 61, .1); border: 1px solid rgba(255, 106, 61, .25); color: var(--ember-2);
}
.bento .icon svg { width: 20px; height: 20px; }
.bento .card a { color: var(--ember-2); text-decoration: none; font-weight: 600; }
.bento .card a:hover { text-decoration: underline; }
@media (max-width: 920px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .wide, .bento .reg, .bento .full { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* proof */
.proof { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.proof > * { min-width: 0; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; gap: 28px; } }
.proof blockquote { margin: 14px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.proof blockquote em { font-style: italic; color: var(--ember); }
.proof .side { color: var(--muted); font-size: 17px; border-left: 2px solid var(--ember); padding-left: 20px; }

/* about */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about > * { min-width: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.about h2 { margin-top: 14px; font-size: clamp(28px, 3.8vw, 40px); letter-spacing: -.015em; }
.about p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.person { display: flex; gap: 18px; align-items: center; }
.avatar {
  width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--on-ember);
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
}
.person h3 { font-size: 19px; }
.person p { margin-top: 2px; font-size: 14.5px; }
.stats { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--ink-3); }
.stat b { display: block; font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.socials { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--fg); border-color: var(--line-2); }
.socials svg { width: 18px; height: 18px; }

/* faq */
.faq { margin-top: 40px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ember-2); font-size: 20px; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 16px; }

/* booking */
.book {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px;
  padding: 64px 28px 28px; text-align: center;
  background: radial-gradient(800px 340px at 50% 0%, rgba(255, 106, 61, .17), transparent 70%), var(--ink-2);
}
.book h2 { margin-top: 14px; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.02em; }
.book > p:not(.eyebrow) { margin: 14px auto 0; max-width: 46ch; color: var(--muted); font-size: 18px; }
.cal {
  margin-top: 36px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--ink); min-height: 560px; text-align: left;
}
.cal-fallback { padding: 40px 20px; text-align: center; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; }
.footer .f-brand p { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 32ch; }
.footer .f-brand a:not(.brand) { display: inline-block; margin-top: 10px; color: var(--fg); font-size: 14.5px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav .dd-label { padding: 0 0 4px; }
.footer nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.footer nav a:hover { color: var(--fg); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-base p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* ---------- Solution pages ---------- */
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.hero.slim { padding-bottom: 72px; }
.hero.slim h1 { max-width: 15ch; }
.hero.slim .lead { max-width: 52ch; }

/* sample email in the hero */
.mail-row { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; animation: rise .5s var(--ease) both; }
.mail-row:nth-of-type(2) { animation-delay: .6s; } .mail-row:nth-of-type(3) { animation-delay: .8s; }
.mail-row span { width: 58px; flex: none; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.mail-body { padding: 14px 2px 4px; font-size: 14.5px; color: var(--fg); opacity: .92; animation: rise .5s var(--ease) 1s both; }
.mail .thread { margin-top: 14px; }

/* workflow card on the automation page */
.flow .slot { animation: rise .5s var(--ease) both; }
.flow .f1 { animation-delay: .7s; } .flow .f2 { animation-delay: 1.4s; } .flow .f3 { animation-delay: 2.1s; } .flow .f4 { animation-delay: 2.8s; }
.tick { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--mint); border: 1px solid rgba(143, 227, 198, .35); background: rgba(143, 227, 198, .06); }
.numbers b { font-family: var(--display); font-size: 22px; color: var(--ember-2); }
.numbers li::before { content: none; }
.numbers ul { justify-content: space-around; }

/* grids and link cards */
.grid-2, .grid-4 { margin-top: 44px; display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 > *, .grid-4 > * { min-width: 0; }
ol.grid-4, ol.grid-3 { list-style: none; padding: 0; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.grid-4.steps::before { top: 38px; }
@media (max-width: 1000px) { .grid-4.steps::before { display: none; } }
.lcard { position: relative; display: block; text-decoration: none; color: var(--fg); padding-bottom: 54px; }
.lcard .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255, 106, 61, .1); border: 1px solid rgba(255, 106, 61, .25); color: var(--ember-2);
}
.lcard .go { position: absolute; left: 26px; bottom: 22px; font-size: 20px; color: var(--ember-2); transition: transform .25s var(--ease); }
.lcard:hover { border-color: rgba(255, 106, 61, .45); }
.lcard:hover .go { transform: translateX(5px); }
.more { margin-top: 28px; }
.more a { color: var(--ember-2); font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* who we reach */
.reach { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reach > * { min-width: 0; }
@media (max-width: 760px) { .reach { grid-template-columns: 1fr; } }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 14.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.chips.sig li { border-color: rgba(143, 227, 198, .3); color: var(--mint); background: rgba(143, 227, 198, .05); }

/* weekly report */
.report { margin-top: 28px; padding: 24px 26px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.report ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; }
.report li::before { content: "✓ "; color: var(--mint); }
.report p.muted { margin-top: 12px; font-size: 15px; }
.faq details a { color: var(--ember-2); }

/* ---------- AI-native blocks ---------- */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.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; }
.block.ai {
  position: relative; isolation: isolate;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(255, 106, 61, .08), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--ink);
  border-block: 1px solid var(--line);
}

/* agent console */
.agents { margin-top: 44px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; }
.agents > * { min-width: 0; }
.agent-tabs { display: grid; gap: 10px; }
.agent-tab {
  position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(23, 27, 36, .6);
  color: var(--fg); font: inherit; cursor: pointer; transition: border-color .25s, background-color .25s;
}
.agent-tab:hover { border-color: var(--line-2); }
.agent-tab.on { background: var(--ink-3); border-color: rgba(255, 106, 61, .45); }
.ag-n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.agent-tab.on .ag-n { color: var(--ember-2); }
.agent-tab b { display: block; font-size: 16px; }
.agent-tab small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ag-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--ember), var(--ember-2)); }
.agents.playing .agent-tab.on .ag-bar { animation: fill-bar 6.5s linear forwards; }
.agents:hover .ag-bar, .agents:focus-within .ag-bar { animation-play-state: paused !important; }
@keyframes fill-bar { to { width: 100%; } }

.console {
  position: relative; border-radius: 18px; min-height: 420px; padding: 0 0 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #12151c, #0d0f14) padding-box,
    conic-gradient(from var(--spin), var(--line) 0 62%, rgba(255, 106, 61, .75) 74%, rgba(143, 227, 198, .55) 84%, var(--line) 94%) border-box;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  animation: spin-border 9s linear infinite;
}
@keyframes spin-border { to { --spin: 360deg; } }
.console-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lights { display: flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.run { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 2.4s ease-out infinite; }
.panel { padding: 16px 18px 0; }
.task { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.task span { color: var(--ember-2); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: var(--ember-2); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* frame-by-frame scene items: each waits for its --d delay */
.panel [style*="--d"] { animation: rise .5s var(--ease) var(--d) both; }
.panel .tag[style*="--d"] { animation-name: pop; }
.js .agents:not(.playing) .panel * { animation-play-state: paused; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
}
.t-mint { color: var(--mint); border-color: rgba(143, 227, 198, .35); background: rgba(143, 227, 198, .06); }
.t-ember { color: var(--ember-2); border-color: rgba(255, 106, 61, .4); background: rgba(255, 106, 61, .07); }
.scene-foot { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.scene-foot b { color: var(--fg); }
.scene-foot svg { color: var(--mint); }

.sc-signal { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; }
.radar {
  position: relative; width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-2);
  background: repeating-radial-gradient(circle, transparent 0 21px, var(--line) 21px 22px), rgba(255, 255, 255, .015);
}
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 106, 61, .45), transparent 28%); animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pop .4s var(--ease) both; }
.b1 { top: 26%; left: 64%; animation-delay: .4s; } .b2 { top: 62%; left: 72%; animation-delay: 1.1s; }
.b3 { top: 70%; left: 30%; animation-delay: 1.8s; } .b4 { top: 34%; left: 24%; animation-delay: 2.5s; }
.feed, .replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "b tag" "s tag"; column-gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02);
}
.feed .tag { grid-area: tag; align-self: center; }
.feed b { grid-area: b; font-size: 14px; }
.feed small { grid-area: s; font-size: 12.5px; color: var(--muted); }

.profile { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 44px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 106, 61, .16), transparent); animation: scan 2.8s var(--ease) .2s both; }
@keyframes scan { from { transform: translateY(-100%); opacity: 1; } to { transform: translateY(700%); opacity: 0; } }
.pf-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.pf-head b { display: block; font-size: 15px; }
.pf-head small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.pf-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--on-ember); background: linear-gradient(135deg, var(--ember-2), var(--ember)); }
.profile dl { margin: 0; }
.profile dl div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.profile dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.profile dd { margin: 0; font-size: 14.5px; }
.profile dd .tag { margin-left: 6px; }

.draft { padding: 6px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.words { margin-top: 12px; font-size: 15.5px; line-height: 1.65; }
.words span { display: inline-block; animation: word .4s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .3s); }
@keyframes word { from { opacity: 0; filter: blur(4px); transform: translateY(3px); } }
.variants { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.variants span { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.variants .on { color: var(--ember-2); border-color: rgba(255, 106, 61, .5); }

.replies li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.replies b { display: block; font-size: 14px; }
.replies small { font-size: 13px; color: var(--muted); }

.roles { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.roles.two { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
.roles > * { min-width: 0; }
.role { padding-top: 16px; border-top: 1px solid var(--line-2); }
.role p:not(.eyebrow) { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .agents { grid-template-columns: 1fr; }
  .agent-tabs { grid-template-columns: 1fr 1fr; }
  .agent-tab small { display: none; }
  .console { min-height: 0; }
}
@media (max-width: 720px) { .roles, .roles.two { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .sc-signal { grid-template-columns: 1fr; }
  .radar { width: 96px; }
  .profile dl div { grid-template-columns: 1fr; gap: 2px; }
  .replies li { flex-direction: column; align-items: flex-start; }
}

/* reporting dashboard */
.dash {
  margin-top: 44px; padding: 20px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(25, 29, 39, .95), rgba(17, 20, 27, .95));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.dash-head .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.kpis { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { display: block; margin-top: 2px; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-variant-numeric: tabular-nums; }
.dash-grid { margin-top: 12px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; }
.dash-grid > * { min-width: 0; }
.chart { position: relative; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.chart figcaption { font-size: 14.5px; font-weight: 600; }
.line-chart { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.grid-l { stroke: var(--line); stroke-width: 1; }
.ax { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.warm { fill: rgba(255, 255, 255, .03); }
.line-path { fill: none; stroke: var(--ember); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.area { transition: opacity 1s 1.5s; }
.dot { fill: var(--ink-2); stroke: var(--ember); stroke-width: 2; transition: opacity .3s calc(var(--i) * .2s + .4s), fill .2s; }
.hit { fill: transparent; cursor: pointer; }
.pt:hover .dot, .pt:focus .dot { fill: var(--ember); }
.pt:focus { outline: none; }
.end-l { fill: var(--fg); font-size: 12.5px; font-weight: 600; transition: opacity .4s 2s; }
.js .dash:not(.in) .line-path { stroke-dashoffset: 1; }
.js .dash:not(.in) .area, .js .dash:not(.in) .dot, .js .dash:not(.in) .end-l { opacity: 0; }
.bars { margin-top: 6px; }
.bar { margin-top: 14px; cursor: default; }
.bar-l { display: flex; justify-content: space-between; font-size: 14px; }
.bar-l span { color: var(--muted); }
.bar-l b { font-variant-numeric: tabular-nums; }
.track { margin-top: 6px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.track i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--ember); transition: width 1.2s var(--ease) calc(var(--i) * .15s + .3s); }
.bar:hover .track i, .bar:focus .track i { background: var(--ember-2); }
.bar:focus { outline: none; }
.js .dash:not(.in) .track i { width: 0; }
.chart .note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.tip {
  position: absolute; z-index: 2; pointer-events: none; padding: 5px 9px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink); background: var(--fg);
  opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity .15s;
}
.tip.show { opacity: 1; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } .dash-grid { grid-template-columns: 1fr; } }

/* agent loop (automation page) */
.loop { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.loop > * { min-width: 0; }
.loop h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.015em; }
.phases { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.phases li {
  display: grid; grid-template-columns: 36px 1fr; gap: 6px; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent;
  animation: phase 12s infinite; animation-delay: calc(var(--i) * 3s - 12s);
}
.phases b { font-size: 16.5px; }
.phases p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.ph-n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
@keyframes phase {
  0%, 22% { background-color: var(--ink-3); border-color: rgba(255, 106, 61, .4); }
  25%, 100% { background-color: transparent; border-color: transparent; }
}
.loop-viz { position: relative; max-width: 400px; width: 100%; margin: 0 auto; }
.loop-viz::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 61, .18), transparent 70%); filter: blur(10px); }
.loop-viz svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ring-dash { fill: none; stroke: rgba(255, 106, 61, .45); stroke-width: 1.5; stroke-dasharray: 2 10; transform-box: view-box; transform-origin: 160px 160px; animation: spin 40s linear infinite reverse; }
.orbit { transform-box: view-box; transform-origin: 160px 160px; animation: spin 12s linear infinite; }
.comet { fill: var(--ember); filter: drop-shadow(0 0 8px var(--ember)); }
.node circle { fill: var(--ink-2); stroke: var(--line-2); stroke-width: 1.5; animation: node 12s infinite; animation-delay: calc(var(--i) * 3s - 12s); }
.node text { fill: var(--fg); font-family: var(--mono); font-size: 10.5px; }
@keyframes node { 0%, 22% { stroke: var(--ember); fill: #2a1a14; } 25%, 100% { stroke: var(--line-2); fill: var(--ink-2); } }
.core-t { fill: var(--muted); font-family: var(--display); font-size: 15px; font-weight: 600; }
@media (max-width: 860px) { .loop { grid-template-columns: 1fr; gap: 28px; } .loop-viz { max-width: 300px; } }

/* tiny live glyphs on automation cards */
.bento .card { position: relative; }
.mini { position: absolute; top: 26px; right: 26px; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.mini-chat { align-items: center; gap: 4px; padding: 7px 10px; height: auto; border-radius: 12px 12px 12px 4px; border: 1px solid var(--line-2); background: var(--ink-2); }
.mini-chat i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1s ease-in-out infinite; }
.mini-chat i:nth-child(2) { animation-delay: .15s; } .mini-chat i:nth-child(3) { animation-delay: .3s; }
.mini-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--ember-2); transform-origin: bottom; animation: wave 1.1s ease-in-out infinite; }
.mini-wave i:nth-child(2n) { animation-delay: .2s; } .mini-wave i:nth-child(3n) { animation-delay: .45s; } .mini-wave i:nth-child(5) { animation-delay: .1s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.mini-bars i { width: 5px; border-radius: 2px 2px 0 0; background: var(--ember-2); opacity: .85; transform-origin: bottom; animation: grow 3.2s var(--ease) infinite; }
.mini-bars i:nth-child(1) { height: 30%; } .mini-bars i:nth-child(2) { height: 45%; animation-delay: .12s; } .mini-bars i:nth-child(3) { height: 55%; animation-delay: .24s; }
.mini-bars i:nth-child(4) { height: 75%; animation-delay: .36s; } .mini-bars i:nth-child(5) { height: 100%; animation-delay: .48s; }
@keyframes grow { 0% { transform: scaleY(0); } 30%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.mini-sync { align-items: center; gap: 10px; }
.mini-sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); animation: sync 2.4s infinite; }
.mini-sync i:nth-child(2) { animation-delay: .4s; } .mini-sync i:nth-child(3) { animation-delay: .8s; }
@keyframes sync { 0%, 40%, 100% { background: var(--line-2); box-shadow: none; } 15% { background: var(--mint); box-shadow: 0 0 10px var(--mint); } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.r2 { transition-delay: .08s; } .js .reveal.r3 { transition-delay: .16s; }
.js .reveal.r4 { transition-delay: .24s; } .js .reveal.r5 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .typing { display: none; }
  .js .dash:not(.in) .line-path { stroke-dashoffset: 0; }
  .js .dash:not(.in) .area, .js .dash:not(.in) .dot, .js .dash:not(.in) .end-l { opacity: 1; }
  .js .dash:not(.in) .track i { width: var(--w); }
  .scanline, .caret, .sweep { display: none; }
}
