*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f3f1eb;
  --surface: #fffcf8;
  --ink: #12181f;
  --ink-soft: #5c6570;
  --line: rgba(18, 24, 31, 0.1);
  --navy: #0c1826;
  --navy-2: #163044;
  --brass: #b08a45;
  --brass-2: #e7d3a4;
  --brass-deep: #7d6230;
  --shadow: 0 18px 50px rgba(12, 24, 38, 0.08);
  --radius: 22px;
  --max: 1160px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.6;
}

::selection {
  background: #e7d3a4;
  color: #12181f;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

h1,
h2,
h3,
.stat-number,
.footer h3,
.brief-top,
.frame figcaption {
  font-family: Newsreader, Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(243, 241, 235, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(18, 24, 31, 0.06);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 138, 69, 0.85), transparent);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(231, 211, 164, 0.45), transparent 42%),
    linear-gradient(160deg, #245074, #0c1826);
  color: #fff;
  font-family: Newsreader, Georgia, serif;
  box-shadow: inset 0 0 0 1px rgba(231, 211, 164, 0.45), 0 8px 20px rgba(12, 24, 38, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-weight: 600;
}

.brand-text small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(18, 24, 31, 0.05);
}

.nav-button {
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
}

.nav-button.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid rgba(18, 24, 31, 0.16);
}

.menu-toggle,
.hamburger {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #f6f3ec;
  background:
    radial-gradient(ellipse 42% 48% at 82% 8%, rgba(176, 138, 69, 0.38), transparent 58%),
    radial-gradient(ellipse 36% 42% at 8% 88%, rgba(42, 104, 156, 0.42), transparent 62%),
    linear-gradient(168deg, #070f18 0%, #0d1b2c 46%, #17344c 100%);
}

.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
}

.aurora span:nth-child(1) {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -40px;
  background: rgba(176, 138, 69, 0.42);
  animation: float 16s ease-in-out infinite;
}

.aurora span:nth-child(2) {
  width: 320px;
  height: 320px;
  left: -60px;
  bottom: -40px;
  background: rgba(38, 96, 148, 0.45);
  animation: float 18s ease-in-out infinite reverse;
}

.aurora span:nth-child(3) {
  width: 160px;
  height: 160px;
  left: 38%;
  top: 18%;
  background: rgba(231, 211, 164, 0.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(#000 20%, transparent 90%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 78px 0 108px;
}

.eyebrow,
.section-kicker,
.mini-label,
.card-meta em,
.frame-top,
.ledger-label,
.stat-index {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.mini-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  line-height: 1.55;
  color: rgba(246, 243, 236, 0.72);
}

.section-kicker {
  color: var(--brass-deep);
}

.section-kicker.light {
  color: var(--brass-2);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-2);
  box-shadow: 0 0 0 0 rgba(231, 211, 164, 0.7);
  animation: ping 2.4s ease-out infinite;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 16ch;
  font-size: clamp(2.7rem, 4.5vw, 4.6rem);
  line-height: 0.98;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(115deg, #fff6df 10%, #e7d3a4 45%, #fff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 52ch;
  margin: 0 0 26px;
  color: rgba(246, 243, 236, 0.78);
  font-weight: 300;
  font-size: 1.06rem;
}

.hero-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem Outfit, sans-serif;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary,
.cookie-button {
  background: linear-gradient(135deg, #fff1d2, #e2c48a 40%, #b08a45);
  color: #1c150c;
  box-shadow: 0 12px 32px rgba(176, 138, 69, 0.38);
}

.button.primary:hover,
.cookie-button:hover {
  box-shadow: 0 18px 40px rgba(176, 138, 69, 0.5);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button.ink {
  background: var(--navy);
  color: #fff;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hero-meta div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-meta strong {
  display: block;
  margin-bottom: 4px;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.25rem;
}

.hero-meta span {
  display: block;
  color: rgba(246, 243, 236, 0.68);
  font-size: 0.92rem;
}

.brief {
  position: relative;
  padding: 22px 22px 8px;
  border-radius: 28px;
  background:
    linear-gradient(#f3e2bc, #b08a45) center top / 92px 3px no-repeat,
    linear-gradient(180deg, #fffdf9 0%, #f7f0e4 100%);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(231, 211, 164, 0.45),
    0 30px 80px rgba(0, 0, 0, 0.38),
    0 0 70px rgba(176, 138, 69, 0.2);
}

.brief-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.brief-top span:last-child {
  color: var(--ink-soft);
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brief-fields {
  margin: 0;
}

.brief-fields div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(18, 24, 31, 0.08);
}

.brief-fields dt {
  color: var(--brass-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brief-fields dd {
  margin: 0;
  font-size: 0.96rem;
}

.brief .mini-label {
  margin: 16px 0 0;
  color: var(--brass-deep);
}

.signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.signal-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(18, 24, 31, 0.08);
  font-size: 0.95rem;
}

.signal-list span,
.process-card > span {
  font-family: Newsreader, Georgia, serif;
  color: var(--brass-deep);
}

.principles {
  position: relative;
  z-index: 2;
  margin-top: 28px;
}

.stat-grid,
.service-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.service-card,
.insight-card,
.frame,
.ledger,
.close-card {
  background: var(--surface);
  border: 1px solid rgba(18, 24, 31, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  background:
    linear-gradient(90deg, #e7d3a4, #b08a45) top / 100% 3px no-repeat,
    var(--surface);
}

.stat-number {
  background: linear-gradient(120deg, #1a140c 20%, #8a6a34);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-index {
  display: block;
  color: var(--brass-deep);
}

.stat-number {
  display: block;
  margin: 18px 0 8px;
  font-size: 2.3rem;
}

.stat-card p,
.service-card p,
.insight-card p,
.process-card p,
.feature-copy p,
.leadership p,
.intro-copy p,
.close-card p,
.footer p,
.footer li {
  color: var(--ink-soft);
}

.stat-card p,
.service-card p,
.insight-card p {
  margin: 0;
}

.section {
  padding: 92px 0;
}

.two-col,
.image-feature-grid,
.leadership-grid,
.close-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-intro,
.intro-copy p,
.feature-copy p,
.leadership p,
.close-card p {
  margin: 14px 0 0;
  font-size: 1.05rem;
}

.intro-copy p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.16rem;
}

.services {
  padding-top: 36px;
}

.service-card,
.insight-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before,
.insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#f3e2bc, #b08a45);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.service-card:hover,
.insight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 138, 69, 0.55);
  box-shadow: 0 22px 50px rgba(12, 24, 38, 0.12);
}

.service-card:hover::before,
.insight-card:hover::before {
  transform: scaleY(1);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.card-meta span,
.insight-no {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.5rem;
  color: var(--brass-deep);
}

.card-meta em {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(176, 138, 69, 0.12);
  color: var(--brass-deep);
  font-style: normal;
}

.service-card h3,
.process-card h3,
.insight-card h3,
.feature-copy h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.method {
  background:
    radial-gradient(circle at 100% 0%, rgba(176, 138, 69, 0.2), transparent 28%),
    linear-gradient(180deg, #0c1826, #13283c);
  color: #f6f3ec;
}

.method h2,
.method h3 {
  color: #f6f3ec;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  min-height: 100%;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 211, 164, 0.45);
}

.process-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid rgba(231, 211, 164, 0.5);
  color: var(--brass-2);
}

.process-card p {
  color: rgba(246, 243, 236, 0.72);
}

.frame,
.ledger {
  margin: 0;
  padding: 22px;
}

.frame-top,
.ledger-label {
  display: flex;
  justify-content: space-between;
  color: var(--brass-deep);
}

.frame-list,
.ledger ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: row;
}

.frame-list li,
.ledger li {
  display: grid;
  gap: 4px;
  padding: 16px 0 16px 46px;
  border-top: 1px solid rgba(18, 24, 31, 0.08);
  position: relative;
}

.frame-list li::before,
.ledger li::before {
  counter-increment: row;
  content: counter(row, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: Newsreader, Georgia, serif;
  color: var(--brass-deep);
}

.frame-list b {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 550;
}

.frame-list span,
.ledger li {
  color: var(--ink-soft);
}

.frame figcaption {
  margin-top: 8px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding: 13px 14px 13px 42px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.8);
  border: 1px solid rgba(18, 24, 31, 0.06);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brass-deep);
  border-bottom: 2px solid var(--brass-deep);
  transform: rotate(-45deg);
}

.insight-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(176, 138, 69, 0.1), transparent 42%),
    var(--surface);
}

.insight-no {
  font-size: 2.2rem;
  color: rgba(125, 98, 48, 0.45);
}

.insight-card h3 {
  margin-top: auto;
  padding-top: 28px;
}

.leadership {
  background: linear-gradient(180deg, rgba(176, 138, 69, 0.1), transparent 70%);
  padding-top: 20px;
}

.quiet-note {
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
}

.close-band {
  padding-top: 20px;
}

.close-card {
  padding: 32px;
}

.close-client {
  background:
    radial-gradient(circle at 100% 0%, rgba(176, 138, 69, 0.28), transparent 40%),
    linear-gradient(160deg, #163044, #0c1826);
  color: #f6f3ec;
  border-color: transparent;
}

.close-client p {
  color: rgba(246, 243, 236, 0.74);
}

.close-card h2 {
  margin: 8px 0 0;
}

.close-card .button {
  margin-top: 22px;
}

.footer {
  margin-top: 28px;
  padding: 56px 0 24px;
  background: #08111a;
  color: rgba(246, 243, 236, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 28px;
}

.footer h3,
.footer h4 {
  margin: 0;
}

.footer h4 {
  color: var(--brass-2);
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer p,
.footer li,
.footer a {
  color: rgba(246, 243, 236, 0.68);
}

.footer a:hover {
  color: var(--brass-2);
}

.footer ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 80;
  width: min(380px, calc(100% - 28px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(12, 24, 38, 0.95);
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.cookie-actions {
  justify-content: space-between;
  align-items: center;
}

.cookie-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ribbon {
  position: relative;
  overflow: hidden;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ribbon-track p {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding-right: 22px;
  color: rgba(246, 243, 236, 0.72);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ribbon i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass-2);
  box-shadow: 0 0 10px rgba(231, 211, 164, 0.8);
}

.hero-copy > *,
.brief {
  animation: rise 0.8s ease both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.brief { animation-delay: 0.18s; }

.close-client {
  box-shadow: 0 24px 60px rgba(8, 17, 26, 0.28);
}

@keyframes ping {
  70% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes float {
  50% { transform: translate3d(18px, -22px, 0); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .service-grid,
  .insight-grid,
  .process-grid,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .image-feature-grid,
  .leadership-grid,
  .close-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-grid {
    gap: 28px;
    padding: 56px 0 88px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  h2 {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.4vw, 2.85rem);
    line-height: 1.02;
  }

  .hero-text,
  .section-intro,
  .intro-copy p,
  .feature-copy p,
  .leadership p,
  .close-card p {
    font-size: 1rem;
  }

  .eyebrow,
  .section-kicker,
  .mini-label,
  .frame-top,
  .ledger-label,
  .stat-index {
    letter-spacing: 0.12em;
  }

  .hero-actions,
  .close-card .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .close-card .button {
    width: 100%;
  }

  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(18, 24, 31, 0.05);
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 2px;
    background: var(--ink);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body:has(.menu-toggle:checked) {
    overflow: hidden;
  }

  .nav {
    position: fixed;
    top: calc(74px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 110px - env(safe-area-inset-top));
    overflow: auto;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav a.nav-button {
    justify-content: center;
    margin-top: 4px;
  }

  .menu-toggle:checked ~ .nav {
    display: flex;
  }

  .service-grid,
  .insight-grid,
  .process-grid,
  .stat-grid,
  .hero-meta,
  .brief-fields div {
    grid-template-columns: 1fr;
  }

  .brief-fields dt {
    margin-bottom: -6px;
  }

  .section {
    padding: 64px 0;
  }

  .principles {
    margin-top: 20px;
  }

  .ribbon {
    padding: 12px 0 14px;
  }

  .ribbon-track p {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .frame,
  .ledger,
  .close-card,
  .brief,
  .service-card,
  .insight-card {
    padding: 18px;
  }

  .close-card {
    padding: 24px 20px;
  }

  .insight-card {
    min-height: 0;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-button {
    width: 100%;
  }
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(176, 138, 69, 0.16);
}

.panel-hero h1 {
  max-width: 14ch;
}

.panel-note {
  margin: -12px 0 0;
  color: rgba(246, 243, 236, 0.62);
  font-size: 0.92rem;
}

.expect-list {
  margin-top: 8px;
}

.panel-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-step {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(18, 24, 31, 0.08);
  box-shadow: var(--shadow);
}

.panel-step > span {
  display: block;
  margin-bottom: 18px;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.4rem;
  color: var(--brass-deep);
}

.panel-step h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.panel-close {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 980px) {
  .panel-steps {
    grid-template-columns: 1fr;
  }

  .panel-hero h1 {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand-text small {
    display: none;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }
}

/* =====================================================================
   MOTION & POLISH LAYER
   Progressive: content is visible without JS; reveal states only apply
   when ae.js has added the .js class and motion is allowed.
   ===================================================================== */

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #7d6230, #e7d3a4, #b08a45, #fff1d2);
  box-shadow: 0 0 12px rgba(231, 211, 164, 0.6);
}

/* Header */
.topbar {
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.topbar.is-scrolled {
  background: rgba(243, 241, 235, 0.94);
  box-shadow: 0 12px 32px rgba(12, 24, 38, 0.08);
}

.nav-wrap {
  transition: min-height 0.35s ease;
}

.topbar.is-scrolled .nav-wrap {
  min-height: 66px;
}

.brand-mark {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.07);
  box-shadow: inset 0 0 0 1px rgba(231, 211, 164, 0.7), 0 12px 28px rgba(12, 24, 38, 0.28);
}

.nav a {
  transition: background 0.25s ease, color 0.25s ease;
}

.nav a.is-active {
  color: var(--ink);
  background: rgba(176, 138, 69, 0.16);
}

/* Hero: grain, cursor glow, parallax aurora, shimmering accent */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(460px circle at var(--mx, 75%) var(--my, 30%), rgba(231, 211, 164, 0.16), transparent 62%);
}

.hero:hover::after {
  opacity: 1;
}

.hero-grid,
.ribbon {
  z-index: 1;
}

.aurora {
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero h1 .w {
  display: inline-block;
  animation: wordIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 180ms);
}

@keyframes wordIn {
  from {
    opacity: 0;
    transform: translateY(0.45em) rotate(4deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero h1 em {
  background-size: 200% auto;
  animation: shine 7s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Buttons: magnetic offset + shimmer sweep + press */
.button {
  translate: var(--bx, 0px) var(--by, 0px);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.button:active {
  transform: scale(0.97);
}

.button.primary,
.cookie-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button.primary::after,
.cookie-button::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 30%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.button.primary:hover::after,
.cookie-button:hover::after {
  left: 125%;
}

/* Scroll reveal (only when JS is running and motion is allowed) */
.js .reveal:not(.is-in) {
  opacity: 0;
}

.js .reveal.is-in:not(.is-done) {
  animation: revealUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    translate: 0 40px;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: none;
  }
}

/* Cursor spotlight on cards */
.spot {
  position: relative;
}

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(176, 138, 69, 0.16), transparent 62%);
}

.spot:hover::after {
  opacity: 1;
}

.method .spot::after {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(231, 211, 164, 0.2), transparent 62%);
}

/* Card lift */
.stat-card,
.panel-step,
.frame,
.close-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.stat-card:hover,
.panel-step:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 138, 69, 0.45);
  box-shadow: 0 26px 56px rgba(12, 24, 38, 0.14);
}

.close-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(8, 17, 26, 0.3);
}

/* Method section: drifting brass glow */
.method {
  position: relative;
  overflow: hidden;
}

.method > .container {
  position: relative;
  z-index: 1;
}

.method::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 138, 69, 0.28), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

/* Process numbers: pulsing ring */
.process-card > span {
  position: relative;
}

.process-card > span::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(231, 211, 164, 0.5);
  opacity: 0;
  animation: ringPulse 3s ease-out infinite;
}

.process-grid .process-card:nth-child(2) > span::after { animation-delay: 0.75s; }
.process-grid .process-card:nth-child(3) > span::after { animation-delay: 1.5s; }
.process-grid .process-card:nth-child(4) > span::after { animation-delay: 2.25s; }

@keyframes ringPulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* List micro-interactions */
.frame-list li,
.ledger li {
  transition: padding-left 0.35s ease, background 0.3s ease;
}

.frame-list li:hover,
.ledger li:hover {
  padding-left: 52px;
}

.frame-list li:hover::before {
  color: var(--brass);
}

.feature-list li {
  transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-list li:hover {
  translate: 6px 0;
  background: #fff;
  border-color: rgba(176, 138, 69, 0.4);
  box-shadow: 0 10px 24px rgba(12, 24, 38, 0.08);
}

.signal-list li {
  transition: translate 0.35s ease;
}

.signal-list li:hover {
  translate: 6px 0;
}

/* Footer link underline sweep */
.footer ul a {
  position: relative;
}

.footer ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--brass-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.footer ul a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Cookie banner entrance */
.cookie-banner {
  animation: bannerIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.1s both;
}

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Reduced motion: keep content visible, drop all decorative motion */
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-in) {
    opacity: 1;
  }

  .scroll-progress {
    display: none;
  }

  .button {
    translate: none;
  }
}

/* =====================================================================
   MOTION LAYER 2 — intro, particles, tilt, ripple, back-to-top
   ===================================================================== */

/* First-visit intro curtain (pure CSS, class set in <head>) */
.has-intro body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(176, 138, 69, 0.28), transparent 70%),
    linear-gradient(160deg, #070f18, #17344c);
  animation: introOut 0.9s cubic-bezier(0.77, 0, 0.18, 1) 1.3s forwards;
}

.has-intro body::after {
  content: "AE";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 201;
  translate: -50% -50%;
  pointer-events: none;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(3.5rem, 12vw, 6rem);
  letter-spacing: 0.1em;
  background: linear-gradient(115deg, #fff6df, #e7d3a4 50%, #b08a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: introMark 1.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes introOut {
  to { transform: translateY(-100%); visibility: hidden; }
}

@keyframes introMark {
  0% { opacity: 0; scale: 0.7; letter-spacing: 0.5em; filter: blur(10px); }
  35% { opacity: 1; scale: 1; letter-spacing: 0.1em; filter: none; }
  75% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.15; }
}

/* Hero entrance waits for the intro curtain */
.has-intro .hero h1 .w {
  animation-delay: calc(var(--i, 0) * 70ms + 1.5s);
}

.has-intro .hero-copy > * { animation-delay: 1.5s; }
.has-intro .hero-copy > *:nth-child(2) { animation-delay: 1.58s; }
.has-intro .hero-copy > *:nth-child(3) { animation-delay: 1.66s; }
.has-intro .hero-copy > *:nth-child(4) { animation-delay: 1.74s; }
.has-intro .hero-copy > *:nth-child(5) { animation-delay: 1.82s; }
.has-intro .brief { animation-delay: 1.7s; }
.has-intro .cookie-banner { animation-delay: 2.8s; }

/* Hero particle network */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 3D tilt on the brief card (after its entrance finishes) */
.brief.is-settled {
  animation: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.brief::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.7), transparent 60%);
  mix-blend-mode: soft-light;
}

.brief:hover::after {
  opacity: 1;
}

/* Section kicker: growing brass line */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.js .reveal .section-kicker::before {
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s;
}

.js .reveal.is-in .section-kicker::before {
  width: 28px;
}

/* Closing card: drifting blue orb + clipped glow */
.close-card {
  position: relative;
  overflow: hidden;
}

.close-client {
  isolation: isolate;
}

.close-client::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 104, 156, 0.5), transparent 65%);
  pointer-events: none;
  animation: float 14s ease-in-out infinite reverse;
}

/* Click ripple */
.button {
  overflow: hidden;
  isolation: isolate;
}

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.7s ease-out forwards;
}

@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}

/* Back to top with progress ring */
.to-top {
  position: fixed;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--brass-2);
  background: rgba(12, 24, 38, 0.92);
  box-shadow: 0 14px 34px rgba(12, 24, 38, 0.35);
  opacity: 0;
  visibility: hidden;
  translate: 0 16px;
  transition: opacity 0.35s ease, translate 0.35s ease, visibility 0.35s, background 0.3s ease;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.to-top:hover {
  background: var(--navy-2);
}

.to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top circle {
  fill: none;
  stroke-width: 2.5;
}

.to-top .track { stroke: rgba(231, 211, 164, 0.18); }

.to-top .bar {
  stroke: var(--brass-2);
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
}

.to-top span {
  position: relative;
  font-size: 1.15rem;
  line-height: 1;
  transition: translate 0.3s ease;
}

.to-top:hover span {
  translate: 0 -3px;
}

@media (max-width: 760px) {
  .to-top { left: 12px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal .section-kicker::before { width: 28px; }
  .to-top { transition: none; }
}

/* =====================================================================
   PLATFORM SHOWCASE (Research Central walkthrough)
   ===================================================================== */

.nav-new {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1c150c;
  background: linear-gradient(135deg, #fff1d2, #e2c48a 45%, #b08a45);
  box-shadow: 0 0 0 0 rgba(176, 138, 69, 0.6);
  animation: ping 2.6s ease-out infinite;
}

.platform {
  position: relative;
  padding-top: 56px;
}

.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 85% 12%, rgba(176, 138, 69, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 30% at 5% 60%, rgba(42, 104, 156, 0.1), transparent 70%);
}

.platform > .container {
  position: relative;
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.platform-stats > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.75);
  border: 1px solid rgba(18, 24, 31, 0.08);
  backdrop-filter: blur(8px);
}

.platform-stats strong {
  min-width: 2ch;
  font-family: Newsreader, Georgia, serif;
  font-size: 2.6rem;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #1a140c 20%, #b08a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.platform-stats span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Dark showcase panel */
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  color: #f6f3ec;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(176, 138, 69, 0.3), transparent 60%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(42, 104, 156, 0.4), transparent 62%),
    linear-gradient(165deg, #08121d, #0f2336 55%, #163044);
  box-shadow: 0 0 0 1px rgba(231, 211, 164, 0.25), 0 40px 100px rgba(8, 17, 26, 0.38);
}

.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background:
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(#000, transparent 85%);
}

.showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 211, 164, 0.3), transparent 65%);
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}

/* Topic list */
.sc-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  max-height: 660px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(231, 211, 164, 0.35) transparent;
  mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 22px), transparent);
}

.sc-tab {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: rgba(246, 243, 236, 0.7);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sc-tab .n {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.05rem;
  color: var(--brass-2);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.sc-tab b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}

.sc-tab small {
  display: block;
  margin-top: 1px;
  color: rgba(231, 211, 164, 0.65);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sc-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(3px);
}

.sc-tab.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(231, 211, 164, 0.2), rgba(255, 255, 255, 0.04));
  border-color: rgba(231, 211, 164, 0.4);
  box-shadow: inset 3px 0 0 var(--brass-2), 0 10px 28px rgba(0, 0, 0, 0.25);
}

.sc-tab.is-active .n {
  opacity: 1;
}

/* Stage */
.sc-stage {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.device-wrap {
  position: relative;
}

.device {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0a1420;
  box-shadow:
    0 0 0 1px rgba(231, 211, 164, 0.3),
    0 34px 80px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(176, 138, 69, 0.18);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 14px;
  background: linear-gradient(180deg, #16293c, #101f2f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b5e;
}

.dots i:nth-child(2) { background: #ffbd3f; }
.dots i:nth-child(3) { background: #2fd160; }

.device-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(246, 243, 236, 0.7);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.07);
}

.device-url em {
  color: rgba(246, 243, 236, 0.35);
  font-style: normal;
}

.device-url b {
  color: #fff;
  font-weight: 500;
}

.lock {
  flex: none;
  width: 9px;
  height: 7px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--brass-2);
  position: relative;
}

.lock::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: -5px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--brass-2);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.device-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1c150c;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff1d2, #e2c48a 50%, #b08a45);
}

.device-tag.is-still {
  color: rgba(246, 243, 236, 0.85);
  background: rgba(255, 255, 255, 0.12);
}

.device-screen {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0d1b2c;
  cursor: zoom-in;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.device-screen img.is-out {
  opacity: 0;
  transform: scale(1.025);
}

.device-screen.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, transparent 20%, rgba(231, 211, 164, 0.14) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmerBg 1.2s linear infinite;
}

@keyframes shimmerBg {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.enlarge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(8, 17, 26, 0.78);
  border: 1px solid rgba(231, 211, 164, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.3s ease, translate 0.3s ease;
}

.device-screen:hover .enlarge,
.device-screen:focus-visible .enlarge {
  opacity: 1;
  translate: 0 0;
}

.sc-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.sc-progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #e7d3a4, #b08a45);
  box-shadow: 0 0 12px rgba(231, 211, 164, 0.7);
}

/* Floating feature chips */
.float-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 14px 8px 28px;
  border-radius: 999px;
  color: #1c150c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fffaf0, #f0dcae);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}

.float-chip::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #2fb36a;
  box-shadow: 0 0 0 0 rgba(47, 179, 106, 0.6);
  animation: ping 2.2s ease-out infinite;
}

.chip-a { top: -16px; right: 25%; }
.chip-b { bottom: 22%; left: -22px; animation-delay: -3s; animation-direction: reverse; }
.chip-c { bottom: -16px; right: 14%; animation-delay: -6s; }

/* Copy */
.sc-copy {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
}

.sc-copy-main > *,
.sc-points li {
  animation: pointIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sc-copy-main > *:nth-child(2) { animation-delay: 0.06s; }
.sc-copy-main > *:nth-child(3) { animation-delay: 0.12s; }
.sc-points li { animation-delay: calc(var(--k, 0) * 90ms + 0.15s); }

@keyframes pointIn {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

.sc-count {
  margin: 0 0 10px;
  color: var(--brass-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sc-count span {
  opacity: 0.55;
}

.sc-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  color: #fff;
}

.sc-lead {
  margin: 0;
  color: rgba(246, 243, 236, 0.78);
  font-size: 1.02rem;
}

.sc-points {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.sc-points li {
  position: relative;
  padding: 11px 14px 11px 40px;
  border-radius: 14px;
  color: rgba(246, 243, 236, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-points li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 17px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brass-2);
  border-bottom: 2px solid var(--brass-2);
  transform: rotate(-45deg);
}

.sc-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(231, 211, 164, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--brass-2);
  font: 600 1.1rem Outfit, sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.sc-btn:hover {
  background: var(--brass-2);
  color: #1c150c;
  transform: translateY(-2px);
}

.ico-pause {
  width: 12px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.ico-play {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.sc-hint {
  margin-left: 6px;
  color: rgba(246, 243, 236, 0.5);
  font-size: 0.78rem;
}

/* CTA row */
.platform-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.platform-cta .platform-note {
  margin: 0 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.platform-note a {
  color: var(--brass-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 16, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.open {
  opacity: 1;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(231, 211, 164, 0.3);
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: default;
}

.lightbox.open img {
  transform: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(231, 211, 164, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
  .showcase {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .sc-tabs {
    flex-direction: row;
    max-height: none;
    padding: 0 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  }

  .sc-tab {
    grid-template-columns: auto;
    scroll-snap-align: center;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .sc-tab .n,
  .sc-tab small {
    display: none;
  }

  .sc-tab:hover {
    transform: none;
  }

  .sc-tab.is-active {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  }

  .float-chip {
    display: none;
  }
}

@media (max-width: 760px) {
  .platform-stats {
    grid-template-columns: 1fr;
  }

  .sc-copy {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .showcase {
    border-radius: 24px;
    padding: 14px;
  }

  .device-bar {
    height: 38px;
    padding: 0 10px;
    gap: 10px;
  }

  .dots,
  .device-url em {
    display: none;
  }

  .device-tag {
    font-size: 0.58rem;
    padding: 3px 8px;
  }

  .sc-hint {
    display: none;
  }

  .platform-cta .button {
    width: 100%;
  }

  .platform-cta .platform-note {
    margin: 4px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-copy-main > *,
  .sc-points li {
    animation: none;
  }

  .device {
    transition: none;
  }
}

/* =====================================================================
   AI SHOWCASE (Ask AI block, AI chips, topic filter)
   ===================================================================== */

@property --ai-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.platform h2 em {
  font-style: italic;
  background: linear-gradient(115deg, #8a6a34, #b08a45 35%, #1f8aa8 70%, #8a6a34);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}

.platform-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-stats > div {
  gap: 10px;
  padding: 16px 18px;
}

.platform-stats span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* AI block */
.ai-block {
  --ai-teal: #5de2c8;
  --ai-blue: #6fb7ff;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 38px;
  align-items: center;
  margin-bottom: 34px;
  padding: 36px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 34px;
  background:
    linear-gradient(#fffcf8, #fbf6ec) padding-box,
    conic-gradient(from var(--ai-angle), #e7d3a4, #5de2c8, #6fb7ff, #b08a45, #e7d3a4) border-box;
  box-shadow: 0 30px 80px rgba(12, 24, 38, 0.12), 0 0 70px rgba(93, 226, 200, 0.12);
  animation: aiSpin 9s linear infinite;
}

@keyframes aiSpin {
  to { --ai-angle: 360deg; }
}

.ai-block::before,
.ai-block::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.ai-block::before {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -130px;
  background: radial-gradient(circle, rgba(93, 226, 200, 0.28), transparent 65%);
  animation: float 15s ease-in-out infinite;
}

.ai-block::after {
  width: 320px;
  height: 320px;
  left: -100px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(176, 138, 69, 0.24), transparent 65%);
  animation: float 17s ease-in-out infinite reverse;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  color: #0d4a58;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(93, 226, 200, 0.22), rgba(176, 138, 69, 0.2));
  border: 1px solid rgba(31, 138, 168, 0.3);
}

.ai-badge .spark {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  color: #1f8aa8;
  animation: sparkle 2.4s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(1.35) rotate(90deg); opacity: 0.7; }
}

.ai-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1;
}

.ai-copy h3 em {
  font-style: italic;
  background: linear-gradient(115deg, #8a6a34, #1f8aa8 60%, #8a6a34);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}

.ai-lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.ai-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
}

.ai-features li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(18, 24, 31, 0.035);
  border: 1px solid rgba(18, 24, 31, 0.05);
  transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ai-features li:hover {
  translate: 6px 0;
  background: #fff;
  border-color: rgba(31, 138, 168, 0.35);
  box-shadow: 0 12px 28px rgba(12, 24, 38, 0.09);
}

.ai-features .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--ai-teal, #5de2c8);
  background: linear-gradient(160deg, #163044, #0c1826);
  box-shadow: inset 0 0 0 1px rgba(231, 211, 164, 0.4);
}

.ai-features svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-features li:first-child .ico svg {
  fill: rgba(93, 226, 200, 0.2);
}

.ai-features b {
  display: block;
  font-weight: 600;
}

.ai-features div > span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Chat demo */
.ai-demo {
  min-width: 0;
}

.chat {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: #f6f3ec;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(93, 226, 200, 0.2), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(176, 138, 69, 0.25), transparent 62%),
    linear-gradient(165deg, #08121d, #0f2336 60%, #163044);
  box-shadow: 0 0 0 1px rgba(231, 211, 164, 0.28), 0 34px 80px rgba(8, 17, 26, 0.4), 0 0 80px rgba(93, 226, 200, 0.12);
}

.chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ai-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5de2c8;
  box-shadow: 0 0 0 0 rgba(93, 226, 200, 0.7);
  animation: ping 2s ease-out infinite;
}

.chat-bar em {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brass-2);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(231, 211, 164, 0.12);
  border: 1px solid rgba(231, 211, 164, 0.3);
}

.chat-body {
  display: grid;
  gap: 14px;
  min-height: 372px;
  padding: 18px;
  align-content: start;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(231, 211, 164, 0.32);
  font-size: 0.98rem;
}

.chat-input .q {
  min-width: 0;
}

.caret {
  flex: 1 0 2px;
  width: 2px;
  max-width: 2px;
  height: 20px;
  margin-left: -8px;
  background: #5de2c8;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.chat-send {
  flex: none;
  margin-left: auto;
  padding: 9px 15px;
  border-radius: 12px;
  color: #1c150c;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff1d2, #e2c48a 45%, #b08a45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat.is-sending .chat-send {
  transform: scale(0.92);
  box-shadow: 0 0 0 6px rgba(231, 211, 164, 0.25), 0 0 26px rgba(231, 211, 164, 0.7);
}

.chat-mid {
  display: grid;
  min-height: 62px;
}

.chat-und,
.chat-think {
  grid-area: 1 / 1;
  transition: opacity 0.4s ease, translate 0.4s ease;
}

.chat-und {
  opacity: 0;
  translate: 0 10px;
}

.chat.show-und .chat-und {
  opacity: 1;
  translate: 0 0;
}

.chat-und small,
.chat-examples small {
  display: block;
  margin-bottom: 8px;
  color: rgba(231, 211, 164, 0.8);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.u-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.u-chip {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  background: rgba(93, 226, 200, 0.1);
  border: 1px solid rgba(93, 226, 200, 0.35);
  animation: pointIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.u-chip:nth-child(2) { animation-delay: 0.1s; }
.u-chip:nth-child(3) { animation-delay: 0.2s; }

.u-chip small {
  display: inline;
  margin: 0 7px 0 0;
  color: #5de2c8;
  letter-spacing: 0.1em;
}

.chat-think {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 6px;
  padding-top: 8px;
  color: rgba(246, 243, 236, 0.75);
  font-size: 0.88rem;
  opacity: 0;
}

.chat.is-thinking .chat-think {
  opacity: 1;
}

.chat-think i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5de2c8;
  animation: bounceDot 1s ease-in-out infinite;
}

.chat-think i:nth-child(2) { animation-delay: 0.15s; }
.chat-think i:nth-child(3) { animation-delay: 0.3s; margin-right: 6px; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.chat-answer {
  min-height: 150px;
  padding: 16px 16px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid #5de2c8;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}

.chat.show-ans .chat-answer {
  opacity: 1;
  translate: 0 0;
}

.chat-answer .key {
  min-height: 3.1em;
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.5;
}

.bars {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(246, 243, 236, 0.8);
}

.bar-row b {
  text-align: right;
  font-weight: 600;
  color: #fff;
}

.track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b08a45, #e7d3a4);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bar-row.is-top .track i {
  background: linear-gradient(90deg, #1f8aa8, #5de2c8);
  box-shadow: 0 0 14px rgba(93, 226, 200, 0.6);
}

.base {
  margin: 10px 0 0;
  color: rgba(246, 243, 236, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.45s ease, translate 0.45s ease;
}

.chat.show-act .chat-actions {
  opacity: 1;
  translate: 0 0;
}

.chat-actions span {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--brass-2);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(231, 211, 164, 0.45);
  background: rgba(231, 211, 164, 0.08);
}

.chat-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-examples small {
  width: 100%;
  margin: 0 0 2px;
}

.ex {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(246, 243, 236, 0.85);
  font: 500 0.78rem Outfit, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ex:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 226, 200, 0.6);
}

.ex.is-active {
  color: #04202a;
  border-color: transparent;
  background: linear-gradient(135deg, #5de2c8, #6fb7ff);
}

/* Walkthrough: tour heading, AI chips, topic filter */
.tour-head {
  margin: 8px 0 18px;
}

.tour-head .section-kicker {
  margin-bottom: 8px;
}

.tour-head h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.showcase {
  scroll-margin-top: 96px;
}

.sc-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sc-tabs {
  max-height: 600px;
}

.sc-tab[hidden] {
  display: none;
}

.ai-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  color: #04202a;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  background: linear-gradient(135deg, #5de2c8, #6fb7ff);
}

.sc-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(231, 211, 164, 0.22);
}

.sc-filter button {
  padding: 8px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 243, 236, 0.72);
  font: 600 0.74rem Outfit, sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.sc-filter button:hover {
  color: #fff;
}

.sc-filter button.is-on {
  color: #1c150c;
  background: linear-gradient(135deg, #fff1d2, #e2c48a 50%, #b08a45);
}

.sc-filter button[data-f="ai"].is-on {
  color: #04202a;
  background: linear-gradient(135deg, #5de2c8, #6fb7ff);
}

.sc-count .ai-chip {
  margin-left: 10px;
}

@media (max-width: 1100px) {
  .platform-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }

  .sc-filter {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .ai-block {
    padding: 20px 16px;
    border-radius: 26px;
  }

  .bar-row {
    grid-template-columns: 78px 1fr 38px;
  }

  .chat-body {
    min-height: 0;
  }

  .ex {
    flex: 1 1 100%;
  }
}

@media (max-width: 520px) {
  .platform-stats {
    grid-template-columns: 1fr;
  }
}

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

  .caret {
    animation: none;
  }
}
