/* Volare Media inner pages in the console's language, kept calmer than the landing page:
   content first, plain dark sections, one glass reveal on the opening photo, headings that wipe in.
   Loaded after styles.css and clean.css on every page with <body class="v2 v3">. */

/* ---------- one easing curve for everything: starts and stops with no speed and no sudden push ---------- */
:root { --ease: cubic-bezier(0.65, 0, 0.35, 1); }
@supports (animation-timing-function: linear(0, 1)) { :root { --ease: linear(0, 0.0003, 0.0022, 0.0071, 0.0161, 0.0298, 0.0488, 0.0733, 0.1035, 0.1392, 0.18, 0.2255, 0.2752, 0.3283, 0.384, 0.4416, 0.5, 0.5584, 0.616, 0.6717, 0.7248, 0.7745, 0.82, 0.8608, 0.8965, 0.9267, 0.9512, 0.9702, 0.9839, 0.9929, 0.9978, 0.9997, 1); } }

/* ---------- moving between pages: the new page wipes in on the slant ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.55s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0.2; } }
@keyframes vt-in { from { clip-path: polygon(0 0, 0 0, -28% 100%, 0 100%); } to { clip-path: polygon(0 0, 128% 0, 100% 100%, 0 100%); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- square corners: nothing rounded, nothing cut off ---------- */
.v3 { --radius: 0px; }

/* ---------- less going on: photos and footage stay out of the body of the page ---------- */
.v3 main > :not(:first-child).photo-band::before, .v3 main > :not(:first-child).photo-band::after,
.v3 main > :not(:first-child).video-band::after, .v3 .site-footer.photo-band::before, .v3 .site-footer.photo-band::after { display: none; }
.v3 main > :not(:first-child) > video.band-video { display: none; }

/* ---------- opening photo: full width, shown through the glass stage ---------- */
.v3 main > .hero:first-child { margin: 0; min-height: min(70svh, 44rem); }
.hero-stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.has-stage::before, .has-stage::after { display: none !important; }
.has-stage > video.band-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.has-stage { overflow: hidden; }
.cut-sweeps { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cut-sweep { position: absolute; top: -20%; bottom: -20%; left: 0; opacity: 0; will-change: transform, opacity; }
.cut-sweep--volt { width: 2px; background: var(--volt); box-shadow: 0 0 18px rgba(214, 255, 61, 0.5); }
.cut-sweep--mauve { width: clamp(70px, 12vw, 200px); margin-left: calc(clamp(70px, 12vw, 200px) / -2); background: rgba(201, 186, 244, 0.12); border-right: 1px solid rgba(201, 186, 244, 0.6); mix-blend-mode: screen; }
.has-stage > .wrap { position: relative; z-index: 1; }

/* ---------- type: headings wipe in line by line behind a mauve bar; everything else follows quietly ---------- */
.v3 .reveal { opacity: 1; transform: none; transition: none; }          /* the old fade-up is off */
/* Whatever is going to animate in is hidden by this stylesheet from the very first paint, and only glass.js
   un-hides it, by starting its animation and marking it data-in in the same moment. So nothing can show early.
   html.anim is set by the one-line script in <head> (not for visitors who asked for reduced motion). */
html.anim .v3 .reveal:not([data-in]),
html.anim .v3 main > :first-child > .wrap > :not([data-in]) { opacity: 0 !important; }
/* the opening photo starts dark and arrives through the glass, so the page's own copy of it never shows first */
html.anim:not(.no-glass) .v3 main > :first-child.photo-band::before,
html.anim:not(.no-glass) .v3 main > :first-child.photo-band::after,
html.anim:not(.no-glass) .v3 main > :first-child.video-band::after { display: none; }
html.anim:not(.no-glass) .v3 main > :first-child > video.band-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.v3 .ln { display: block; }
.v3 .ln-w { position: relative; display: inline-block; }
.v3 .ln-t { display: inline-block; }
.v3 .bar { position: absolute; top: 0.02em; bottom: 0.06em; left: -0.6em; width: 0.14em; background: var(--lilac); transform: skewX(-24deg); opacity: 0; pointer-events: none; }

/* ---------- buttons: volt with slanted ends; mauve wipes across on hover ---------- */
.v3 .btn:not(.btn--ghost) { --k: 0.95em; position: relative; isolation: isolate; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--bg);
  padding: 0.95em 1.9em 0.95em 2em; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; transform: none; }
.v3 .btn:not(.btn--ghost)::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(var(--k) 0, 100% 0, calc(100% - var(--k)) 100%, 0 100%);
  background: linear-gradient(105deg, var(--lilac) 0 46%, transparent 46.2%) 100% 0 / 300% 100% no-repeat, var(--volt); transition: background-position 0.7s var(--ease); }
.v3 .btn:not(.btn--ghost):hover { background: none; color: var(--bg); transform: none; }
.v3 .btn:not(.btn--ghost):hover::before { background-position: 0 0, 0 0; }
.v3 a, .v3 button { transition-timing-function: var(--ease); }

/* ---------- headings: plain cream with the mauve full stop, as on the console ---------- */
/* the older highlight boxes, underlines, coloured words and italics inside headings are gone */
.v3 :is(h1, h2, h3) :is(.sweep, .mark-line, .ink-volt, .ink-lilac) { color: inherit; background: none; box-shadow: none; padding: 0; white-space: normal; }
.v3 :is(h1, h2, h3) .sweep::before { display: none; }
.v3 :is(h1, h2, h3) .sweep .dot, .v3 :is(h1, h2, h3) .dot { color: var(--lilac); }
.v3 :is(h1, h2, h3) em, .v3 .footer-tag em { font-style: normal; font-weight: inherit; }

/* ---------- text links: the underlined word with an arrow is retired ---------- */
/* a link is now a word in the display face with the menu's slanted marker; on hover the word turns volt and the marker stretches */
.v3 .text-link { display: inline-flex; align-items: center; gap: 0.5em; border: 0; padding: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: 1.1rem; color: var(--cream); text-decoration: none; transition: color 0.45s var(--ease); }
.v3 .text-link::after { content: ""; width: 0.3em; height: 0.62em; background: var(--lilac); transform: skewX(-24deg); transform-origin: left; transition: transform 0.5s var(--ease), background-color 0.45s var(--ease); }
.v3 .text-link:hover { color: var(--volt); border: 0; }
.v3 .text-link:hover::after { background: var(--volt); transform: skewX(-24deg) scaleX(3.2); }

/* ---------- the last of the older styles ---------- */
/* outlined buttons become the same quiet link as .text-link: a word with the slanted marker */
.v3 .btn--ghost { display: inline-flex; align-items: center; gap: 0.5em; border: 0; padding: 0; background: none; box-shadow: none; transform: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; color: var(--cream); transition: color 0.45s var(--ease); }
.v3 .btn--ghost::after { content: ""; width: 0.3em; height: 0.62em; background: var(--lilac); transform: skewX(-24deg); transform-origin: left; transition: transform 0.5s var(--ease), background-color 0.45s var(--ease); }
.v3 .btn--ghost:hover { background: none; color: var(--volt); transform: none; }
.v3 .btn--ghost:hover::after { background: var(--volt); transform: skewX(-24deg) scaleX(3.2); }

/* the menu behaves like the console's: mauve and a slanted marker under the pointer, volt on the page you are on */
.v3 .v2-menu-links a { position: relative; letter-spacing: -0.035em; transition: color 0.45s var(--ease); }
.v3 .v2-menu-links a::before { content: ""; position: absolute; left: -0.55em; top: 50%; width: 0.3em; height: 0.62em; margin-top: -0.31em; background: var(--lilac);
  transform: skewX(-24deg) scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease), background-color 0.45s var(--ease); }
.v3 .v2-menu-links a:hover { color: var(--lilac); }
.v3 .v2-menu-links a:hover::before { transform: skewX(-24deg) scaleX(1); }
.v3 .v2-menu-links a[aria-current="page"] { color: var(--volt); }
.v3 .v2-menu-links a[aria-current="page"]::before { background: var(--volt); transform: skewX(-24deg) scaleX(1); }
.v3 .v2-menu-side a { transition: color 0.45s var(--ease); }
.v3 .v2-menu-side a:hover { color: var(--lilac); }
.v3 .v2-menu-side a[aria-current="page"] { color: var(--volt); }
.v3 .v2-menu.photo-band::before { filter: grayscale(1) contrast(1.08); }

/* partnership rows: the photo behind each row is black and white like every other photo on the site (the clients' own posts stay in colour) */
.v3 .pship::before { filter: grayscale(1) contrast(1.05); }
@media (max-width: 760px) { .v3 .v2-menu-links a::before { display: none; } }

/* ---------- phones: the menu is the landing page's menu ---------- */
/* just the big words, bottom left, over the picture; same size, spacing and position as on the landing page */
@media (max-width: 760px) {
  .v3 .v2-menu .wrap { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - 4.5rem); padding: 0 var(--gutter) 7.5rem; }
  .v3 .v2-menu-side { display: none; }
  .v3 .v2-menu-links a { font-size: clamp(2rem, 9.4vw, 2.8rem); line-height: 1.06; letter-spacing: -0.035em; }
}

/* a section that used to be its own page: a link to it stops below the header, not under it */
.v3 .merged, .v3 [id] { scroll-margin-top: 5.5rem; }
/* a folded-in page's own headline keeps a little air before its opening paragraph */
.v3 .merged h2 { margin-bottom: 1.5rem; max-width: 22ch; }
.v3 .merged .lede { max-width: 44rem; }
