/* ============================================================
   web-collab.css: the WMIH × WMWH website service pages
   (/services/website/ and its four service pages).
   White WMWH palette, Cormorant Garamond + DM Sans, built from the
   Claude Design canvas. Everything is scoped under .wx so the shared
   nav, footer and mobile bar keep their own look.
   Motion lives in js/animations.js (initWebCollab + the shared
   reveal, tilt, CTA and accordion hooks).
   ============================================================ */

/* Fonts: SIL OFL, latin subset, self-hosted (copied from the WMWH site). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../libs/fonts/cormorant-garamond-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../libs/fonts/dm-sans-normal-latin.woff2) format('woff2'); }

body.wx-body { background: #FFFFFF; }
body.wx-body nav.site-nav { background: rgba(31,31,36,.94); }
/* The shared footer has no background of its own (it is cream text on
   the site's black page). These pages are white, so give it that black
   back: same colours as every other page's footer, readable again. */
body.wx-body footer.site-footer { background: #050505; color: #F5F5F0; }

.wx {
  --ink: #050505;
  --ink2: #3A3A3A;
  --mute: #6F6F6F;
  --cream: #F5F5F0;
  --rule: rgba(5,5,5,.10);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --ease-entrance: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.30,.64,1);
  display: block;
  padding-top: var(--nav-h);
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
.wx p, .wx ul, .wx ol, .wx dl { margin: 0; }
.wx a { color: var(--ink); }
.wx a:hover { color: var(--mute); }
.wx h1, .wx h2, .wx h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.wx .it { font-style: normal; }
.wx .num { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.wx .wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px,5vw,64px); box-sizing: border-box; }
.wx .eb { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.wx .crumb a { color: var(--mute); text-decoration: none; }

.wx .card { border: 1px solid var(--rule); border-radius: 16px; background: #FFFFFF; box-shadow: 0 2px 12px rgba(5,5,5,.06); }
.wx .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; min-height: 48px; border-radius: 999px; border: 1px solid transparent; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap; box-sizing: border-box; }

/* Hub */
.wx .tier { display: grid; grid-template-columns: minmax(160px,220px) minmax(0,1fr) auto; gap: 24px; align-items: baseline; padding: 22px 28px; border-top: 1px solid var(--rule); }

/* Service pages */
.wx .checks { padding: 0; list-style: none; }
.wx .checks li { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.wx .checks svg { flex: none; }
.wx .row { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.65; }
.wx .row dt { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 4px; }
.wx .row dd { margin: 0; color: var(--ink2); }
.wx .stack { display: flex; flex-direction: column; }
.wx .stack dl { flex: 1; display: flex; flex-direction: column; }
.wx .stack .row { flex: 1; grid-template-columns: 110px minmax(0,1fr); gap: 16px; align-items: center; padding: 15px 0; border-top: 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.wx .stack .row dt { padding-top: 0; }
.wx .phase, .wx .trio { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.wx .list { padding: 0; list-style: none; counter-reset: n; }
.wx .list li { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.65; color: var(--ink2); counter-increment: n; }
.wx .list li::before { content: "0" counter(n); font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; color: var(--ink); }

/* Price card (WMIH card anatomy, WMWH colors) */
.wx .pc { flex: 1 1 320px; max-width: 400px; padding: 32px; box-sizing: border-box; border: 1px solid rgba(5,5,5,.22); border-radius: 22px; background: #FFFFFF; color: var(--ink); transition: translate .6s var(--ease-entrance), box-shadow .5s ease, border-color .3s ease; }
.wx .pc:hover { border-color: var(--ink); box-shadow: 0 34px 70px -34px rgba(5,5,5,.35); translate: 0 -6px; }
.wx .pc-tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.wx .pc-pre { margin-top: 14px; font-size: 13px; }
.wx .pc-price { margin-top: 2px; font-family: var(--serif); font-weight: 600; font-size: clamp(56px,5vw,80px); letter-spacing: -.03em; line-height: .92; font-variant-numeric: tabular-nums; }
.wx .pc-scope { margin-top: 8px; font-size: 16px; }
.wx .pc-tiers { margin: 18px 0 4px; }
.wx .pc-tiers-k { margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.wx .pc-tiers ul { padding: 0; list-style: none; }
.wx .pc-tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.wx .pc-tiers b { font-size: 15px; font-weight: 500; text-align: right; }
.wx .pc-facts { display: grid; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(5,5,5,.22); font-size: 15px; }
.wx .pc-facts div { display: flex; justify-content: space-between; gap: 16px; }
.wx .pc-facts dt { flex: none; }
.wx .pc-facts dd { margin: 0; text-align: right; }
.wx .pc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 28px; border-radius: 12px; background: var(--ink); color: var(--cream); font-size: 16px; font-weight: 500; text-decoration: none; }
.wx .pc-btn:hover { color: var(--cream); opacity: .87; }
.wx .pc-num { margin-top: 10px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Dark bands: packages and the closing call */
.wx .dark { background: var(--ink); color: var(--cream); }
.wx .dark a { color: var(--cream); }
.wx .dark .eb { color: #A1A1A1; }
.wx .pk { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid rgba(245,245,240,.14); border-radius: 16px; background: #0B0B0D; text-decoration: none; color: var(--cream); }
.wx .pk:hover { border-color: var(--cream); color: var(--cream); }

/* FAQ */
.wx details { border-top: 1px solid var(--rule); }
.wx summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.wx summary::-webkit-details-marker { display: none; }
.wx summary::after { content: "+"; color: var(--mute); }
.wx details[open]:not(.is-closing) summary::after { content: "–"; }
.wx details > p { margin: 0 0 20px; max-width: 680px; font-size: 15px; line-height: 1.65; color: var(--mute); }

.wx :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 760px) {
  .wx .row { grid-template-columns: 1fr; gap: 4px; }
  .wx .tier { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   Motion. "Materialize", WMWH's own idea: content settles onto a
   white wall. Transform and opacity only; IntersectionObserver
   adds .on (js/animations.js). Under reduced motion, global.css
   cuts every transition and animation, and the JS skips the splits.
   ============================================================ */

/* Hero headline: each word rises out of a line mask. */
.wx .wx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wx .wx-w > span { display: inline-block; transform: translateY(105%); animation: wx-rise .9s var(--ease-entrance) forwards; animation-delay: calc(.08s + var(--i) * .07s); }
@keyframes wx-rise { to { transform: none; } }
/* What follows the headline arrives one layer at a time. */
.wx .wx-after { animation: fx-rise .8s var(--ease-entrance) backwards; animation-delay: calc(.45s + var(--i, 0) * .09s); }

/* Hub: the two studios slide in from opposite sides. */
.wx .wx-studio.reveal { transform: translateX(-28px); }
.wx .wx-studio + .wx-studio.reveal { transform: translateX(28px); }
.wx .wx-studio.reveal.on { transform: none; }

/* Included lists: each icon draws its own stroke. */
.wx .checks svg :is(path, circle, rect, line) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-entrance) .2s; }
.wx .checks li.on svg :is(path, circle, rect, line) { stroke-dashoffset: 0; }

/* Process: the rule over each phase draws left to right. */
.wx .phase::before, .wx .trio::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-entrance); transition-delay: inherit; }
.wx .phase.on::before, .wx .trio.on::before { transform: none; }

/* Price card rises; its Call button keeps a slow ink ping. */
.wx .pc { animation: fx-rise .9s var(--ease-entrance) .25s backwards; }
.wx .pc-btn { animation: wx-ping 4.5s var(--ease-entrance) 2.2s infinite; }
.wx .pc-btn:hover { animation: none; }
@keyframes wx-ping { 0% { box-shadow: 0 0 0 0 rgba(5,5,5,.28); } 30%, 100% { box-shadow: 0 0 0 14px rgba(5,5,5,0); } }

/* Cards under the pointer: tilt and a soft light (set by the shared
   pointer handler in animations.js). */
.wx .pk { transition: transform .6s var(--ease-entrance), border-color .3s ease, box-shadow .4s ease; }
/* Flat at rest, 3D only while held; while held the SURFACE GUARD in
   css/components.css tilts each card as one piece. */
.wx .pk:hover { transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.wx .pk.is-tilting { transition: transform .18s ease-out, border-color .3s ease, box-shadow .4s ease; }

@media (prefers-reduced-motion: reduce) {
  .wx .wx-w > span { transform: none; }
  .wx .checks svg :is(path, circle, rect, line) { stroke-dashoffset: 0; }
  .wx .phase::before, .wx .trio::before { transform: none; }
  .wx .wx-studio.reveal { transform: none; }
}
