/* ============================================================
   Creative Source — Marketing site (wembi-structured)
   Layout + motion. All color/type/space from DS tokens.
   ============================================================ */

html { scroll-behavior: smooth; background: var(--cs-ink); }
body { overflow-x: hidden; background: transparent; }

/* knobs the Tweaks panel writes to */
:root {
  --accent: var(--cs-orange);
  --accent-bright: var(--cs-orange-bright);
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), 0 10px 40px color-mix(in srgb, var(--accent) 26%, transparent);
  --reveal-shift: 26px;
}

::selection { background: var(--accent); color: var(--text-on-orange); }

#app { position: relative; }

/* ---- shared layout ---------------------------------------- */
.wrap { width: min(var(--container-xl), 92vw); margin-inline: auto; }
.wrap-md { width: min(var(--container-md), 90vw); margin-inline: auto; }

.section { position: relative; padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }

/* section index header — wembi numbered kicker */
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 84px); }
.s-head__left { max-width: 760px; }
.s-num {
  font-family: var(--font-mono); font-size: var(--fs-mono-label);
  letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.s-num::before { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .8; }
.s-title { font-size: var(--fs-h1); letter-spacing: var(--ls-tight); text-wrap: balance; }
.s-title .lo { color: var(--text-muted); }
.s-lead { margin-top: 22px; color: var(--text-secondary); font-size: var(--fs-lead); line-height: var(--lh-relaxed); max-width: 56ch; text-wrap: pretty; }
.s-aside { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: var(--ls-mono); text-align: right; line-height: 1.9; }
.s-aside b { color: var(--text-secondary); font-weight: var(--fw-regular); }

/* hairline rules between sections */
.rule { height: 1px; background: var(--border-subtle); width: 100%; }

/* ---- spray glows ------------------------------------------ */
.glow-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .5; z-index: 0; }

/* =================== NAV ==================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 44px);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base), backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(3,4,6,0.62); backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--border-subtle);
}
.nav__brand { display: flex; align-items: center; gap: 12px; z-index: 2; }
.nav__brand img { height: 34px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav__link {
  font-family: var(--font-mono); font-size: 1rem; letter-spacing: var(--ls-mono);
  text-transform: uppercase; color: var(--text-secondary); padding: 8px 4px;
  position: relative; transition: color var(--dur-fast); white-space: nowrap;
}
.nav__link .i { color: var(--accent); margin-right: 6px; }
.nav__link:hover { color: var(--text-primary); }
.nav__link.is-active { color: var(--text-primary); }
.nav__link.is-active::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 1px; background: var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; }
@media screen and (max-width: 1020px) {
  .nav__brand img { height: 24px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 8px; background: none; border: none;
    cursor: pointer; z-index: 10;
  }
  .nav__burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__mobile {
    position: fixed; inset: 0; top: 0; z-index: 5;
    background: rgba(3,4,6,.96); backdrop-filter: blur(16px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 80px 24px 40px;
  }
  .nav__mobile-link {
    font-size: clamp(1.3rem, 4vw, 1.6rem); font-weight: var(--fw-medium);
    color: var(--text-secondary); text-decoration: none; padding: 14px 24px;
    border-radius: 10px; width: 100%; max-width: 320px; text-align: center;
    transition: color .2s, background .2s;
  }
  .nav__mobile-link:hover, .nav__mobile-link.is-active { color: var(--text-primary); background: rgba(255,255,255,.06); }
  .nav__mobile-link .i { color: var(--accent); margin-right: 8px; }
  .nav__mobile-cta {
    margin-top: 16px; padding: 14px 36px; border-radius: 100px;
    background: var(--accent); color: #fff; font-weight: var(--fw-semibold);
    font-size: 1rem; text-decoration: none; transition: opacity .2s;
  }
  .nav__mobile-cta:hover { opacity: .85; }

  /* ---- Section separation on mobile ---- */
  .section {
    padding-block: 64px 72px;
    border-top: 1px solid var(--border-default);
  }
  /* alternating backgrounds — dark / almost white */
  .section:nth-of-type(odd) {
    background: var(--cs-ink);
  }
  .section:nth-of-type(even) {
    background: #f0ede8;
    color: #0d0e12;
  }
  .section:nth-of-type(even) .s-num,
  .section:nth-of-type(even) .s-title,
  .section:nth-of-type(even) .s-lead,
  .section:nth-of-type(even) h2,
  .section:nth-of-type(even) h3,
  .section:nth-of-type(even) p {
    color: #0d0e12;
  }
  .section:nth-of-type(even) .s-title .lo,
  .section:nth-of-type(even) .text-muted,
  .section:nth-of-type(even) .cs-eyebrow {
    color: #555;
  }
  /* step tabs on light bg */
  .section:nth-of-type(even) .step__tab { color: #444; border-color: rgba(0,0,0,.12); }
  .section:nth-of-type(even) .step__tab h3 { color: #222; }
  .section:nth-of-type(even) .step__tab p { color: #555; }
  .section:nth-of-type(even) .step__tab.is-active { color: #0d0e12; }
  .section:nth-of-type(even) .step__tab.is-active h3 { color: #0d0e12; }
  .section:nth-of-type(even) .step__tab__no { color: #888; }
  .section:nth-of-type(even) .step__tab.is-active .step__tab__no { color: var(--accent); }
  .section:nth-of-type(even) .step__tab__plus { border-color: rgba(0,0,0,.25); color: #555; }
  .section:nth-of-type(even) .step__tab.is-active .step__tab__plus { background: var(--accent); border-color: var(--accent); color: #fff; }
  /* chips on light bg */
  .section:nth-of-type(even) .chip { border-color: rgba(0,0,0,.2); color: #333; }
  .section:nth-of-type(even) .chip::before { color: var(--accent); }
  /* contact channels & form on light bg */
  .section:nth-of-type(even) .contact__channel { color: #333; }
  .section:nth-of-type(even) .contact__channel:hover { color: #0d0e12; }
  .section:nth-of-type(even) .contact__channel i { color: var(--accent); }
  .section:nth-of-type(even) .field {
    background: #fff;
    border-color: rgba(0,0,0,.18);
    color: #0d0e12;
  }
  .section:nth-of-type(even) .field::placeholder { color: #999; }
  .section:nth-of-type(even) .form__check,
  .section:nth-of-type(even) .form__check a { color: #444; }
  .section:nth-of-type(even) .form__check a:hover { color: #0d0e12; }
  .section:nth-of-type(even) .form__row label {
    color: #888;
    font-size: .85rem;
    letter-spacing: .08em;
  }
  /* case cards already dark-overlaid — keep as-is */
  /* stronger section label — accent left bar + bigger text */
  .s-num {
    font-size: .72rem;
    letter-spacing: .12em;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    margin-bottom: 20px;
  }
  .s-num::before { display: none; }
  /* section title smaller on mobile */
  .s-title { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
  /* hide aside on mobile — saves space, avoids clutter */
  .s-aside { display: none; }
  /* rule dividers already replaced by section border-top */
  .rule { display: none; }
}

/* =================== HERO ================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: clamp(80px, 12vw, 140px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 120%; object-fit: cover; object-position: center; will-change: transform; filter: saturate(1.08) brightness(.68) contrast(1.02); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,4,6,.28) 0%, rgba(3,4,6,.14) 22%, rgba(3,4,6,.38) 54%, rgba(3,4,6,.78) 80%, var(--cs-ink) 100%),
    linear-gradient(90deg, rgba(3,4,6,.62) 0%, rgba(3,4,6,.30) 46%, rgba(3,4,6,.08) 82%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 16px clamp(18px, 4vw, 44px); }
.hero__eyebrow { margin-bottom: 30px; }
.hero h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; padding-block: 16px; }
.hero__lead { margin-top: 30px; max-width: 52ch; font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem); color: var(--text-secondary); line-height: var(--lh-relaxed); text-wrap: pretty; }
.hero__actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__meta { position: absolute; right: clamp(18px, 4vw, 44px); bottom: clamp(32px, 5vw, 64px); z-index: 2;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); color: var(--text-muted);
  text-align: right; line-height: 2; display: grid; gap: 2px; }
.hero__meta b { color: var(--accent); font-weight: var(--fw-regular); }
@media (max-width: 720px) { .hero__meta { display: none; } }

.scroll-cue { position: absolute; left: clamp(18px, 4vw, 44px); bottom: 24px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.scroll-cue .bar { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cuePulse 2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cuePulse { 0%,100% { transform: scaleY(.4); opacity:.5 } 50% { transform: scaleY(1); opacity:1 } }

/* marquee strip under hero */
.marquee { border-block: 1px solid var(--border-subtle); overflow: hidden; background: var(--surface-raised); }
.marquee__track { display: flex; gap: 56px; padding: 18px 0; width: max-content; animation: marq 32s linear infinite; }
.marquee__track span { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--text-muted); display: inline-flex; gap: 56px; align-items: center; }
.marquee__track span::after { content: "#"; color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* =================== 001 — SERVICES ======================== */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.svc {
  grid-column: span 6; position: relative; background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px); min-height: 240px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.svc::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--sa, var(--accent)); opacity: .85; }
.svc:hover { transform: translateY(-4px); border-color: var(--border-default); box-shadow: var(--shadow-lg); }
.svc__no { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); color: var(--text-muted); }
.svc__ico { width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: color-mix(in srgb, var(--sa, var(--accent)) 14%, transparent); color: var(--sa, var(--accent)); margin-bottom: 22px; }
.svc__ico i { width: 22px; height: 22px; }
.svc h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.svc p { color: var(--text-secondary); line-height: var(--lh-relaxed); max-width: 42ch; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.svc--wide { grid-column: span 12; flex-direction: row; align-items: center; gap: 40px; min-height: 0; }
.svc--wide .svc__body { flex: 1; }
@media (max-width: 860px) { .svc { grid-column: span 12; } .svc--wide { flex-direction: column; align-items: flex-start; } }

.chip { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); color: var(--text-secondary);
  border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 5px 12px; }
.chip::before { content: "#"; color: var(--accent); margin-right: 3px; }

/* =================== 002 — PROCESS STEPPER (signature) ===== */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.step__tabs { display: flex; flex-direction: column; gap: 0; }
.step__tab {
  text-align: left; background: none; border: none; border-top: 1px solid var(--border-subtle);
  padding: clamp(20px, 2.4vw, 30px) 0; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 22px;
  align-items: start; color: var(--text-muted); transition: color var(--dur-base), padding var(--dur-base) var(--ease-out);
  position: relative;
}
.step__tab:last-child { border-bottom: 1px solid var(--border-subtle); }
.step__tab__no { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: var(--ls-mono); padding-top: 6px; }
.step__tab__t { transition: color var(--dur-base); }
.step__tab__t h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); color: inherit; transition: color var(--dur-base); letter-spacing: var(--ls-tight); }
.step__tab__t p { margin-top: 10px; color: var(--text-secondary); line-height: var(--lh-relaxed); max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur-base), margin var(--dur-base); }
.step__tab__plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-default); display: grid; place-items: center; flex: none; margin-top: 4px; transition: all var(--dur-base) var(--ease-out); color: var(--text-muted); }
.step__tab.is-active { color: var(--text-primary); padding-left: 18px; }
.step__tab.is-active .step__tab__no { color: var(--accent); }
.step__tab.is-active .step__tab__t h3 { color: var(--text-primary); }
.step__tab.is-active .step__tab__t p { max-height: 120px; opacity: 1; margin-top: 12px; }
.step__tab.is-active .step__tab__plus { background: var(--accent); border-color: var(--accent); color: var(--text-on-orange); transform: rotate(90deg); }
.step__tab.is-active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }

.step__stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); min-height: 440px; background: var(--surface-inset); }
.step__panel { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); display: flex; flex-direction: column; justify-content: flex-end; }
.step__panel.is-active { opacity: 1; }
.step__panel__img { position: absolute; inset: 0; }
.step__panel__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out); filter: saturate(1.02) brightness(.74); }
.step__panel.is-active .step__panel__img img { transform: scale(1); }
.step__panel__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,4,6,.34) 0%, rgba(3,4,6,.62) 50%, rgba(3,4,6,.97) 100%); }
.step__panel__body { position: relative; z-index: 2; padding: clamp(24px, 3vw, 38px); }
.step__panel__no { font-family: var(--font-mono); font-size: clamp(3rem,2rem+4vw,5.5rem); line-height: .8; color: color-mix(in srgb, var(--accent) 88%, white); letter-spacing: -0.04em; }
.step__panel__body h4 { font-size: var(--fs-h3); margin: 18px 0 10px; }
.step__panel__body p { color: var(--text-secondary); max-width: 46ch; line-height: var(--lh-relaxed); }
.step__panel__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.step__bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.08); z-index: 3; }
.step__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 90ms linear; }
@media (max-width: 900px) { .step { grid-template-columns: 1fr; } .step__stage { min-height: 360px; order: -1; } }

/* =================== 003 — WHY / STATS ===================== */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface-base); padding: clamp(26px, 3vw, 40px); position: relative; }
.stat__n { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: clamp(2.6rem, 1.8rem + 3.2vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; color: var(--text-primary); display: flex; align-items: baseline; }
.stat__n .suf { color: var(--sc, var(--accent)); font-size: .5em; margin-left: 4px; }
.stat__l { margin-top: 14px; color: var(--text-secondary); font-size: var(--fs-sm); line-height: var(--lh-snug); }
.stat__tag { position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--sc, var(--accent)); }
.why__copy .quote { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.3; letter-spacing: var(--ls-tight); text-wrap: balance; }
.why__copy .quote em { font-style: normal; color: var(--accent); }
.why__copy p { margin-top: 22px; color: var(--text-secondary); line-height: var(--lh-relaxed); max-width: 46ch; }
@media (max-width: 880px) { .why { grid-template-columns: 1fr; } }

/* =================== 004 — SHOWCASE / CASES =============== */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.case { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; border: 1px solid var(--border-subtle); }
.case--a { grid-column: span 7; min-height: 460px; }
.case--b { grid-column: span 5; }
.case--c { grid-column: span 5; }
.case--d { grid-column: span 7; }
.case__img { position: absolute; inset: 0; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .9s var(--ease-out); will-change: transform; filter: saturate(1.02) brightness(.62); }
.case:hover .case__img img { transform: scale(1.05); filter: saturate(1.08) brightness(.74); }
.case__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,4,6,.30) 0%, rgba(3,4,6,.58) 42%, rgba(3,4,6,.96) 84%, var(--cs-ink) 100%); }
.case__body { position: relative; z-index: 2; padding: clamp(24px, 2.6vw, 34px); width: 100%; }
.case__cat { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--cc, var(--accent)); }
.case__body h3 { font-size: var(--fs-h3); margin: 12px 0 8px; text-wrap: balance; }
.case__body p { color: var(--text-secondary); max-width: 40ch; line-height: var(--lh-snug); }
.case__row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 16px; }
.case__kpi { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-primary); letter-spacing: var(--ls-mono); }
.case__kpi b { color: var(--cc, var(--accent)); font-weight: var(--fw-regular); }
@media (max-width: 860px) { .case, .case--a, .case--b, .case--c, .case--d { grid-column: span 12; min-height: 340px; } }

/* =================== LIGHTBOX ============================== */
#lb {
  display: none; position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(3,4,6,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
#lb.lb--open { display: flex; animation: lbIn .22s ease-out; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

#lb-close {
  position: fixed; top: 24px; right: 24px; z-index: 2147483647;
  background: #F2920A; border: none; border-radius: 50%;
  width: 64px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; color: #000;
  font-family: monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(242,146,10,.5);
  transition: transform .15s ease-out, box-shadow .15s;
}
#lb-close:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(242,146,10,.7); }
#lb-close svg { flex: none; }

#lb-inner {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start;
  width: min(1400px, 96vw); max-height: 92vh; overflow-y: auto;
  animation: lbUp .28s ease-out;
}
@keyframes lbUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
#lb-img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 12px; display: block; }
#lb-caption { padding: 8px 0; position: sticky; top: 0; }
#lb-cat { font-family: monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 14px; }
#lb-title { font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); margin-bottom: 10px; line-height: 1.2; color: #fff; }
#lb-desc { color: rgba(255,255,255,.6); line-height: 1.6; }
@media (max-width: 700px) {
  #lb-inner { grid-template-columns: 1fr; }
  #lb-img { max-height: 60vh; }
  #lb-caption { position: static; }
}

.case { cursor: pointer; }

/* =================== 005 — FAQ ============================= */
.faq { display: grid; grid-template-columns: 360px 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq__list { border-top: 1px solid var(--border-subtle); }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--text-primary);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.2vw, 28px) 0; font-family: var(--font-sans); }
.faq__q h3 { font-size: clamp(1.1rem, .95rem + .7vw, 1.4rem); font-weight: var(--fw-medium); letter-spacing: var(--ls-tight); transition: color var(--dur-base); }
.faq__item:hover .faq__q h3 { color: var(--accent); }
.faq__sign { flex: none; width: 30px; height: 30px; position: relative; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; background: var(--accent); transition: transform var(--dur-base) var(--ease-snap), opacity var(--dur-base); }
.faq__sign::before { top: 50%; left: 6px; right: 6px; height: 2px; transform: translateY(-50%); }
.faq__sign::after { left: 50%; top: 6px; bottom: 6px; width: 2px; transform: translateX(-50%); }
.faq__item.is-open .faq__sign::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq__a p { color: var(--text-secondary); line-height: var(--lh-relaxed); padding-bottom: clamp(20px, 2.2vw, 28px); max-width: 62ch; }
.faq__item.is-open .faq__a { max-height: 320px; }
.faq__side .cs-eyebrow { display: block; margin-bottom: 18px; }
.faq__side h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-tight); text-wrap: balance; }
.faq__side p { margin-top: 18px; color: var(--text-secondary); line-height: var(--lh-relaxed); }
@media (max-width: 880px) { .faq { grid-template-columns: 1fr; } }

/* =================== 006 — CONTACT ======================== */
.contact { position: relative; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; position: relative; z-index: 2; }
.contact h2 { font-size: var(--fs-display); line-height: .98; letter-spacing: -0.035em; text-wrap: balance; }
.contact h2 .cs-spray-text { display: inline; }
.contact__lead { margin-top: 24px; color: var(--text-secondary); font-size: var(--fs-lead); line-height: var(--lh-relaxed); max-width: 44ch; }
.contact__channels { margin-top: 34px; display: grid; gap: 2px; }
.contact__channel { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: var(--ls-mono); color: var(--text-secondary); padding: 10px 0; transition: color var(--dur-fast); }
.contact__channel i { color: var(--accent); width: 18px; height: 18px; }
.contact__channel:hover { color: var(--text-primary); }
.form { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; gap: 8px; }
.form__row label { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #888; }
.form__row .cs-hash::before { margin-right: 4px; }
.field { background: var(--surface-inset); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 13px 16px; color: var(--text-primary); font-family: var(--font-sans); font-size: var(--fs-body); transition: border-color var(--dur-base), box-shadow var(--dur-base); width: 100%; }
.field::placeholder { color: var(--text-muted); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.field { resize: vertical; min-height: 110px; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-relaxed); cursor: pointer; }
.form__check input[type="checkbox"] { flex: none; margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.form__check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form__check a:hover { color: var(--text-primary); }

.footer__legal { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); color: var(--text-muted); transition: color var(--dur-fast); }
.footer__legal:hover { color: var(--accent); }

.contact__hash { position: absolute; right: -4vw; bottom: -10vw; font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: 60vw; line-height: .7; color: color-mix(in srgb, var(--accent) 8%, transparent); z-index: 0; pointer-events: none; user-select: none; }
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } .form__two { grid-template-columns: 1fr; } }

/* =================== FOOTER =============================== */
.footer { border-top: 1px solid var(--border-subtle); padding-block: clamp(48px, 6vw, 80px); }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand img { height: 28px; margin-bottom: 18px; }
.footer__brand p { color: var(--text-secondary); max-width: 34ch; line-height: var(--lh-relaxed); }
.footer__cols { display: flex; gap: clamp(30px, 5vw, 80px); flex-wrap: wrap; }
.footer__col h5 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-secondary); padding: 6px 0; transition: color var(--dur-fast); font-size: var(--fs-sm); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 70px); padding-top: 28px; border-top: 1px solid var(--border-subtle); }
.footer__bottom span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); color: var(--text-muted); }
.footer__slogan { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-mono); color: var(--text-secondary); }
.footer__slogan b { color: var(--accent); font-weight: var(--fw-regular); }

/* =================== SCROLL REVEAL ======================== */
[data-reveal] { opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal-d="3"] { transition-delay: .24s; }
[data-reveal-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .marquee__track, .scroll-cue .bar { animation: none; }
}

/* =================== AI BACKGROUND ========================= */
#ai-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: screen;
  will-change: transform;
}
.orb--1 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(242,146,10,0.22) 0%, transparent 70%);
  top: -20%; left: -15%;
  animation: orb1 28s ease-in-out infinite alternate;
}
.orb--2 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(120,60,255,0.18) 0%, transparent 70%);
  bottom: -10%; right: -10%;
  animation: orb2 34s ease-in-out infinite alternate;
}
.orb--3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(29,198,255,0.13) 0%, transparent 70%);
  top: 30%; right: 5%;
  animation: orb3 22s ease-in-out infinite alternate;
}
.orb--4 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(242,100,10,0.14) 0%, transparent 70%);
  bottom: 20%; left: 10%;
  animation: orb4 30s ease-in-out infinite alternate;
}
@keyframes orb1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(18vw, 22vh) scale(1.15); }
}
@keyframes orb2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-14vw, -18vh) scale(1.2); }
}
@keyframes orb3 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-10vw, 14vh) scale(0.85); }
}
@keyframes orb4 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(12vw, -10vh) scale(1.1); }
}

/* grain toggle */
body.has-grain::before { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* tweaks host */
#tweaks-root { position: fixed; z-index: 300; }
