/* Vinko Visuals ✲ shared styles for the Websites, Design, Agency, Thank-you and 404 pages (and the prototypes).
   Loaded after site.css (fonts, header, footer). Same direction as the home page:
   black and cream, every title in Coconat in one style, no eyebrow labels, media at its own proportions,
   the three symbols (❋ ✤ ✲, Assets/symbols/) as the graphic language. No em dashes: a symbol takes their place. */

/* ---------- plumbing ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.pp { position: relative; background: #0a0a0a; color: #f5f3ee; overflow: clip; }
.pp a { color: inherit; }
.pp section { position: relative; }
.pp img, .pp video { display: block; max-width: 100%; height: auto; }
.pp-wrap { padding-left: 40px; padding-right: 40px; }
.pp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* read by screen readers, not shown */
@media (max-width: 900px) { .pp-wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- the symbols, as text-sized marks that take the text colour ---------- */
.sym { display: inline-block; width: 0.72em; height: 0.72em; background: currentColor; vertical-align: -0.04em; flex-shrink: 0;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.sym-p { --m: url('/Assets/symbols/propeller.svg'); }
.sym-b { --m: url('/Assets/symbols/balloon.svg'); }
.sym-o { --m: url('/Assets/symbols/open-centre.svg'); }
.sym-sep { width: 1em; height: 1em; margin: 0 0.7em; vertical-align: -0.14em; opacity: 0.85; }
.rv-w { white-space: nowrap; }

/* ---------- type ---------- */
.pp-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 11vw, 200px); line-height: 0.92; letter-spacing: -0.045em; }
.pp-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 116px); line-height: 0.98; letter-spacing: -0.04em; }
.pp-h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 46px); line-height: 1.04; letter-spacing: -0.03em; }
.pp-lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 36px); line-height: 1.22; letter-spacing: -0.02em; }
.pp-say { font-family: var(--serif); font-size: clamp(36px, 5.2vw, 92px); line-height: 1.06; letter-spacing: -0.035em; }
.pp-body { font-size: 13.5px; line-height: 1.8; opacity: 0.72; max-width: 46ch; }
.pp-small { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }

/* ---------- links and buttons ---------- */
.pp-link { display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: opacity .3s; white-space: nowrap; }
.pp-link:hover { opacity: 0.6; }
.pp-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 32px; }

/* the header's "Let's talk." pill, at button size (vv-pill lives in site.css); on light chapters it turns dark */
.pp .vv-pill { font-size: 12px; padding: 17px 30px; }
.on-light .vv-pill, .vv-pill.is-dark { color: #0a0a0a !important; box-shadow: inset 0 0 0 1px rgba(10,10,10,0.3); }
.on-light .vv-pill::before, .vv-pill.is-dark::before { background: conic-gradient(from var(--rv-a), transparent 0deg 56deg, rgba(10,10,10,0.7) 64deg, rgba(60,90,200,0.5) 70deg, transparent 78deg 360deg); }

/* ---------- reveals (pages.js) ---------- */
.pp-w { display: inline-block; will-change: opacity; }
[data-pp-rise] { opacity: 0; transform: translateY(28px); }
html.pp-static [data-pp-rise] { opacity: 1; transform: none; }
/* Reduced motion: the sideways concept track becomes a plain row you can scroll across (VV-13) */
html.pp-static [data-pp-hs] { height: auto !important; }
html.pp-static [data-pp-hs] > :first-child { position: relative; height: auto; min-height: 0; overflow-x: auto; padding: 12vh 0; overscroll-behavior-x: contain; }

/* ---------- cursor-following preview (natural proportions) ---------- */
.pp-follow { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; width: 260px; margin: 22px 0 0 26px; opacity: 0; scale: 0.8; transition: opacity .35s, scale .6s cubic-bezier(.34,1.56,.64,1); will-change: transform; }
.pp-follow.is-on { opacity: 1; scale: 1; }
.pp-follow-in { position: relative; aspect-ratio: 1600 / 1014; border-radius: 40px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,0.35); transform: translateZ(0); }
.pp-follow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .pp-follow { display: none; } }

/* ---------- lists with symbol markers ---------- */
.pp-list { list-style: none; display: flex; flex-direction: column; }
.pp-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-size: 13.5px; line-height: 1.7; }
.pp-list li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.pp-list li > .sym { width: 13px; height: 13px; justify-self: start; transform: translateY(1px); }

/* ---------- FAQ (details) ---------- */
html { overflow-anchor: none; } /* opening an answer never makes the browser scroll the page */
.pp-faq details { border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.pp-faq details:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.pp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary .sym { width: 18px; height: 18px; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.pp-faq details[open] summary .sym { transform: rotate(135deg); }
.pp-faq .pp-faq-a { overflow: hidden; }
.pp-faq .pp-faq-a p { font-size: 13.5px; line-height: 1.8; opacity: 0.72; max-width: 60ch; padding: 0 0 28px; }

/* ---------- full-screen pages (thank you, 404): no scroll, no footer ---------- */
html.pp-screen, html.pp-screen body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.pp-screen .pp { height: 100vh; height: 100dvh; }

@media (prefers-reduced-motion: reduce) { [data-pp-rise] { opacity: 1; transform: none; } }

/* Photos between words ([data-pp-pop] in pages.js). Each photo keeps its place in the line from the start,
   so the words never move: the picture grows open inside its slot, one after another. */
.pp-pop { display: inline-block; width: 1.3em; height: 0.8em; margin: 0 0.08em; vertical-align: -0.06em; border-radius: 0.16em; overflow: hidden; }
.pp-pop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-pop-ready .pp-pop img { clip-path: inset(38% 42% round 0.4em); transform: scale(1.35); opacity: 0;
  transition: clip-path 1.15s cubic-bezier(.65,0,.35,1), transform 1.4s cubic-bezier(.65,0,.35,1), opacity .5s ease;
  transition-delay: calc(var(--i, 0) * 0.14s); }
.pp-pop-ready.is-popped .pp-pop img { clip-path: inset(0% 0% round 0.16em); transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pp-pop-ready .pp-pop img { transition: none; } }

/* ---------- case study pop-up (pages.js) ---------- */
/* One rounded card with the same gap above and below; the card scrolls inside, with a progress pill on its right. */
html:has(dialog.pp-case[open]) { overflow: hidden; }
.pp-case { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #0a0a0a;
  background: rgba(10,10,10,0); overflow: hidden; transition: background .48s cubic-bezier(.22,1,.36,1); }
.pp-case::backdrop { background: transparent; }
.pp-case.is-in { background: rgba(10,10,10,0.66); }
.pp-case a { color: inherit; }
.pp-case-panel { position: absolute; top: 4vh; bottom: 4vh; left: 50%; width: min(1200px, calc(100% - 32px)); translate: -50% 0; background: #f5f3ee; border-radius: 28px; overflow: hidden;
  transform: translateY(70px); opacity: 0; transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .4s ease; }
.pp-case.is-in .pp-case-panel { transform: none; opacity: 1; }
.pp-case-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 64px); padding-right: calc(clamp(28px, 4vw, 64px) + 24px); scrollbar-width: none; }
.pp-case-scroll::-webkit-scrollbar { display: none; }
.pp-case-close { position: absolute; top: clamp(20px, 2.4vw, 36px); right: clamp(20px, 2.4vw, 36px); z-index: 2; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #0a0a0a; color: #f5f3ee; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.pp-case-close span { position: relative; width: 10px; height: 10px; }
.pp-case-close span::before, .pp-case-close span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.pp-case-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pp-case-prog { position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 6px; height: 168px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(10,10,10,0.25); overflow: hidden; z-index: 2; }
.pp-case-prog i { display: block; width: 100%; height: 100%; border-radius: 999px; background: #0a0a0a; transform-origin: center top; transform: scaleY(0); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .pp-case, .pp-case-panel { transition: none; } }
@media (max-width: 760px) {
  .pp-case-panel { top: 2vh; bottom: 2vh; width: calc(100% - 16px); border-radius: 20px; }
  .pp-case-prog { right: 8px; height: 120px; width: 4px; }
}

/* decrypting text (pages.js window.vvMx): each letter's slot eases to the width of its next letter while a symbol
   covers it; the symbol sits on the centre of the letter's own slot. Sizes per block with --mxg. */
.mx-w { white-space: nowrap; transition: margin-left .52s cubic-bezier(.45,0,.2,1); }
.mx-c { position: relative; display: inline-block; white-space: pre; transition: width .52s cubic-bezier(.45,0,.2,1); }
.mx-fit .mx-c { transition: none; }
.mx-o { display: inline-block; transition: opacity .38s cubic-bezier(.45,0,.2,1), transform .38s cubic-bezier(.45,0,.2,1); }
.mx-g { position: absolute; left: 50%; top: 50%; font-size: var(--mxg, 1.2em); line-height: 1; font-weight: 400; font-style: normal; letter-spacing: 0;
  font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', var(--sans), sans-serif; color: inherit; pointer-events: none;
  opacity: 0; transform: translate(-50%, -52%) scale(.5) rotate(-30deg);
  transition: opacity .38s cubic-bezier(.45,0,.2,1), transform .46s cubic-bezier(.22,1,.36,1); }
.mx-c.is-new .mx-o, .mx-c.is-g .mx-o { opacity: 0; transform: scale(.6); }
.mx-c.is-g .mx-g { opacity: 1; transform: translate(-50%, -52%) scale(1) rotate(0deg); }
.mx-c.is-g.is-out .mx-g { opacity: 0; transform: translate(-50%, -52%) scale(.4) rotate(30deg); }
@media (prefers-reduced-motion: reduce) { .mx-w, .mx-c, .mx-o, .mx-g { transition: none; } }
