/* Apex effects. Every colour comes from the palette (theme.json or a style
   variation in /styles), so switching variation recolours the whole site. */
:root {
	--apex-bg: var(--wp--preset--color--void);
	--apex-surface: var(--wp--preset--color--ink);
	--apex-text: var(--wp--preset--color--light);
	--apex-muted: var(--wp--preset--color--haze);
	--apex-accent: var(--wp--preset--color--flare);
	--apex-accent-2: var(--wp--preset--color--amber);
	--apex-on-accent: var(--wp--preset--color--cobalt);
	--apex-tile: linear-gradient(160deg, var(--wp--custom--tile--from), var(--wp--custom--tile--to));
	--apex-hero: var(--wp--custom--hero);
	--apex-heat: linear-gradient(100deg, var(--apex-accent), var(--apex-accent-2));
	--apex-line: color-mix(in srgb, var(--apex-text) 12%, transparent);
	/* Older names still used below */
	--apex-flare: var(--apex-accent);
	--apex-amber: var(--apex-accent-2);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { position: relative; overflow-x: hidden; }
h1, h2, h3, .has-display-font-family { font-stretch: 125%; }

/* Film grain over everything */
body::after {
	content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress bar (width set by motion.js) */
.apex-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 101; background: var(--apex-heat); }

/* Header */
.apex-header { padding-left: var(--wp--style--root--padding-left) !important; padding-right: var(--wp--style--root--padding-right) !important; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%);
	background: color-mix(in srgb, var(--wp--preset--color--void) 70%, transparent); border-bottom: 1px solid var(--apex-line); }
.apex-logo { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-stretch: 125%; }
.apex-logo a { color: inherit; text-decoration: none; }
.apex-header .wp-block-navigation a { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--wp--preset--color--light); }
.apex-header .wp-block-navigation a:hover { color: var(--apex-flare); }
.apex-header-cta .wp-block-button__link { padding: .6rem 1.2rem; }

/* Gradient text */
.is-style-gradient, .apex-grad {
	background: linear-gradient(100deg, var(--apex-accent), var(--apex-accent-2), var(--apex-accent)); background-size: 200% auto;
	-webkit-background-clip: text; background-clip: text; color: transparent !important;
	animation: apex-shine 5s linear infinite; padding-right: .08em;
}
@keyframes apex-shine { to { background-position: 200% center; } }

/* Glass */
.is-style-glass {
	background: linear-gradient(160deg, color-mix(in srgb, var(--apex-text) 6%, transparent), color-mix(in srgb, var(--apex-text) 2%, transparent));
	border: 1px solid var(--apex-line); border-radius: 18px; backdrop-filter: blur(18px); padding: 2rem;
	transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s;
}
.is-style-glass:hover { border-color: color-mix(in srgb, var(--apex-accent) 45%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--apex-accent) 45%, transparent); }

/* Buttons */
.is-style-glow .wp-block-button__link { box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--apex-accent) 90%, transparent); transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.is-style-glow .wp-block-button__link:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--apex-accent) 18%, transparent), 0 20px 60px -10px color-mix(in srgb, var(--apex-accent) 100%, transparent); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--light); border: 1px solid color-mix(in srgb, var(--apex-text) 30%, transparent); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--apex-flare); color: var(--apex-flare); }

/* Eyebrows, tags */
.apex-eyebrow, .apex-tag, .apex-pkg-name, .apex-cal-month { letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.apex-live { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--apex-flare); margin-right: .6em; box-shadow: 0 0 0 0 color-mix(in srgb, var(--apex-accent) 70%, transparent); animation: apex-pulse 1.8s infinite; }
@keyframes apex-pulse { 70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--apex-accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--apex-accent) 0%, transparent); } }

/* Hero */
.apex-hero { overflow: hidden; align-items: flex-end !important; padding-bottom: 10vh !important; }
.apex-hero h1 { font-size: clamp(2.4rem, 10.5vw, 10.5rem) !important; margin-block: .2em; }
.apex-hero .apex-lede { max-width: 36ch; margin-left: 0 !important; }
.apex-hero .wp-block-cover__inner-container > .wp-block-group > * { margin-left: 0 !important; }
.apex-hero::before { /* speed lines; hidden once a video/image is set */
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
	background: repeating-linear-gradient(100deg, transparent 0 60px, color-mix(in srgb, var(--apex-accent) 10%, transparent) 60px 62px, transparent 62px 140px, color-mix(in srgb, var(--apex-accent-2) 6%, transparent) 140px 141px);
	background-size: 400% 100%; animation: apex-speed 2.2s linear infinite;
	mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.apex-hero:has(.wp-block-cover__video-background, .wp-block-cover__image-background)::before { display: none; }
@keyframes apex-speed { to { background-position: -400% 0; } }
.apex-split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-right: .06em; }
.apex-split .w > span { display: inline-block; transform: translateY(110%) skewY(6deg); transition: transform 1s cubic-bezier(.2,.9,.1,1); }
.apex-split.is-in .w > span { transform: none; }

/* Marquee */
.apex-marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--apex-line); padding-block: 1.25rem;
	background: repeating-conic-gradient(color-mix(in srgb, var(--apex-text) 4%, transparent) 0 25%, transparent 0 50%) 0 0 / 24px 24px; }
.apex-marquee p { display: inline-block; margin: 0; font-style: italic; font-weight: 900; text-transform: uppercase; animation: apex-scroll 40s linear infinite;
	-webkit-text-stroke: 1px var(--wp--preset--color--haze); color: transparent; }
.apex-marquee:hover p { animation-play-state: paused; }
@keyframes apex-scroll { to { transform: translateX(-50%); } }

/* Calendar */
.apex-cal { margin-top: 3rem; border-top: 1px solid var(--apex-line); }
.apex-cal-row { gap: 1rem 2rem !important; padding: 1.25rem 0; border-bottom: 1px solid var(--apex-line); position: relative; transition: padding .3s, background .3s; }
.apex-cal-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--apex-heat); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.apex-cal-row:hover { padding-left: 1.25rem; background: color-mix(in srgb, var(--apex-text) 2%, transparent); }
.apex-cal-row:hover::before { width: 4px; }
.apex-cal-row > * { margin: 0 !important; }
.apex-cal-date { gap: 0 !important; min-width: 5.5rem; }
.apex-cal-date p { margin: 0; }
.apex-cal-day { font-weight: 900; font-style: italic; }
.apex-cal-info { flex: 1 1 260px; gap: .2rem !important; }
.apex-cal-info h3, .apex-cal-info p { margin: 0; }
.apex-pill { padding: .35rem .8rem; border-radius: 99px; border: 1px solid; font-weight: 600; white-space: nowrap; }
.apex-pill--open { color: var(--apex-text); border-color: color-mix(in srgb, var(--apex-text) 35%, transparent); }
.apex-pill--limited { color: var(--apex-on-accent); background: var(--apex-accent-2); border-color: var(--apex-accent-2); }
.apex-pill--booked { color: var(--wp--preset--color--haze); border-color: var(--apex-line); }
.apex-cal-row:has(.apex-pill--booked) { opacity: .55; }
.apex-book-weekend .wp-block-button__link { padding: .7rem 1.2rem; }
.apex-waitlist { min-width: 10rem; }

/* Covers used as media cards */
.apex-r-16x9 { aspect-ratio: 16/9; min-height: 0 !important; }
.apex-r-9x16 { aspect-ratio: 9/16; min-height: 0 !important; }
.apex-r-4x5 { aspect-ratio: 4/5; min-height: 0 !important; }
.apex-r-1x1 { aspect-ratio: 1/1; min-height: 0 !important; }
.apex-work, .apex-reel, .apex-portrait, .apex-other { border-radius: 16px; overflow: hidden; align-items: flex-end !important; border: 1px solid var(--apex-line); }
.apex-work .wp-block-cover__inner-container, .apex-reel .wp-block-cover__inner-container, .apex-other .wp-block-cover__inner-container { width: 100%; }
.apex-work h3, .apex-reel h3, .apex-other h3 { margin: .2rem 0; }
.apex-tag { margin: 0; }
.apex-work::after, .apex-reel::after, .apex-other::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,5,15,.7)); pointer-events: none; }
.apex-work .wp-block-cover__inner-container, .apex-reel .wp-block-cover__inner-container, .apex-other .wp-block-cover__inner-container { z-index: 2; }
.apex-work img, .apex-work video, .apex-reel video, .apex-reel img, .apex-other img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.apex-work:hover img, .apex-work:hover video, .apex-reel:hover video, .apex-reel:hover img, .apex-other:hover img { transform: scale(1.06); }
.apex-play { display: inline-block; margin: .5rem 0 0; padding: .4rem .9rem; border-radius: 99px; background: color-mix(in srgb, var(--apex-text) 12%, transparent); backdrop-filter: blur(8px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.apex-work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.apex-work-grid > * { margin: 0 !important; }
.apex-work--feature { grid-column: span 4; aspect-ratio: 21/9; }
.apex-work-grid > :not(.apex-work--feature) { grid-column: span 2; }
@media (min-width: 1000px) { .apex-work-grid > :nth-child(n+2) { grid-column: span 1; aspect-ratio: 4/5; } }

/* Packages */
.apex-pkgs { margin-top: 3rem; gap: 1.25rem !important; align-items: stretch; }
.apex-pkg { display: flex; flex-direction: column; }
.apex-pkg .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.apex-pkg-price { margin: .2rem 0 !important; }
.apex-pkg--hot { border-color: color-mix(in srgb, var(--apex-accent) 60%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--apex-accent) 16%, transparent), color-mix(in srgb, var(--apex-text) 2%, transparent)); position: relative; }
.apex-pkg--hot::before { content: "Most booked"; position: absolute; top: -.8rem; right: 1.5rem; padding: .25rem .7rem; border-radius: 99px; background: var(--apex-heat); color: var(--apex-on-accent); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.apex-ticks { list-style: none; padding: 0; }
.apex-ticks li { padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px dashed var(--apex-line); position: relative; }
.apex-ticks li::before { content: "▸"; position: absolute; left: 0; color: var(--apex-flare); }

/* Story */
.apex-story { gap: 4rem !important; align-items: center; }

/* BTS reels: horizontal drag strip */
.apex-reels { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 3rem; padding-bottom: 1rem; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--apex-flare) transparent; }
.apex-reels.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.apex-reels > * { flex: 0 0 clamp(200px, 22vw, 280px); margin: 0 !important; scroll-snap-align: start; }

/* Other work */
.apex-others { margin-top: 3rem; gap: 1.25rem !important; }

/* Booking */
.apex-book { gap: 4rem !important; }
.apex-step { gap: 1rem !important; margin-block: 1.25rem; }
.apex-step p, .apex-step h3 { margin: 0; }
.apex-step-n { font-weight: 900; font-style: italic; min-width: 2.5rem; }
.apex-form { display: grid; gap: 1rem; }
.apex-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.apex-form label { display: grid; gap: .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--haze); font-weight: 600; }
.apex-form input[type=text], .apex-form input[type=email], .apex-form input[type=tel], .apex-form textarea {
	font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--wp--preset--color--light);
	background: color-mix(in srgb, var(--apex-text) 5%, var(--apex-bg)); border: 1px solid var(--apex-line); border-radius: 8px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.apex-form input:focus, .apex-form textarea:focus { outline: none; border-color: var(--apex-flare); box-shadow: 0 0 0 4px color-mix(in srgb, var(--apex-accent) 18%, transparent); }
.apex-form input.is-flash { animation: apex-flash 1.2s; }
@keyframes apex-flash { 0%, 40% { border-color: var(--apex-amber); box-shadow: 0 0 0 6px color-mix(in srgb, var(--apex-accent-2) 25%, transparent); } }
.apex-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.apex-chips legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--haze); font-weight: 600; margin-bottom: .4rem; }
.apex-chips label { display: inline-block; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.apex-chips input { position: absolute; opacity: 0; }
.apex-chips span { display: inline-block; padding: .55rem 1rem; border-radius: 99px; border: 1px solid var(--apex-line); color: var(--wp--preset--color--light); cursor: pointer; transition: all .2s; }
.apex-chips input:checked + span { background: var(--apex-flare); border-color: var(--apex-flare); }
.apex-chips input:focus-visible + span { outline: 2px solid var(--apex-amber); outline-offset: 2px; }
.apex-form button { justify-self: start; border: 0; cursor: pointer; }
.apex-hp { position: absolute !important; left: -9999px; }
.apex-booked { padding: 2rem; border-radius: 12px; border: 1px solid var(--apex-accent); color: var(--apex-text); }

/* Footer */
.apex-footer { border-top: 1px solid var(--apex-line); overflow: hidden; }
.apex-footer-big { font-size: clamp(2.5rem, 9vw, 9rem); line-height: .9; font-weight: 900; font-style: italic; font-stretch: 125%; margin: 0; -webkit-text-stroke: 1px var(--wp--preset--color--haze); color: transparent; }
.apex-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; transition: transform .3s, opacity .3s; }
.apex-fab.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
.apex-fab .wp-block-button__link { box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--apex-accent) 90%, transparent); }

/* Scroll reveal */
.apex-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1); }
.apex-reveal.is-in { opacity: 1; transform: none; }
.no-js .apex-reveal, .editor-styles-wrapper .apex-reveal, .editor-styles-wrapper .apex-split .w > span { opacity: 1; transform: none; }

/* 404 */
.apex-glitch { animation: apex-shine 5s linear infinite, apex-jitter 2.5s steps(1) infinite; }
@keyframes apex-jitter { 0%,92%,100% { transform: none; } 93% { transform: translate(-4px, 2px) skewX(8deg); } 96% { transform: translate(3px,-2px); } }

@media (max-width: 781px) {
	.apex-form__row { grid-template-columns: 1fr; }
	.apex-header .wp-block-buttons { display: none; }
	.apex-work-grid { grid-template-columns: 1fr; }
	.apex-work-grid > * { grid-column: auto !important; }
	.apex-work--feature { aspect-ratio: 16/9; }
	.apex-cal-row .wp-block-buttons { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.apex-reveal, .apex-split .w > span { opacity: 1; transform: none; }
}

/* Card + section sizing tweaks */
.wp-block-cover.apex-work .wp-block-cover__inner-container > *,
.wp-block-cover.apex-reel .wp-block-cover__inner-container > *,
.wp-block-cover.apex-other .wp-block-cover__inner-container > *,
.wp-block-cover.apex-portrait .wp-block-cover__inner-container > * { margin-left: 0 !important; max-width: none; }
.apex-work:not(.apex-work--feature) h3, .apex-other h3, .apex-reel h3 { font-size: clamp(1.1rem, 1.5vw, 1.45rem) !important; overflow-wrap: normal; word-break: normal; hyphens: none; }
.apex-work--feature h3 { font-size: clamp(1.8rem, 4vw, 3.5rem) !important; }
.apex-book h2 { font-size: clamp(3.2rem, 7.5vw, 8rem) !important; }
.apex-form-wrap { align-self: flex-start; }
.apex-footer .wp-block-site-title a { color: var(--wp--preset--color--light); text-decoration: none; font-weight: 700; }

/* ---------- v0.3: nav, inner pages, booking wizard, business card ---------- */
.apex-header .wp-block-navigation { gap: 1.4rem; }
@media (min-width: 600px) {
	.apex-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item:last-child { display: none; }
}
@media (max-width: 1100px) and (min-width: 600px) {
	.apex-header .wp-block-navigation { gap: .9rem; font-size: .75rem !important; }
	.apex-logo { font-size: 1.1rem !important; }
}
.wp-block-navigation__responsive-container.is-menu-open a { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 900; font-size: 2rem; text-transform: uppercase; }

/* Plain links styled as buttons (from shortcodes) */
a.wp-element-button, button.wp-element-button { display: inline-block; text-decoration: none; cursor: pointer; }
.apex-glow { box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--apex-accent) 90%, transparent); }
.apex-ghost { background: transparent !important; color: var(--wp--preset--color--light) !important; border: 1px solid color-mix(in srgb, var(--apex-text) 30%, transparent) !important; }
.apex-ghost:hover { border-color: var(--apex-flare) !important; color: var(--apex-flare) !important; }
.apex-more { margin-top: 2rem; }
.apex-small { font-size: .85rem; color: var(--wp--preset--color--haze); }

/* Calendar rows rendered by [apex_calendar] */
.apex-cal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.apex-cal-row p, .apex-cal-row h3 { margin: 0; }
.apex-cal-info p { color: var(--wp--preset--color--haze); font-size: .9rem; }
.apex-cal-day { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); font-stretch: 125%; }
.apex-cal-month { color: var(--apex-flare); font-size: .8rem; }
.apex-cal-track { font-size: var(--wp--preset--font-size--large); }
.apex-cal-book { padding: .7rem 1.2rem !important; }
.apex-pill { font-size: .8rem; }
.apex-waitlist { color: var(--wp--preset--color--haze); font-size: .9rem; min-width: 10rem; text-align: right; }

/* Packages rendered by [apex_packages] */
.apex-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 3rem; gap: 1.25rem; }
.apex-pkg h3 { font-size: var(--wp--preset--font-size--x-large); }
.apex-pkg-blurb { color: var(--wp--preset--color--haze); }
.apex-pkg > a.wp-element-button { align-self: flex-start; margin-top: .5rem; }

/* Inner page hero */
.apex-page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--apex-line); }
.apex-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 85% 0%, color-mix(in srgb, var(--apex-accent) 22%, transparent), transparent 60%); }
.apex-page-hero h1 { font-size: clamp(2.6rem, 8vw, 8rem) !important; margin-block: .15em; max-width: 14ch; }
.apex-page-hero > * { margin-left: 0 !important; }
.apex-page-hero .apex-lede { max-width: 40ch; }

/* Stats */
.apex-stats { border-block: 1px solid var(--apex-line); padding-block: 2rem; }
.apex-stats h3 { margin: 0; }

/* FAQ */
.apex-faq { border-bottom: 1px solid var(--apex-line); padding: 1.25rem 0; max-width: 820px; }
.apex-faq summary { cursor: pointer; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-stretch: 125%; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.apex-faq summary::after { content: "+"; color: var(--apex-flare); transition: transform .3s; }
.apex-faq[open] summary::after { transform: rotate(45deg); }

/* CTA band */
.apex-cta { text-align: center; }

/* Booking wizard */
.apex-wizard { gap: 2.5rem; }
.apex-step-block { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.apex-step-block legend { font-family: var(--wp--preset--font-family--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-stretch: 125%; font-size: var(--wp--preset--font-size--large); margin-bottom: 1rem; color: var(--wp--preset--color--light); letter-spacing: 0; }
.apex-step-block legend span { color: var(--apex-flare); margin-right: .5rem; }
.apex-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.apex-card-opt { position: relative; display: block !important; text-transform: none !important; letter-spacing: 0 !important; }
.apex-card-opt input { position: absolute; opacity: 0; }
.apex-card-opt > span { display: grid; gap: .25rem; height: 100%; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--apex-line); background: color-mix(in srgb, var(--apex-text) 3%, transparent); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.apex-card-opt > span:hover { border-color: color-mix(in srgb, var(--apex-text) 30%, transparent); transform: translateY(-2px); }
.apex-card-opt small { color: var(--apex-amber); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.apex-card-opt strong { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 900; font-size: 1.15rem; text-transform: uppercase; font-stretch: 115%; color: var(--wp--preset--color--light); }
.apex-card-opt em { font-style: normal; color: var(--wp--preset--color--haze); font-size: .85rem; }
.apex-card-opt input:checked + span { border-color: var(--apex-flare); background: linear-gradient(160deg, color-mix(in srgb, var(--apex-accent) 22%, transparent), color-mix(in srgb, var(--apex-accent) 5%, transparent)); box-shadow: 0 0 0 1px var(--apex-flare); }
.apex-card-opt input:focus-visible + span { outline: 2px solid var(--apex-amber); outline-offset: 2px; }
.apex-card-opt input:checked + span::after { content: "✓"; position: absolute; top: .7rem; right: .9rem; color: var(--apex-flare); font-weight: 900; }
.apex-other-date { display: none !important; }
.apex-wizard:has(.apex-card-other input:checked) .apex-other-date { display: grid !important; }
.apex-wizard > button { font-size: 1.05rem; padding: 1.1rem 2.2rem; }
.apex-confirm { text-align: center; padding: 3rem 2rem; }
.apex-confirm h3 { font-size: var(--wp--preset--font-size--x-large); }
.apex-sumup { font-size: 1.05rem; padding: 1.1rem 2rem !important; margin-block: 1rem; box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--apex-accent) 90%, transparent); }

/* Contact + business card */
.apex-contact { gap: 2rem !important; align-items: flex-start; }
.apex-bizcard__card { border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--apex-accent) 45%, transparent), 0 0 0 1px var(--apex-line); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.apex-bizcard__card svg { display: block; width: 100%; height: auto; }
.apex-bizcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.apex-card-opt > span { box-sizing: border-box; }
.apex-faq { margin-left: 0 !important; }
.apex-chips input:checked + span { color: var(--apex-on-accent); font-weight: 700; }


/* ---------- v0.7: palette-driven surfaces ---------- */
.apex-header { background: color-mix(in srgb, var(--apex-bg) 82%, transparent); }
.is-style-glass { background: linear-gradient(160deg, color-mix(in srgb, var(--apex-surface) 85%, transparent), color-mix(in srgb, var(--apex-bg) 60%, transparent)); }
.apex-pkg--hot { background: linear-gradient(160deg, color-mix(in srgb, var(--apex-accent) 18%, var(--apex-surface)), var(--apex-surface)); border-color: var(--apex-accent); }
.apex-chips input:checked + span { background: var(--apex-accent); border-color: var(--apex-accent); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--apex-bg) !important; color: var(--apex-text) !important; }
.apex-footer .wp-block-social-links .wp-social-link { color: var(--apex-text) !important; }
.apex-footer .wp-block-social-links svg { fill: currentColor; }
.apex-marquee p { -webkit-text-stroke-color: color-mix(in srgb, var(--apex-accent-2) 70%, var(--apex-muted)); }

/* Media tiles and the hero: palette placeholder until real footage is added,
   then the same colours become a tint over the photo or video. */
.apex-hero, .apex-work, .apex-reel, .apex-other, .apex-portrait { color: #fff; }
.apex-hero h1, .apex-work h3, .apex-reel h3, .apex-other h3 { color: #fff; }
.apex-hero .has-light-color, .apex-work .has-light-color { color: #fff !important; }
.apex-work .has-haze-color, .apex-reel .has-haze-color, .apex-other .has-haze-color, .apex-portrait .has-haze-color { color: rgba(255,255,255,.75) !important; }
.apex-work .has-amber-color, .apex-reel .has-amber-color, .apex-other .has-amber-color, .apex-hero .has-amber-color { color: var(--wp--custom--tile--label) !important; }
.apex-hero .is-style-outline .wp-block-button__link { color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
.apex-hero .apex-grad { background-image: linear-gradient(100deg, var(--wp--custom--tile--label), var(--apex-accent-2), var(--wp--custom--tile--label)); }
.apex-hero .wp-block-cover__background { background: var(--apex-hero) !important; }
.apex-work .wp-block-cover__background, .apex-reel .wp-block-cover__background, .apex-other .wp-block-cover__background, .apex-portrait .wp-block-cover__background { background: var(--apex-tile) !important; }
.wp-block-cover:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background)) > .wp-block-cover__background { opacity: 1 !important; }
.apex-play { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- v0.8: Apex Studios mark + cursor ---------- */
.apex-logo a { display: inline-flex; align-items: center; gap: .55em; }
.apex-mark { width: 1.35em; height: 1.35em; flex: none; color: var(--apex-text); overflow: visible; }
.apex-mark__line { stroke-dasharray: 90; stroke-dashoffset: 90; animation: apex-draw 1.4s .3s cubic-bezier(.6,0,.2,1) forwards; }
.apex-logo a:hover .apex-mark__line { animation: apex-lap 1.1s cubic-bezier(.6,0,.2,1); }
@keyframes apex-draw { to { stroke-dashoffset: 0; } }
@keyframes apex-lap { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }

html.apex-cursor-on, html.apex-cursor-on body, html.apex-cursor-on a, html.apex-cursor-on button, html.apex-cursor-on label { cursor: none; }
html.apex-cursor-on input, html.apex-cursor-on textarea, html.apex-cursor-on select { cursor: text; }
.apex-cursor, .apex-cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
html.apex-cursor-on .apex-cursor, html.apex-cursor-on .apex-cursor-ring { opacity: 1; }
html.apex-cursor-on.apex-cursor-away .apex-cursor, html.apex-cursor-on.apex-cursor-away .apex-cursor-ring { opacity: 0; }
.apex-cursor { width: 26px; height: 26px; margin: -6px 0 0 -13px; }
.apex-cursor__mark { width: 100%; height: 100%; color: var(--apex-text); filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.apex-cursor__mark .apex-mark__line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.apex-cursor-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid color-mix(in srgb, var(--apex-accent) 70%, transparent); border-radius: 50%; transition: opacity .3s, width .3s, height .3s, margin .3s, background .3s, border-color .3s; }
html.apex-cursor-hover .apex-cursor__mark { transform: scale(1.35) rotate(-8deg); }
html.apex-cursor-hover .apex-cursor-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: color-mix(in srgb, var(--apex-accent) 14%, transparent); border-color: var(--apex-accent); }
html.apex-cursor-down .apex-cursor__mark { transform: scale(.85); }
html.apex-cursor-text .apex-cursor, html.apex-cursor-text .apex-cursor-ring { opacity: 0 !important; }
.apex-cursor-spark { position: fixed; z-index: 9998; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--apex-accent); pointer-events: none; animation: apex-spark .6s ease-out forwards; }
@keyframes apex-spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .apex-mark__line { stroke-dashoffset: 0; } }
