/* =================================================================
   WOW LAYER — kinetic type, deck, marquees, dark + lime blocks
   Loaded after site.css
   ================================================================= */
:root { --serif: "Archivo", "Manrope", system-ui, sans-serif; --lime: #C8F169; --lime-ink: #B4E04F; }

.display, .h2, .chap h2, .story h2, .hl figcaption h3, .wcard h3, .timeline h3, .big-steps h3, .next strong, .form h2 {
  font-variation-settings: "wdth" 110; font-weight: 800; letter-spacing: -.035em;
}
.h2 { line-height: .98; }

/* Buttons */
.btn--lime { background: var(--lime); color: var(--text); }
.btn--lime:hover { background: var(--lime-ink); }
.btn--ink { background: var(--text); color: var(--lime); }
.btn--ink:hover { background: #0B1811; }

/* ---------- Kinetic hero ---------- */
.khero { position: relative; min-height: 100svh; padding: clamp(110px, 12vw, 150px) 0 clamp(40px, 5vw, 60px); overflow: hidden; display: flex; }
.khero__in { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.khero__title {
  margin: 0; position: relative; z-index: 2; font-family: var(--serif); font-weight: 850;
  font-size: clamp(3.1rem, 9.4vw, 10.4rem); line-height: .88; letter-spacing: -.045em;
  font-variation-settings: "wdth" var(--wd, 112);
}
.khero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.khero__title .w { display: inline-block; will-change: transform; }
.hl-word { position: relative; z-index: 0; padding: 0 .12em; margin-left: -.04em; }
.hl-word::before { content: ""; position: absolute; z-index: -1; inset: .1em 0 .02em; background: var(--lime); border-radius: .08em; transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.hl-word.is-on::before, .no-gsap .hl-word::before { transform: scaleX(1); }
.khero__foot { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--g); align-items: end; }
.khero__foot .lede { max-width: 46ch; }
.khero__foot .hero__ctas { margin-top: 0; }

.deck { position: absolute; z-index: 1; right: -3%; top: 60%; width: min(39vw, 580px); aspect-ratio: 16 / 10.5; translate: 0 -50%; perspective: 1400px; }
.card { position: absolute; inset: 0; display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(20, 38, 28, .14); background: #fff; box-shadow: 0 30px 60px -24px rgba(20, 38, 28, .45); transform-origin: 50% 110%; will-change: transform; }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__tag { position: absolute; left: 14px; bottom: 14px; background: var(--text); color: var(--lime); font: 700 12px/1 var(--sans); padding: 8px 12px; border-radius: 999px; letter-spacing: .02em; }
@media (max-width: 900px) {
  .khero { min-height: auto; }
  .deck { position: relative; right: auto; top: auto; translate: none; width: 86%; margin: 10px auto 30px; }
  .khero__foot { grid-template-columns: 1fr; }
}

/* ---------- Page wall ---------- */
.wallsec { padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.wallsec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); align-items: end; margin-bottom: 0; }
@media (max-width: 860px) { .wallsec__head { grid-template-columns: 1fr; gap: 20px; } }
.wall { display: grid; gap: clamp(14px, 1.6vw, 22px); transform: rotate(-3deg) scale(1.08); }
.wall__track { display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content; will-change: transform; }
.wall__item { flex: none; width: clamp(240px, 24vw, 400px); aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 30px -18px rgba(20, 38, 28, .35); transition: transform .5s var(--ease); }
.wall__item:hover { transform: translateY(-8px) rotate(-1deg); }
.wall__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Dark block (stage) ---------- */
.dark { --text: #F7F7F2; --text-2: #D9E0DB; --muted: #A9B5AD; --faint: #7F8E85; --line: rgba(247, 247, 242, .16); --line-2: rgba(247, 247, 242, .32);
  background: #14261C; color: var(--text); border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.4vw, 20px); }
.dark .btn { background: var(--lime); color: #14261C; }
.dark .btn:hover { background: var(--lime-ink); }
.dark .btn--line { background: transparent; color: var(--text); border-color: var(--line-2); }
.dark .btn--line:hover { border-color: var(--lime); color: var(--lime); }
.dark .prog b i { background: var(--lime); }
.dark .chap__where { color: var(--lime); }
.dark .laptop__screen, .dark .phone { border-color: #0B1811; }
.dark .laptop__base { background: #0B1811; }

/* ---------- Statement ---------- */
.statement__text { margin: 0; font: 800 clamp(2rem, 4.8vw, 4.6rem)/1.06 var(--serif); font-variation-settings: "wdth" 108; letter-spacing: -.035em; max-width: 22ch; }
.statement__text .sw { opacity: .14; }
.no-gsap .statement__text .sw { opacity: 1; }

/* ---------- Feature cards ---------- */
.grid-4 svg { color: var(--accent-text); transition: transform .5s var(--ease), color .3s; }
.lift > div { transition: background .4s var(--ease); }
.lift > div:hover { background: var(--lime); }
.lift > div:hover svg { transform: rotate(-12deg) scale(1.15); color: var(--text); }
.lift > div:hover p { color: #2A4334; }

@media (max-width: 800px) { .spin { right: -10px; } }

/* ---------- Footer marquee ---------- */
.ftr { padding-top: 0; }
.ftr__cta { padding-top: clamp(60px, 7vw, 90px); }
.ftr__q { margin: 0; font: 800 clamp(1.8rem, 3.4vw, 3rem)/1 var(--serif); font-variation-settings: "wdth" 110; letter-spacing: -.03em; color: #F7F7F2; }
.ftr__mail { margin-top: 26px; }

/* ---------- Work cards: tour preview scrolls on hover ---------- */
.wcard__img img { object-position: 50% 0; transition: object-position 7s linear, transform 1.1s var(--ease); }
.wcard:hover .wcard__img img { object-position: 50% 100%; transform: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--lime); color: #14261C; display: grid; place-items: center; font: 700 14px var(--sans); transform: scale(0); transition: transform .35s var(--ease); }
.cursor.on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 400; background: var(--lime); transform: translateY(100%); pointer-events: none; }

/* ---------- Case + inner pages: livelier ---------- */
.case-hero .display { font-size: clamp(3rem, 8vw, 8rem); line-height: .9; }
.swatches div { transition: transform .5s var(--ease); }
.swatches div:hover { transform: translateY(-8px) rotate(-2deg); }
.hl__img { transition: transform .6s var(--ease); }
.hl__img:hover { transform: translateY(-6px); }
.next { background: var(--lime); border-top: 0; }
.next small, .next span { color: #2A4334; }
.next:hover strong { color: var(--text); }
.phero .display { line-height: .92; }
.split .w { display: inline-block; }
.split .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

@media (prefers-reduced-motion: reduce) {
  .spin, .wall__track { animation: none !important; }
  .statement__text .sw { opacity: 1; }
}
