/* ==========================================================================
   HYPERTREE — Design System (2026 Brand Kit)
   Electric Lime + Near Black. Bricolage Grotesque + Inter.
   No red. Ever.
   ========================================================================== */

:root {
  /* --- Brand Colors (from Brand Kit 2026) --- */
  --bg: #0C0C0C;
  --bg-alt: #0F0F0F;
  --bg-card: #161616;
  --ink: #F5F5F5;
  --ink-dim: #C8C8C8;
  --ink-mute: #8A8A8A;
  --rule: #2A2A2A;
  --accent: #B4FF39;
  --accent-hover: #9ADF2B;
  --accent-soft: rgba(180, 255, 57, 0.1);

  /* Legacy tokens (HTML references these) — routed to lime */
  --color-bg: #0C0C0C;
  --color-accent: #B4FF39;
  --color-white: #F5F5F5;
  --color-muted: #8A8A8A;
  --color-surface: #161616;
  --color-border: #2A2A2A;

  /* --- Layout --- */
  --max-w: 1240px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --pad-y: clamp(4rem, 8vw, 7rem);

  /* --- Fonts --- */
  --font-display: 'Bricolage Grotesque', 'Inter', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* --- Transition --- */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--accent-soft); color: var(--ink); }

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 6.5vw, 5.75rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); letter-spacing: -0.02em; font-weight: 700; }
h4 { font-size: 1.1rem; letter-spacing: -0.015em; font-weight: 700; }

p { color: var(--ink-dim); text-wrap: pretty; }
p strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* Hero eyebrow is slightly larger for emphasis */
.hero .eyebrow {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
}

/* ---- Layout primitives ---- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section--tight { padding-top: calc(var(--pad-y) * 0.6); padding-bottom: calc(var(--pad-y) * 0.6); }
.section--alt { background: var(--bg-alt); }

/* ---- Top nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* HYPERTREE wordmark with lime underline */
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  position: relative;
  padding-bottom: 7px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav__logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--accent);
  opacity: 0.85;
  border-radius: 2px;
}

.nav__links {
  display: none;
  gap: 2.25rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.nav__links a {
  position: relative;
  padding-block: 0.25rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; }
.nav__lang { color: var(--ink-mute); letter-spacing: 0.04em; }
.nav__lang a { padding: 0 0.35rem; }
.nav__lang a.is-active { color: var(--accent); font-weight: 600; }
.nav__lang a:hover { color: var(--ink); }

.nav__cta {
  background: var(--accent);
  color: #0C0C0C;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform var(--transition), background var(--transition);
}
.nav__cta:hover { transform: scale(1.03); background: var(--accent-hover); }
.nav__cta:active { transform: scale(0.98); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}
.hero--with-bg {
  background-image:
    linear-gradient(135deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.75) 40%, rgba(12,12,12,0.6) 100%),
    image-set(
      url('/assets/img/hero-hk-cityscape.webp') type('image/webp'),
      url('/assets/img/hero-hk-cityscape.jpg') type('image/jpeg')
    );
  background-size: cover;
  background-position: center 30%;
}
/* Fallback for browsers without image-set support */
@supports not (background-image: image-set(url('/a.webp') type('image/webp'))) {
  .hero--with-bg {
    background-image:
      linear-gradient(135deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.75) 40%, rgba(12,12,12,0.6) 100%),
      url('/assets/img/hero-hk-cityscape.jpg');
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(180, 255, 57, 0.12), transparent 60%),
    radial-gradient(800px 500px at 0% 120%, rgba(180, 255, 57, 0.05), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 2rem; }
.hero__title { max-width: 18ch; }
.hero__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--accent);
  margin-top: 1.5rem;
  border-radius: 2px;
}
.hero__sub {
  max-width: 62ch;
  font-size: 1.15rem;
  color: var(--ink-dim);
  margin-top: 1.25rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }
.hero__stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.stat__lab {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.55rem;
  font-weight: 500;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary { background: var(--accent); color: #0C0C0C; }
.btn--primary:hover { transform: scale(1.03); background: var(--accent-hover); }
.btn--primary:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--accent { background: var(--accent); color: #0C0C0C; }
.btn--accent:hover { background: var(--accent-hover); }

/* ---- Section headings ---- */
.sec-head { max-width: 60ch; margin-bottom: 3rem; }
.sec-head__eyebrow { color: var(--accent); }

/* ---- Section image (atmospheric banner) ---- */
.section-image {
  width: 100%;
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--rule);
}
.section-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.section-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,12,12,0) 0%, rgba(12,12,12,0.35) 100%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .section-image img { height: 200px; }
}

/* ---- Formats grid ---- */
.formats {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .formats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .formats { grid-template-columns: 1fr 1fr 1fr; } }

/* 2-column variant for sections with exactly 4 items (e.g. Services pillars) */
@media (min-width: 680px) {
  .formats--2col { grid-template-columns: 1fr 1fr !important; }
}

.format {
  background: var(--bg-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background var(--transition);
  position: relative;
}
.format:hover { background: #1a1a1a; }
.format::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.format:hover::before { width: 100%; }

.format__tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.format__name { font-size: 1.05rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.format__desc { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.55; }

/* ---- Pricing ---- */
.pricing {
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.pricing__header, .pricing__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 0.5rem;
  padding: 1.1rem 1.5rem;
  align-items: center;
}
.pricing__header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.pricing__row { border-bottom: 1px solid var(--rule); font-size: 0.95rem; transition: background var(--transition); }
.pricing__row:last-child { border-bottom: 0; }
.pricing__row:hover { background: #1a1a1a; }
.pricing__row strong { color: var(--ink); font-weight: 600; }
.pricing__row span { color: var(--ink-dim); }
.pricing__price {
  font-family: var(--font-display);
  color: var(--accent) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pricing__note {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 1rem;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .pricing__header { display: none; }
  .pricing__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.1rem 1.2rem;
  }
  .pricing__row span { font-size: 0.9rem; }
}

/* ---- Two-col ---- */
.two-col {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
}
.two-col h2 { margin-bottom: 0; }
.two-col p + p { margin-top: 1.25rem; }

.two-col__image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid rgba(180, 255, 57, 0.1);
}
.two-col__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .two-col__image { aspect-ratio: 16/9; }
}

/* ---- Bullets ---- */
.bullets { list-style: none; display: grid; gap: 1rem; }
.bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-dim);
  line-height: 1.6;
}
.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.bullets li strong { color: var(--ink); font-weight: 600; }

/* ---- Why-us cards ---- */
.why { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why__card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.75rem;
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition);
}
.why__card:hover { border-color: rgba(180, 255, 57, 0.3); transform: translateY(-2px); }
.why__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.why__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font-display); letter-spacing: -0.015em; }
.why__desc { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.6; }

/* ---- FAQ ---- */
.faq { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.faq__item:first-child { border-top: 1px solid var(--rule); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--ink-mute);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
  font-weight: 400;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); color: var(--accent); }
.faq__item[open] .faq__q { color: var(--accent); }
.faq__a { padding-top: 1rem; color: var(--ink-dim); max-width: 68ch; }
.faq__a p + p { margin-top: 0.9rem; }
.faq__a a { color: var(--accent); border-bottom: 1px solid rgba(180, 255, 57, 0.35); }
.faq__a a:hover { border-bottom-color: var(--accent); }

/* ---- CTA band ---- */
.cta-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 100%, rgba(180, 255, 57, 0.12), transparent 60%),
    var(--bg);
}
.cta-band h2 { max-width: 22ch; margin: 0 auto 1rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 2.5rem; }
.cta-band__btns { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer {
  padding: 3rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a { color: var(--ink-dim); }
.footer__links a:hover { color: var(--accent); }
@media (min-width: 760px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---- Breadcrumb ---- */
.crumb {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.75rem;
  font-weight: 500;
}
.crumb a:hover { color: var(--accent); }
.crumb__sep { margin: 0 0.5rem; color: var(--rule); }

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.sticky-cta .btn { flex: 1; justify-content: center; padding: 0.75rem 1rem; font-size: 0.9rem; }
@media (min-width: 820px) { .sticky-cta { display: none; } }

/* ---- Floating WhatsApp button (global, all pages) ---- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 110;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  /* Subtle entrance */
  animation: waPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.wa-float svg {
  width: 30px;
  height: 30px;
  display: block;
}
.wa-float::before {
  /* Continuous soft pulse ring to draw the eye without being annoying */
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.wa-float:active { transform: scale(0.96); }
.wa-float:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Tooltip that appears on hover (desktop only) */
.wa-float::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #0C0C0C;
  color: #F5F5F5;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.wa-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes waPopIn {
  from { opacity: 0; transform: scale(0.3) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.4; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Hide tooltip + pulse on small screens (can be noisy) */
@media (max-width: 767px) {
  .wa-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float::after { display: none; }
}

/* Mobile: ensure contact form submit button doesn't conflict with WA button.
   Contact form is at .cta-band — add bottom padding so the WA float doesn't
   sit directly over the submit button or email fallback text. */
@media (max-width: 767px) {
  .cta-band { padding-bottom: 6rem; }
  .form__submit-row { flex-direction: column; align-items: flex-start; }
  .form__submit-row .btn { width: 100%; justify-content: center; }
  .form__fallback { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float::before { animation: none; }
}

/* ---- Form ---- */
.form { display: grid; gap: 1rem; max-width: 620px; }
.form__row { display: grid; gap: 0.5rem; }
.form__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.form__input, .form__textarea, .form__select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--accent);
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__submit-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.form__fallback { font-size: 0.85rem; color: var(--ink-mute); }
.form__fallback a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 0.9rem; color: var(--ink-dim); display: none; }
.form__status.is-visible { display: block; }
.form__status.is-success { color: var(--accent); }
.form__status.is-error { color: #ff6b6b; }

/* ---- Cross-link ---- */
.xlink {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .xlink { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .xlink { grid-template-columns: repeat(4, 1fr); } }
.xlink a {
  background: var(--bg-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background var(--transition);
  position: relative;
}
.xlink a:hover { background: #1a1a1a; }
.xlink a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.xlink a:hover::before { width: 100%; }
.xlink__name { font-weight: 700; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.xlink__desc { font-size: 0.88rem; color: var(--ink-dim); }

/* ---- CHANNELS GRID (homepage) — richer 5-column card grid ---- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 3rem;
}
@media (min-width: 640px) { .channels-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .channels-grid { grid-template-columns: repeat(3, 1fr); } }

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
}
.channel-card:hover {
  border-color: rgba(180, 255, 57, 0.35);
  transform: translateY(-3px);
  background: #1a1a1a;
}
.channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 10px 10px 0 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.channel-card:hover::before { width: 100%; }

.channel-card__tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.channel-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.channel-card__name::after {
  content: "→";
  color: var(--ink-mute);
  transition: color var(--transition), transform var(--transition);
  font-weight: 400;
}
.channel-card:hover .channel-card__name::after {
  color: var(--accent);
  transform: translateX(3px);
}
.channel-card__formats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.channel-card__formats li {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.4;
  padding-left: 0.7rem;
  position: relative;
}
.channel-card__formats li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- CLIENTS GRID (restored from old site) ---- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  /* Performance: let browser skip rendering offscreen */
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
@media (min-width: 480px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(5, 1fr); } }
.client-box {
  aspect-ratio: 2 / 1;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), transform var(--transition);
  padding: 0.75rem;
  /* Explicit size prevents layout shift while images load */
  min-height: 70px;
}
.client-box:hover {
  border-color: rgba(180, 255, 57, 0.35);
  transform: translateY(-2px);
}
/* <picture> should be transparent wrapper — not a layout element */
.client-box picture {
  display: contents;
}
.client-box img {
  max-width: 82%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.88) contrast(1.05);
  opacity: 0;
  animation: logoFadeIn 0.5s ease-out 0.1s forwards;
  transition: filter var(--transition);
}
@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 0.78; transform: translateY(0); }
}
.client-box:hover img {
  opacity: 1;
  filter: brightness(1) contrast(1);
}
/* Honor reduced motion preference — still show, just don't animate */
@media (prefers-reduced-motion: reduce) {
  .client-box img {
    animation: none;
    opacity: 0.78;
  }
}

/* ---- Utilities ---- */
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3.5rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---- Privacy / Terms layout ---- */
.legal {
  padding: 6rem 0 5rem;
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: 1rem; }
.legal .legal__updated { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 3rem; }
.legal h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; color: var(--accent); font-weight: 700; }
.legal h3 { font-size: 1.1rem; margin: 1.75rem 0 0.75rem; color: var(--ink); font-weight: 700; }
.legal p, .legal li { color: var(--ink-dim); margin-bottom: 1rem; line-height: 1.75; }
.legal ul, .legal ol { margin: 1rem 0 1.5rem 1.5rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--accent); border-bottom: 1px solid rgba(180, 255, 57, 0.35); }
.legal a:hover { border-bottom-color: var(--accent); }
.legal strong { color: var(--ink); }

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Quick Answer (GEO-optimized AI citation block) ---- */
.quick-answer {
  background: linear-gradient(135deg, rgba(180, 255, 57, 0.06), rgba(180, 255, 57, 0.02));
  border: 1px solid rgba(180, 255, 57, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-top: 2.5rem;
  max-width: 820px;
}
.quick-answer__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.quick-answer__question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.quick-answer__body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-dim);
}
.quick-answer__body strong { color: var(--ink); }
