/* Studiobot — shared styles
   Loaded on every page: type, header, mega menu, footer, shared sections and the cookie banner. */

body {
  background: #07070a;
  color: #f2efe9;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Display type ---------- */
.mega {
  font-family: "Inter Tight", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}
/* every heading: even line lengths, no lone word on the last line */
h1,
h2,
h3 {
  text-wrap: balance;
}
/* paragraphs: never leave a single word alone on the last line */
p {
  text-wrap: pretty;
}
/* section headings (What we do / Selected work): sentence case, smaller than the hero */
.section-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  text-wrap: balance;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
/* inner pages: the main heading at the top of each page */
/* headings in a side column (FAQ, newsletter, Our story): a step smaller so they keep to two lines */
.section-title.is-compact {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
}
/* sb_title() "|" breaks: one line box per part on tablet/desktop (each part balances on its own), inline on mobile */
.title-line.is-forced {
  display: block;
}
@media (min-width: 768px) {
  .title-line {
    display: block;
  }
}
.page-title {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance; /* even line lengths, no single word left on the last line */
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.line > span {
  display: inline-block;
  white-space: nowrap; /* a word never breaks; home.js shrinks the hero headline to fit instead */
  will-change: transform;
}
/* rotating words share one grid cell; overflow visible so the blur isn't clipped */
.swap {
  display: grid;
  overflow: visible;
}
.swap > .word {
  grid-area: 1 / 1;
  visibility: hidden;
}
@keyframes grain {
  25% {
    transform: translate(-3%, 2%);
  }
  50% {
    transform: translate(2%, -3%);
  }
  75% {
    transform: translate(-2%, -2%);
  }
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
#hero h1 .text-brand { color: var(--dot); }
#hero .hero-logo { filter: invert(var(--inv)); }
#hero .hero-fg { color: var(--fg); }
/* ---------- Fixed site header ---------- */
#siteHeader {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), padding 0.35s;
}
/* the glass bar lives on a pseudo-element so the header itself isn't a backdrop root
   (that would stop the mega menu's own glass blur from working) */
#siteHeader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(7, 7, 10, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(242, 239, 233, 0.08);
  opacity: 0;
  transition: opacity 0.35s;
}
#siteHeader.is-scrolled { padding-top: 0.85rem; padding-bottom: 0.85rem; }
#siteHeader.is-scrolled::before { opacity: 1; }
#siteHeader.is-hidden { transform: translateY(-100%); }
.hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  background: #f17f2f;
  color: #07070a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.3s, color 0.3s;
}
.hero-primary:hover { background: #f2efe9; }
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.35);
  color: #f2efe9;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.3s;
}
.hero-secondary:hover { border-color: #f17f2f; }

.talk-btn {
  border: 1px solid color-mix(in srgb, var(--fg, #f2efe9) 30%, transparent);
  color: var(--fg, #f2efe9);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.talk-btn:hover { background: var(--accent, #f17f2f); border-color: var(--accent, #f17f2f); color: var(--accent-fg, #07070a); }

.nav-link {
  position: relative;
  color: color-mix(in srgb, var(--fg, #f2efe9) 70%, transparent);
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent, #f17f2f);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-link:hover { color: var(--fg, #f2efe9); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-item { display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1; }
/* mobile menu open (hamburger) / close (✕) buttons: icon only, 44px tap target */
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- What we do ---------- */
/* one static, monochrome mesh in black shades */
.services-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 35% at 10% 30%, rgba(7, 7, 10, 0.22), transparent 70%),
    radial-gradient(40% 35% at 90% 45%, rgba(7, 7, 10, 0.16), transparent 70%),
    radial-gradient(50% 30% at 45% 85%, rgba(7, 7, 10, 0.12), transparent 70%),
    radial-gradient(35% 30% at 60% 20%, rgba(255, 255, 255, 0.9), transparent 70%);
  filter: blur(30px);
}

/* ---------- Our story: Studiobot mascot ---------- */
.bot-glow {
  position: absolute;
  inset: 16%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(54, 36, 150, 0.45), rgba(96, 86, 175, 0.2) 50%, transparent 72%);
  filter: blur(45px);
}
.bot-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1000px; padding-top: 12%; }
.bot-float { width: 66%; animation: bot-float 6s ease-in-out infinite; }
@keyframes bot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.bot { position: relative; transform-style: preserve-3d; }
/* glossy cobalt-violet shell, matching the 3D robot in the brand brochure */
.bot-head {
  aspect-ratio: 1.12 / 1;
  border-radius: 28%;
  padding: 9%;
  background: linear-gradient(145deg, #6056af 0%, #362496 45%, #2a1c7c 100%);
  border: 1px solid rgba(176, 172, 212, 0.6);
  box-shadow:
    0 40px 80px -30px rgba(54, 36, 150, 0.6),
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    inset 6px 10px 24px rgba(176, 172, 212, 0.35),
    inset 0 -14px 30px rgba(20, 12, 70, 0.5);
}
/* dark screen face, like the logo */
.bot-screen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22%;
  background: radial-gradient(circle at 50% 25%, #222a5c, #141b46 55%, #0b0f2c 100%);
  box-shadow: inset 0 8px 24px rgba(5, 5, 30, 0.8);
}
.bot-eyes { display: flex; justify-content: center; gap: 22%; width: 100%; }
.bot-eye {
  width: 19%;
  aspect-ratio: 1;
  border-radius: 9999px;
  background: #f2efe9;
  box-shadow: 0 0 24px rgba(242, 239, 233, 0.55);
}
/* curly antenna from the logo, sways from its base */
.bot-antenna {
  position: absolute;
  bottom: 99%;
  left: 50%;
  width: 16%;
  transform-origin: 55% 100%;
  overflow: visible; /* lets the bulb's glow spill past the SVG box instead of being cropped */
  animation: antenna-sway 3.6s ease-in-out infinite;
}
@keyframes antenna-sway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}
.bot-bulb { animation: bulb-pulse 2.4s ease-in-out infinite; }
@keyframes bulb-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(241, 127, 47, 0.6)); }
  50% { filter: drop-shadow(0 0 10px rgba(241, 127, 47, 1)); }
}
.stat-chip span:not(.count) { font-size: 13px; line-height: 1.3; color: rgba(7, 7, 10, 0.6); }

/* ---------- Journal ---------- */
.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  padding: 0.9rem 1.6rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.explore-btn:hover { background: #f17f2f; border-color: #f17f2f; color: #07070a; }
/* minimal post listing: image, one meta line, title */
.post-card { display: block; }
.post-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1rem;
  background: #16161b;
}
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.post-card:hover .post-media img { transform: scale(1.04); }
/* category as a frosted pill over the image — dark tint keeps it readable on light renders */
.post-tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(7, 7, 10, 0.3);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #f2efe9;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.post-meta {
  margin-top: 1.25rem;
  font-size: 13px;
  color: rgba(242, 239, 233, 0.45);
}
.post-title {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.3s;
}
.post-card:hover .post-title { color: #f17f2f; }

/* ---------- Call to action ---------- */
/* call-to-action heading — one style on every page; sized so it stays within two lines */
.cta-title {
  text-wrap: balance;
  font-size: clamp(2.125rem, 4.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  min-height: 128px;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-radius: 1.5rem;
  background: #f17f2f;
  color: #07070a;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background-color 0.35s, color 0.35s;
}
.cta-primary:hover { background: #07070a; color: #f2efe9; }

/* ---------- Kind words: testimonial cards (home + testimonials page) ---------- */
.voices-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 15% 45%, rgba(7, 7, 10, 0.16), transparent 70%),
    radial-gradient(35% 30% at 85% 60%, rgba(7, 7, 10, 0.14), transparent 70%),
    radial-gradient(
      30% 25% at 55% 35%,
      rgba(255, 255, 255, 0.9),
      transparent 70%
    );
  filter: blur(30px);
}
.voice-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 24px 50px -26px rgba(7, 7, 10, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background-color 0.35s,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.voice-card:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-4px);
}
.voice-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.voice-mark {
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.6;
  height: 1.6rem;
  color: #f17f2f;
}
.voice-stars {
  display: flex;
  gap: 2px;
  color: #f17f2f;
}
.voice-stars svg {
  width: 15px;
  height: 15px;
}
.voice-quote {
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(7, 7, 10, 0.85);
}
.voice-person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(7, 7, 10, 0.08);
}
.voice-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #07070a;
  color: #f2efe9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.voice-person strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.voice-person small {
  display: block;
  margin-top: 0.1rem;
  font-size: 13px;
  color: rgba(7, 7, 10, 0.5);
}

/* ---------- Footer ---------- */
.footer-head { margin-bottom: 1.5rem; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.footer-list { display: grid; gap: 0.8rem; }
.footer-list a {
  color: rgba(242, 239, 233, 0.6);
  transition: color 0.3s;
}
.footer-list a:hover { color: #f2efe9; }
.footer-contact dt {
  margin-top: 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.4);
}
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd { margin-top: 0.35rem; }
.footer-contact a { color: rgba(242, 239, 233, 0.85); transition: color 0.3s; }
.footer-contact a:hover { color: #f17f2f; }
.footer-social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(242, 239, 233, 0.15);
  background: rgba(242, 239, 233, 0.04);
  color: #f2efe9;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social:hover { background: #f17f2f; border-color: #f17f2f; color: #07070a; transform: translateY(-3px); }
.footer-top {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: #f17f2f;
  color: #07070a;
  transition: background-color 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.footer-top svg { width: 20px; height: 20px; }
.footer-top:hover { background: #f2efe9; transform: translateY(-3px); }

/* ---------- Capabilities mega menu ---------- */
.mega-chevron { transition: transform 0.3s; }
#megaBtn[aria-expanded="true"] { color: var(--fg, #f2efe9); }
#megaBtn[aria-expanded="true"] .mega-chevron { transform: rotate(180deg); }
/* floating glass panel, inset from the screen edges */
.mega-menu {
  position: absolute;
  left: 5vw;
  right: 5vw;
  top: calc(100% + 0.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 1.75rem;
  background: rgba(18, 18, 24, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(242, 239, 233, 0.1);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: "Inter Tight", sans-serif;
  text-transform: none;
  letter-spacing: normal;
  visibility: hidden;
  opacity: 0;
}
.mega-inner { display: grid; grid-template-columns: 250px 1fr 260px; gap: 1rem; }

/* category tabs */
.mega-tabs { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; }
.mega-tab {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(242, 239, 233, 0.4);
  transition: color 0.3s, background-color 0.3s;
}
.mega-tab.is-active { color: #f2efe9; background: rgba(242, 239, 233, 0.06); }
.mega-all {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: auto;
  padding: 1.5rem 1rem 0.25rem;
  font-size: 15px;
  color: rgba(242, 239, 233, 0.7);
  transition: color 0.3s;
}
.mega-all span { transition: transform 0.3s; }
.mega-all:hover { color: #f17f2f; }
.mega-all:hover span { transform: translateX(4px); }

/* product card (RevGenFlow) under the category tabs */
.mega-product {
  display: grid;
  gap: 0.1rem;
  margin-top: auto;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(242, 239, 233, 0.1);
  background: rgba(242, 239, 233, 0.04);
  transition: border-color 0.3s;
}
.mega-product:hover { border-color: #f17f2f; }
.mega-product-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: #f2efe9; }
.mega-product-name span { color: #f17f2f; }
.mega-product-desc { font-size: 12px; color: rgba(242, 239, 233, 0.55); }
.mega-product + .mega-all { margin-top: 0; padding-top: 0.9rem; }

/* services pane — all panes share one grid cell, only the active one shows */
.mega-panes { display: grid; padding: 1.75rem 1.5rem; border-left: 1px solid rgba(242, 239, 233, 0.08); }
.mega-pane { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.mega-pane.is-active { visibility: inherit; opacity: 1; } /* inherit: stays hidden while the menu is closed */
.mega-desc { max-width: 34ch; font-size: 1.1rem; line-height: 1.5; color: rgba(242, 239, 233, 0.6); }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; margin-top: 1.75rem; }
.mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.08);
  font-size: 16px;
  color: rgba(242, 239, 233, 0.85);
  transition: color 0.25s, padding 0.3s;
}
.mega-links a span { color: #f17f2f; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.25s, transform 0.3s; }
.mega-links a:hover { color: #f2efe9; padding-left: 0.4rem; }
.mega-links a:hover span { opacity: 1; transform: none; }

/* featured project card */
.mega-features { display: grid; }
.mega-feature {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 1.25rem;
  visibility: hidden;
  opacity: 0;
}
.mega-feature.is-active { visibility: inherit; opacity: 1; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(7, 7, 10, 0.75)); }
.mega-feature-cap {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  font-size: 15px;
  font-weight: 600;
  color: #f2efe9;
}
.mega-feature-cap small { font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: #f17f2f; }
@media (max-width: 767px) { .mega-menu { display: none; } }
/* outlined pill for light sections (dark twin of .explore-btn) */
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(7, 7, 10, 0.2);
  padding: 0.9rem 1.6rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.view-btn:hover { background: #f17f2f; border-color: #f17f2f; color: #07070a; }

/* logo marquee: two identical lists slide left by exactly one list width, forever */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; flex-shrink: 0; }
.marquee-list li {
  padding: 0 3rem;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: rgba(7, 7, 10, 0.35);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-list li:hover { color: #07070a; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* frosted assistant card */
.ai-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ai-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.ai-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f17f2f; color: #07070a; }
.ai-avatar svg { width: 18px; height: 18px; }
.ai-status { display: flex; align-items: center; gap: 0.45rem; font-size: 12px; font-weight: 500; color: rgba(242, 239, 233, 0.55); }
.ai-status i { width: 7px; height: 7px; border-radius: 9999px; background: #4ade80; box-shadow: 0 0 10px #4ade80; }

/* AI dashboard */
.ai-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.ai-kpi {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ai-kpi strong { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.ai-kpi > span { font-size: 12px; line-height: 1.35; color: rgba(242, 239, 233, 0.55); } /* label only, not the number */
.ai-kpi em { display: block; margin-top: 0.15rem; font-style: normal; color: #f17f2f; }
.ai-chart { position: relative; padding: 0.85rem 1rem 0.4rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.ai-chart-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 12px; color: rgba(242, 239, 233, 0.55); }
/* sits right beside the dashed "AI launched" line (x = 180 / 400 = 45% of the chart width) */
.ai-marker-label { position: absolute; top: 0.85rem; left: calc(1rem + (100% - 2rem) * 0.45 + 8px); color: #f17f2f; }
.ai-chart svg { display: block; width: 100%; height: 76px; overflow: visible; }
.ai-line { fill: none; stroke: #f17f2f; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ai-marker { stroke: rgba(241, 127, 47, 0.5); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ai-dot { fill: #f17f2f; filter: drop-shadow(0 0 6px #f17f2f); }
/* fixed 3-row window: new items slide in at the top, the oldest slips out of view — height never changes */
.ai-feed { display: grid; gap: 0.45rem; align-content: start; overflow: hidden; }
.ai-feed li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  color: rgba(242, 239, 233, 0.88);
}
.ai-feed li b { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 9999px; background: #f17f2f; color: #07070a; font-size: 11px; }
.ai-feed li small { margin-left: auto; white-space: nowrap; font-size: 12px; color: rgba(242, 239, 233, 0.4); }
.ai-note { text-align: right; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 239, 233, 0.3); }
@media (max-width: 480px) { .ai-kpi > span { font-size: 11px; } .ai-feed li small { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .grain,
  .scroll-cue span,
  .stat-chip,
  .bot-float,
  .bot-antenna,
  .bot-bulb,
  .marquee-track {
    animation: none;
  }
}

/* ---------- Cookie consent (markup injected by assets/cookie-consent.js) ---------- */
.cookie-box {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 85;
  width: min(400px, calc(100vw - 2.5rem));
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: rgba(18, 18, 24, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(242, 239, 233, 0.12);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f2efe9;
  font-family: "Inter Tight", sans-serif;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cookie-box.is-in { opacity: 1; transform: none; }
.cookie-box.is-out { opacity: 0; transform: translateY(16px); }
.cookie-head { display: flex; align-items: center; gap: 0.65rem; font-size: 16px; }
.cookie-head strong { font-weight: 600; letter-spacing: -0.01em; }
.cookie-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f17f2f; color: #07070a; }
.cookie-icon svg { width: 18px; height: 18px; }
.cookie-box p { margin-top: 0.75rem; font-size: 14px; line-height: 1.55; color: rgba(242, 239, 233, 0.65); }
.cookie-box p a { color: #f2efe9; text-decoration: underline; text-decoration-color: #f17f2f; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.cookie-btn { flex: 1; padding: 0.75rem 1rem; border-radius: 9999px; font-size: 14px; font-weight: 600; transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.cookie-btn--ghost { border: 1px solid rgba(242, 239, 233, 0.2); color: #f2efe9; }
.cookie-btn--ghost:hover { border-color: rgba(242, 239, 233, 0.5); }
.cookie-btn--primary { background: #f17f2f; color: #07070a; }
.cookie-btn--primary:hover { background: #f2efe9; }
@media (prefers-reduced-motion: reduce) { .cookie-box { transition: opacity 0.3s; transform: none; } }

/* ---------- Shared by the Studio and Gen AI pages ---------- */
.about-h2 { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.cta-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; margin: 0 auto; }

/* ---------- Image loading state (set by main.js) ----------
   While a picture is still downloading, its frame shows a slow, soft light sweep over the frame's own
   background; the image fades in once it's ready. Frames on dark sections use a fainter sweep. */
.cap-feature { background: rgba(138, 138, 146, 0.14); }
.about-banner { background: #16161b; }
.mega-feature { background: rgba(255, 255, 255, 0.05); }
.sb-loading { --sweep: rgba(255, 255, 255, 0.55); }
.post-media.sb-loading, .wk-media.sb-loading, .work-card.sb-loading, .about-banner.sb-loading,
.mega-feature.sb-loading, .is-dark .cap-feature.sb-loading { --sweep: rgba(255, 255, 255, 0.06); }
.sb-loading {
  background-image: linear-gradient(100deg, transparent 30%, var(--sweep) 50%, transparent 70%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: sb-sweep 1.6s ease-in-out infinite;
}
.sb-loading img { opacity: 0; }
@keyframes sb-sweep {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-loading { animation: none; background-image: none; }
}
