/* ============================================================
   v2.css — the "flat" redesign. Loaded by header.php ONLY when the
   ui_v2 flag is on for the visitor (see ui_v2_state() in bootstrap.php);
   everything is scoped under html[data-ui="v2"] so v1 pages never see it.

   Tokens are namespaced --v2-*. PHASE 1 (below the tokens) restyles the
   site chrome only: scroll model, nav, footer, toast, floating UI and
   the .btn vocabulary. Page bodies are restyled page by page in later
   phases; until then they sit unchanged on the flat ground. Themes follow the site's existing switch: dark = pure black,
   data-theme="light" = graphite (the same dark language, one stop up).
   Accent is the existing --accent-info; there is no new status colour.
   ============================================================ */

html[data-ui="v2"] {
    --v2-bg: #000;
    --v2-band: #0c1a1f;
    --v2-surface: #10181c;
    --v2-line: rgba(255, 255, 255, 0.16);
    --v2-text: #fff;
    --v2-text-mid: rgba(255, 255, 255, 0.8);
    --v2-text-dim: rgba(255, 255, 255, 0.55);
    --v2-accent: var(--accent-info);
    --v2-accent-ink: #031a28;   /* text on an accent-filled pill */
    --v2-nav-h: 64px;
    --v2-max: 1200px;
    --v2-pad: clamp(20px, 4vw, 48px);
    --v2-radius: 4px;
    font-optical-sizing: auto;
}

html[data-ui="v2"][data-theme="light"] {
    --v2-bg: #12161a;
    --v2-band: #17313a;
    --v2-surface: #1a2227;
    --v2-line: rgba(255, 255, 255, 0.2);
    --v2-text-dim: rgba(255, 255, 255, 0.62);
}

/* Legacy text and surface tokens follow the v2 ones, so pages not yet restyled
   (and inline styles that use var(--text-dim) etc.) read correctly on the flat
   ground. :root in the selector outranks the light-theme token block. */
html[data-ui="v2"]:root {
    --text-main: var(--v2-text);
    --text-mid: var(--v2-text-mid);
    --text-dim: var(--v2-text-dim);
    --glass-border: var(--v2-line);
    --panel-bg: var(--v2-surface);
}

/* ============================================================
   PHASE 1: site chrome
   ============================================================ */

/* --- Ground and scroll model --------------------------------------------
   v1 is a 100dvh flex column whose <main> scrolls inside a pinned footer
   bar. v2 scrolls the document: sticky nav, footer at the end of the page.
   The page wrapper (main > .glass-content) keeps its width and padding but
   loses the frosted panel; floating UI that also uses .glass-content (mini
   player, modals) is styled separately below, so this is NOT a global
   .glass-content reset. */
html[data-ui="v2"] { background: var(--v2-bg); }
html[data-ui="v2"] body {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    background: var(--v2-bg);
    text-transform: none;
}
html[data-ui="v2"] body::before,
html[data-ui="v2"] body::after { display: none; }
html[data-ui="v2"] main {
    display: block;
    flex: 1 0 auto;
    padding: 0;
    overflow: visible;
}
html[data-ui="v2"] main > * { margin-top: 0; margin-bottom: 0; }
html[data-ui="v2"] main > .glass-content {
    margin-left: auto;
    margin-right: auto;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: auto;
    animation: none;
}

/* --- Nav ------------------------------------------------------------------ */
html[data-ui="v2"] header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: calc(var(--v2-nav-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--v2-pad) 0;
    background: var(--v2-bg);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: border-color 0.3s ease, background 0.5s ease;
}
html[data-ui="v2"] header.scrolled { border-bottom-color: var(--v2-line); }
html[data-ui="v2"] .admin-nav {
    height: 100%;
    max-width: 1360px;
    gap: clamp(20px, 2.6vw, 36px);
    font-size: 12px;
}
html[data-ui="v2"] .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--v2-text);
}
html[data-ui="v2"] .nav-brand:hover { text-shadow: none; }
html[data-ui="v2"] .nav-brand .nb-name { color: var(--v2-text); }
html[data-ui="v2"] .v2-tile {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: radial-gradient(120% 120% at 30% 15%, #2a8795, #134a52 55%, #04070a);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    font: 700 9px/1 'Inter', sans-serif;
    font-style: normal;
    letter-spacing: 0;
    text-transform: lowercase;
}
html[data-ui="v2"] .nav-links { gap: clamp(14px, 1.7vw, 24px); flex-wrap: nowrap; }
html[data-ui="v2"] .nav-links a {
    color: var(--v2-text-mid);
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 6px 0;
}
html[data-ui="v2"] .nav-links a:hover { color: var(--v2-text); letter-spacing: 0.02em; text-shadow: none; }
html[data-ui="v2"] .nav-links a[aria-current] { color: var(--v2-text); box-shadow: 0 1px 0 var(--v2-accent); }
/* the second group (login / logout) sits right, in sentence case with a circle-arrow */
html[data-ui="v2"] .nav-menu > .nav-links + .nav-links { margin-left: auto; }
html[data-ui="v2"] .nav-menu > .nav-links + .nav-links a {
    color: var(--v2-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
html[data-ui="v2"] .nav-menu > .nav-links + .nav-links a[onclick*="toggleLogin"]::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    vertical-align: -4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23fff'/%3E%3Cpath d='M8 12h8m-3.5-3.5L16 12l-3.5 3.5' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-ui="v2"] .v2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--v2-accent);
    color: var(--v2-accent-ink);
    font: 600 14px/1 'Inter', sans-serif;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-ui="v2"] .v2-cta:hover { background: color-mix(in srgb, var(--v2-accent) 70%, #fff); }
html[data-ui="v2"] .v2-cta:active { transform: scale(0.97); }
html[data-ui="v2"] .v2-cta svg { width: 16px; height: 16px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
html[data-ui="v2"] .v2-cta:hover svg { transform: translateX(3px); }

/* the global button skin (pill radius, inset highlight, sheen) must not show on the burger */
html[data-ui="v2"] .nav-burger { background: none; border: 0; border-radius: 0; box-shadow: none; }
html[data-ui="v2"] .nav-burger::after { display: none; }

/* the second group collapses first as the bar gets tight */
@media (max-width: 1100px) {
    html[data-ui="v2"] .nav-menu > .nav-links + .nav-links a[onclick*="toggleLogin"] { display: none; }
}
/* Burger menu (v1 switches at 768px; the v2 bar has more in it, so it switches at 1000px) */
@media (max-width: 1000px) {
    html[data-ui="v2"] .nav-burger { display: block; margin-left: auto; color: var(--v2-text); }
    html[data-ui="v2"] .nav-burger span { background: var(--v2-text); }
    html[data-ui="v2"] .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--v2-pad) 20px;
        background: var(--v2-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid var(--v2-line);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
        max-height: calc(100dvh - var(--v2-nav-h) - env(safe-area-inset-top));
        overflow-y: auto;
    }
    html[data-ui="v2"] .nav-menu.open { display: flex; animation: navReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
    html[data-ui="v2"] .nav-menu.closing { display: flex; animation: navConceal 0.28s ease both; pointer-events: none; }
    html[data-ui="v2"] .nav-menu .nav-links { flex-direction: column; gap: 0; margin-left: 0; }
    html[data-ui="v2"] .nav-menu > .nav-links + .nav-links { margin-left: 0; }
    html[data-ui="v2"] .nav-menu .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--v2-line); font-size: 15px; }
    html[data-ui="v2"] .nav-menu > .nav-links + .nav-links a[onclick*="toggleLogin"] { display: block; }
    html[data-ui="v2"] .nav-menu .nav-links:last-of-type a { border-bottom: 0; }
    html[data-ui="v2"] .nav-menu > .nav-links + .nav-links a { font-size: 15px; }
    html[data-ui="v2"] .v2-cta { margin-top: 16px; width: 100%; height: 46px; }
}

/* Signed-in users have three more links in the bar (manage content, settings,
   webmail), so they switch to the burger earlier. Same rules as the block above,
   scoped to header.has-tools; keep the two in sync. */
@media (max-width: 1400px) {
    html[data-ui="v2"] header.has-tools .nav-burger { display: block; margin-left: auto; color: var(--v2-text); }
    html[data-ui="v2"] header.has-tools .nav-burger span { background: var(--v2-text); }
    html[data-ui="v2"] header.has-tools .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--v2-pad) 20px;
        background: var(--v2-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid var(--v2-line);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
        max-height: calc(100dvh - var(--v2-nav-h) - env(safe-area-inset-top));
        overflow-y: auto;
    }
    html[data-ui="v2"] header.has-tools .nav-menu.open { display: flex; animation: navReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
    html[data-ui="v2"] header.has-tools .nav-menu.closing { display: flex; animation: navConceal 0.28s ease both; pointer-events: none; }
    html[data-ui="v2"] header.has-tools .nav-menu .nav-links { flex-direction: column; gap: 0; margin-left: 0; }
    html[data-ui="v2"] header.has-tools .nav-menu > .nav-links + .nav-links { margin-left: 0; }
    html[data-ui="v2"] header.has-tools .nav-menu .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--v2-line); font-size: 15px; }
    html[data-ui="v2"] header.has-tools .nav-menu > .nav-links + .nav-links a[onclick*="toggleLogin"] { display: block; }
    html[data-ui="v2"] header.has-tools .nav-menu .nav-links:last-of-type a { border-bottom: 0; }
    html[data-ui="v2"] header.has-tools .nav-menu > .nav-links + .nav-links a { font-size: 15px; }
    html[data-ui="v2"] header.has-tools .v2-cta { margin-top: 16px; width: 100%; height: 46px; }
}

/* --- Buttons: the .btn vocabulary becomes pills ----------------------------
   Primary (.btn) is accent-filled, .btn-dim is the outline pill, and the
   status variants keep their tinted outlines (colours from the accent tokens). */
html[data-ui="v2"] .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 26px;
    background: var(--v2-accent);
    border: 1.5px solid var(--v2-accent);
    border-radius: 999px;
    color: var(--v2-accent-ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    text-decoration: none;
    width: auto;
    white-space: nowrap;
}
html[data-ui="v2"] .btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
html[data-ui="v2"] .btn:hover svg { transform: translateX(3px); }
html[data-ui="v2"] .btn:hover,
html[data-ui="v2"] button.btn:hover {
    background: color-mix(in srgb, var(--v2-accent) 70%, #fff);
    border-color: color-mix(in srgb, var(--v2-accent) 70%, #fff);
    color: var(--v2-accent-ink);
    transform: none;
    box-shadow: none;
}
html[data-ui="v2"] .btn::after { display: none; }
html[data-ui="v2"] .btn-sm { height: 34px; padding: 0 16px; font-size: 12px; text-transform: none; letter-spacing: 0; }
html[data-ui="v2"] .btn-dim { background: transparent; border-color: rgba(255, 255, 255, 0.85); color: var(--v2-text); }
html[data-ui="v2"] .btn-dim:hover { background: var(--v2-text); border-color: var(--v2-text); color: var(--v2-bg); }
html[data-ui="v2"] .btn-ok   { background: transparent; border-color: color-mix(in srgb, var(--accent-ok) 55%, transparent);   color: var(--accent-ok); }
html[data-ui="v2"] .btn-err  { background: transparent; border-color: color-mix(in srgb, var(--accent-err) 55%, transparent);  color: var(--accent-err); }
html[data-ui="v2"] .btn-warn { background: transparent; border-color: color-mix(in srgb, var(--accent-warn) 55%, transparent); color: var(--accent-warn); }
html[data-ui="v2"] .btn-ok:hover   { background: color-mix(in srgb, var(--accent-ok) 14%, transparent);   color: var(--accent-ok);   border-color: var(--accent-ok); }
html[data-ui="v2"] .btn-err:hover  { background: color-mix(in srgb, var(--accent-err) 14%, transparent);  color: var(--accent-err);  border-color: var(--accent-err); }
html[data-ui="v2"] .btn-warn:hover { background: color-mix(in srgb, var(--accent-warn) 14%, transparent); color: var(--accent-warn); border-color: var(--accent-warn); }

/* --- Footer: link row, legal row, meta ------------------------------------ */
html[data-ui="v2"] footer { view-transition-name: none; }   /* it ends the page now; it must not float during a transition */
html[data-ui="v2"] .v2-footer {
    display: block;
    width: 100%;
    margin-top: clamp(40px, 6vw, 80px);
    padding: clamp(56px, 7vw, 96px) 0 40px;
    background: var(--v2-bg);
    border-top: 1px solid var(--v2-line);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: left;
    font-size: 12.5px;
    color: var(--v2-text-mid);
}
html[data-ui="v2"] .v2-wrap { max-width: var(--v2-max); margin: 0 auto; padding: 0 var(--v2-pad); }
html[data-ui="v2"] .v2-flinks { display: flex; flex-wrap: wrap; gap: 16px 0; margin-bottom: 56px; }
html[data-ui="v2"] .v2-flinks a {
    padding: 6px 28px 40px 10px;
    border-left: 1px solid var(--v2-line);
    color: var(--v2-text);
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
html[data-ui="v2"] .v2-flinks a:hover { color: var(--v2-accent); border-left-color: var(--v2-accent); }
html[data-ui="v2"] .v2-legal { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-bottom: 36px; font-size: 13px; }
html[data-ui="v2"] .v2-legal a { display: inline-flex; align-items: center; gap: 10px; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-legal a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--v2-text); }
html[data-ui="v2"] .v2-legal a:hover { color: var(--v2-accent); }
html[data-ui="v2"] .v2-fmeta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px 30px; padding-bottom: 32px; border-bottom: 1px solid var(--v2-line); line-height: 1.7; }
html[data-ui="v2"] .v2-fmeta b { color: var(--v2-text); font-weight: 600; }
html[data-ui="v2"] .v2-fmeta-r { text-align: right; }
html[data-ui="v2"] .v2-fcopy { margin-top: 22px; font-size: 11.5px; color: var(--v2-text-dim); }
@media (max-width: 860px) {
    html[data-ui="v2"] .v2-flinks a { padding-bottom: 22px; }
    html[data-ui="v2"] .v2-fmeta-r { text-align: left; }
}

/* --- Notification toast (replaces the footer-bar flash) --------------------- */
html[data-ui="v2"] .v2-toast {
    position: fixed;
    top: calc(var(--v2-nav-h) + env(safe-area-inset-top) + 16px);
    left: 50%;
    z-index: 960;
    max-width: calc(100vw - 32px);
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    color: var(--v2-text);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: translate(-50%, -12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-ui="v2"] .v2-toast.show { opacity: 1; transform: translate(-50%, 0); }
html[data-ui="v2"] .v2-toast[data-type="ok"]  { color: var(--accent-ok);  border-color: color-mix(in srgb, var(--accent-ok) 50%, transparent); }
html[data-ui="v2"] .v2-toast[data-type="err"] { color: var(--accent-err); border-color: color-mix(in srgb, var(--accent-err) 50%, transparent); }

/* --- Floating UI: mini player, cookie note, modals ----------------------- */
html[data-ui="v2"] #mp-card,
html[data-ui="v2"] #mp-fab {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
html[data-ui="v2"] #mp-card { border-radius: 12px !important; }   /* the inline style sets 16px */
html[data-ui="v2"] #cookie-note {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html[data-ui="v2"] .modal-overlay { background: rgba(0, 0, 0, 0.72); }
html[data-ui="v2"] .modal-box.glass-content {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: 12px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ============================================================
   PHASE 2: homepage (includes/views/portfolio_home_v2.php)
   Shared page primitives are namespaced .v2-* so later phases reuse them.
   ============================================================ */

/* A page that sets $page_flush runs edge to edge; its own sections set their width */
html[data-ui="v2"] main > .glass-content.v2-flush { max-width: none; width: 100%; padding: 0; }

html[data-ui="v2"] .v2-wrap { max-width: var(--v2-max); margin: 0 auto; padding-left: var(--v2-pad); padding-right: var(--v2-pad); }
html[data-ui="v2"] .v2-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v2-text-dim);
}
html[data-ui="v2"] a.v2-row,
html[data-ui="v2"] a.v2-card,
html[data-ui="v2"] a.v2-ticker { text-decoration: none; }
html[data-ui="v2"] .v2-pad { padding: clamp(72px, 11vw, 150px) 0; }
html[data-ui="v2"] .v2-pad-flush { padding-top: 0; padding-bottom: clamp(72px, 11vw, 150px); }
html[data-ui="v2"] .v2-home section { position: relative; }
html[data-ui="v2"] .v2-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
html[data-ui="v2"] .v2-arrow {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid var(--v2-line);
    display: grid;
    place-items: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-ui="v2"] .v2-arrow svg { width: 16px; height: 16px; }
html[data-ui="v2"] .v2-arrow.off { visibility: hidden; }

/* --- Hero: the reel player's layer, held inside the section ----------------- */
html[data-ui="v2"] .v2-hero {
    min-height: min(calc(100svh - var(--v2-nav-h)), 860px);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(90% 80% at 50% 40%, #134a52, var(--v2-bg) 75%);
}
html[data-ui="v2"] .reel-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #000;
    opacity: 0;
    transition: opacity 0.9s ease;
    view-transition-name: home-reel;
}
html[data-ui="v2"] .reel-layer.on { opacity: 1; }
html[data-ui="v2"] body.transition-out .reel-layer { opacity: 0; transition-duration: 0.3s; }
/* hard cuts: .live flips opacity instantly; the player sets blur/zoom/Ken Burns per cut */
html[data-ui="v2"] .reel-layer video,
html[data-ui="v2"] .reel-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: filter 0.35s ease; }
html[data-ui="v2"] .reel-layer video.live,
html[data-ui="v2"] .reel-layer img.live { opacity: 1; }
html[data-ui="v2"] .reel-layer video.kb-y { animation: kbY 18s ease-in-out infinite alternate; }
html[data-ui="v2"] .reel-layer video.kb-x { animation: kbX 18s ease-in-out infinite alternate; }
@keyframes kbP1 { from { transform: scale(1.18) translate(-3%, -2%); } to { transform: scale(1.07) translate(2%, 2%); } }
@keyframes kbP2 { from { transform: scale(1.06) translate(3%, 2%); } to { transform: scale(1.2) translate(-2%, -3%); } }
@keyframes kbP3 { from { transform: scale(1.12) translate(2.5%, -3%); } to { transform: scale(1.12) translate(-3%, 2.5%); } }
@keyframes kbP4 { from { transform: scale(1.05); } to { transform: scale(1.22) translate(2%, 3%); } }
@keyframes kbY { from { transform: scale(1.06) translateY(-4.5%); } to { transform: scale(1.06) translateY(4.5%); } }
@keyframes kbX { from { transform: scale(1.06) translateX(-4.5%); } to { transform: scale(1.06) translateX(4.5%); } }
/* phones: a blurred, drifting full-bleed video re-rasterises every frame under a scrolling page,
   which is what makes scrolling judder. Keep the cuts; drop the blur and the drift. */
@media (max-width: 860px), (pointer: coarse) {
    html[data-ui="v2"] .reel-layer video,
    html[data-ui="v2"] .reel-layer img { filter: none !important; }
    html[data-ui="v2"] .reel-layer video.kb-x,
    html[data-ui="v2"] .reel-layer video.kb-y { animation: none; transform: scale(1.06); }
}
/* Settings → homepage reel: clean (the same treatment, chosen for every screen) */
html[data-ui="v2"][data-reel="clean"] .reel-layer video,
html[data-ui="v2"][data-reel="clean"] .reel-layer img { filter: none !important; }
html[data-ui="v2"][data-reel="clean"] .reel-layer video.kb-x,
html[data-ui="v2"][data-reel="clean"] .reel-layer video.kb-y { animation: none; transform: scale(1.06); }
/* graded scrim: even darkening, pulled toward the site's teal, melting into the page below */
html[data-ui="v2"] .reel-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.6) 85%, var(--v2-bg) 100%),
        radial-gradient(90% 80% at 50% 40%, rgba(19, 74, 82, 0.35), transparent 70%);
    transition: opacity 0.35s ease;
}
/* long-press reveals the footage */
html[data-ui="v2"] .reel-layer.unblur video,
html[data-ui="v2"] .reel-layer.unblur img { filter: none !important; }
html[data-ui="v2"] .reel-layer.unblur .reel-scrim { opacity: 0.25; }

html[data-ui="v2"] .reel-caption {
    position: absolute;
    left: var(--v2-pad);
    bottom: 28px;
    z-index: 3;
    max-width: min(60ch, 70vw);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
html[data-ui="v2"] .reel-caption.show { opacity: 1; }
html[data-ui="v2"] .reel-caption .rc-project { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
html[data-ui="v2"] .reel-caption .rc-role { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.62); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }

html[data-ui="v2"] .v2-hero-in { text-align: center; padding: 72px var(--v2-pad) 96px; max-width: 980px; }
html[data-ui="v2"] .v2-hero .v2-label { color: rgba(255, 255, 255, 0.7); }
html[data-ui="v2"] .v2-hero h1 {
    margin: 22px 0 26px;
    font-size: clamp(42px, 7vw, 92px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.02;
    text-wrap: balance;
    text-transform: none;
    color: #fff;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}
html[data-ui="v2"] .v2-strap {
    max-width: 540px;
    margin: 0 auto 36px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
    letter-spacing: 0;
    color: var(--v2-text-mid);
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6);
}

/* --- Statement ------------------------------------------------------------- */
html[data-ui="v2"] .v2-statement { max-width: 960px; }
html[data-ui="v2"] .v2-statement p {
    margin: 0;
    font-size: clamp(24px, 3.1vw, 40px);
    font-weight: 300;
    line-height: 1.32;
    letter-spacing: -0.012em;
    text-wrap: pretty;
    color: var(--v2-text);
}
html[data-ui="v2"] .v2-statement p + p { margin-top: 28px; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-statement a { color: inherit; border-bottom: 1.5px solid var(--v2-accent); transition: color 0.2s ease; }
html[data-ui="v2"] .v2-statement a:hover { color: var(--v2-accent); }

/* --- Service rows ---------------------------------------------------------- */
html[data-ui="v2"] .v2-sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
html[data-ui="v2"] .v2-sec-head .v2-label { display: block; margin-bottom: 18px; }
html[data-ui="v2"] .v2-sec-head h2 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(32px, 4.8vw, 64px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-wrap: balance;
    text-transform: none;
    color: var(--v2-text);
}
html[data-ui="v2"] .v2-rows { border-top: 1px solid var(--v2-line); }
html[data-ui="v2"] .v2-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 44px;
    gap: 24px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--v2-line);
    color: var(--v2-text);
    transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
html[data-ui="v2"] a.v2-row:hover { padding-left: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--v2-accent) 8%, transparent), transparent 60%); }
html[data-ui="v2"] .v2-row .n { font-size: 13px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; color: var(--v2-text-dim); }
html[data-ui="v2"] .v2-row h3 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; text-transform: none; color: var(--v2-text); }
html[data-ui="v2"] .v2-row p { margin: 0; max-width: 46ch; font-size: 15.5px; line-height: 1.6; letter-spacing: 0; color: var(--v2-text-mid); }
html[data-ui="v2"] a.v2-row:hover .v2-arrow { background: var(--v2-accent); border-color: var(--v2-accent); color: var(--v2-accent-ink); transform: translateX(4px); }

/* --- Band: latest update + cards ------------------------------------------- */
html[data-ui="v2"] .v2-band { background: var(--v2-band); padding: clamp(56px, 8vw, 110px) 0; }
html[data-ui="v2"] .v2-ticker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 34px; font-size: 13px; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-ticker:hover b { color: var(--v2-accent); }
html[data-ui="v2"] .v2-ticker .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--v2-accent); animation: v2Pulse 2.2s ease-in-out infinite; }
html[data-ui="v2"] .v2-ticker b { font-weight: 600; color: var(--v2-text); transition: color 0.2s ease; }
html[data-ui="v2"] .v2-ticker-date { color: var(--v2-text-dim); }
@keyframes v2Pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--v2-accent) 50%, transparent); }
    60% { box-shadow: 0 0 0 8px transparent; }
}
html[data-ui="v2"] .v2-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
html[data-ui="v2"] .v2-card {
    position: relative;
    aspect-ratio: 5 / 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(20px, 2.4vw, 32px);
    border-radius: var(--v2-radius);
    overflow: hidden;
    isolation: isolate;
    background: var(--v2-surface);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
/* only one footage card is showing (the other page is switched off): let it span the row */
html[data-ui="v2"] .v2-cards-solo .v2-card:not(.v2-card-wide) { grid-column: 1 / -1; aspect-ratio: 16 / 6; }
html[data-ui="v2"] .v2-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5); }
html[data-ui="v2"] .v2-card video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
html[data-ui="v2"] .v2-card:hover video { transform: scale(1.05); }
html[data-ui="v2"] .v2-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.05) 100%); }
html[data-ui="v2"] .v2-card h3 { max-width: 14ch; margin: 0; font-size: clamp(22px, 2.5vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-transform: none; color: #fff; }
html[data-ui="v2"] .v2-card .go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; }
html[data-ui="v2"] .v2-card .go .v2-arrow { width: 28px; height: 28px; border: 0; background: #fff; color: #000; }
html[data-ui="v2"] .v2-card .go .v2-arrow svg { width: 13px; height: 13px; }
html[data-ui="v2"] .v2-card-wide { grid-column: 1 / -1; aspect-ratio: auto; min-height: 220px; align-items: center; background: linear-gradient(120deg, #123c45 0%, #0a171b 70%); }
html[data-ui="v2"] .v2-card-wide::before { display: none; }
html[data-ui="v2"] .v2-card-wide .left { display: flex; flex-wrap: wrap; align-items: center; gap: 34px; }
html[data-ui="v2"] .v2-card-wide .apps { display: flex; align-items: center; gap: 14px; }
html[data-ui="v2"] .v2-card-wide .apps img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
html[data-ui="v2"] .v2-card-wide:hover .apps img:nth-child(1) { transform: translateY(-6px) rotate(-3deg); }
html[data-ui="v2"] .v2-card-wide:hover .apps img:nth-child(3) { transform: translateY(-6px) rotate(3deg); }
html[data-ui="v2"] .v2-card-wide .txt h3 { max-width: 20ch; margin-bottom: 8px; }
html[data-ui="v2"] .v2-card-wide .txt p { margin: 0; max-width: 44ch; font-size: 15px; letter-spacing: 0; color: var(--v2-text-mid); }

/* --- Closing call to action ------------------------------------------------- */
html[data-ui="v2"] .v2-closer { text-align: center; }
html[data-ui="v2"] .v2-closer h2 { max-width: 17ch; margin: 0 auto 22px; font-size: clamp(34px, 5.4vw, 76px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; text-transform: none; color: var(--v2-text); }
html[data-ui="v2"] .v2-closer p { max-width: 52ch; margin: 0 auto 36px; font-size: 18px; line-height: 1.6; letter-spacing: 0; color: var(--v2-text-mid); }

@media (max-width: 860px) {
    html[data-ui="v2"] .v2-row { grid-template-columns: 36px 1fr 40px; gap: 14px; padding: 26px 0; }
    html[data-ui="v2"] .v2-row p { grid-column: 2 / 3; grid-row: 2; }
    html[data-ui="v2"] .v2-row .v2-arrow { grid-column: 3; grid-row: 1; }
    html[data-ui="v2"] .v2-cards { grid-template-columns: 1fr; gap: 20px; }
    html[data-ui="v2"] .v2-card { aspect-ratio: 4 / 3; }
    html[data-ui="v2"] .v2-cards-solo .v2-card:not(.v2-card-wide) { aspect-ratio: 4 / 3; }
    html[data-ui="v2"] .v2-card-wide { aspect-ratio: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
    html[data-ui="v2"] .reel-caption { bottom: 14px; }
    html[data-ui="v2"] .v2-hero-in { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    html[data-ui="v2"] *, html[data-ui="v2"] *::before, html[data-ui="v2"] *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* Settings → motion: calm (the owner's switch; same rule as the visitor's own reduced-motion setting) */
html[data-ui="v2"][data-motion="calm"] *, html[data-ui="v2"][data-motion="calm"] *::before, html[data-ui="v2"][data-motion="calm"] *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }

/* ============================================================
   PHASE 3: service pages (includes/views/service_page_v2.php)
   disguise-programmer, grandma3-programmer, disguise-hire, grandma3-hire.
   The copy is the owner-editable page_md() output; this restyles its
   elements (.dp-cols, .dp-card, ul, h2/h3) inside .v2-prose.
   ============================================================ */
html[data-ui="v2"] { scroll-padding-top: calc(var(--v2-nav-h) + 72px); }
@media (prefers-reduced-motion: no-preference) { html[data-ui="v2"] { scroll-behavior: smooth; } }

html[data-ui="v2"] .v2-svc a { text-decoration: none; }

/* --- Hero: left-aligned, footage behind ------------------------------------- */
html[data-ui="v2"] .v2-svc-hero {
    position: relative;
    min-height: min(78svh, 700px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(90% 90% at 20% 30%, #134a52, var(--v2-bg) 75%);
}
html[data-ui="v2"] .v2-svc-footage { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
html[data-ui="v2"] .v2-svc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(to bottom, transparent 70%, var(--v2-bg) 100%);
}
html[data-ui="v2"] .v2-svc-hero-in { width: 100%; padding-top: 72px; padding-bottom: 96px; }
html[data-ui="v2"] .v2-svc-hero .v2-label { color: rgba(255, 255, 255, 0.7); }
html[data-ui="v2"] .v2-svc-hero h1 {
    max-width: 14ch;
    margin: 18px 0 22px;
    font-size: clamp(44px, 6.4vw, 84px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.02;
    text-wrap: balance;
    text-transform: none;
    color: #fff;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}
html[data-ui="v2"] .v2-svc-hero .v2-strap { max-width: 56ch; margin: 0 0 36px; }
html[data-ui="v2"] .v2-svc-hero .v2-cta-row { justify-content: flex-start; }

/* --- Tab strip: sticky under the nav; scroll-spy sets .on ---------------------- */
html[data-ui="v2"] .v2-tabs {
    position: sticky;
    top: var(--v2-nav-h);
    z-index: 90;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--v2-bg);
    border-bottom: 1px solid var(--v2-line);
}
html[data-ui="v2"] .v2-tabs::-webkit-scrollbar { display: none; }
html[data-ui="v2"] .v2-tabs .v2-wrap { display: flex; justify-content: safe center; gap: clamp(18px, 2.6vw, 40px); width: max-content; min-width: 100%; }
html[data-ui="v2"] .v2-tabs a {
    margin-bottom: -1px;
    padding: 22px 0 20px;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--v2-text-dim);
    transition: color 0.2s ease, border-color 0.2s ease;
}
html[data-ui="v2"] .v2-tabs a:hover { color: var(--v2-text); }
html[data-ui="v2"] .v2-tabs a.on { color: var(--v2-text); border-bottom-color: var(--v2-accent); }

/* --- The copy ------------------------------------------------------------------ */
html[data-ui="v2"] .v2-svc-copy { padding: clamp(64px, 9vw, 120px) 0 clamp(24px, 4vw, 48px); }
html[data-ui="v2"] .v2-prose { max-width: 1040px; }
html[data-ui="v2"] .v2-prose h2,
html[data-ui="v2"] .v2-faq-head {
    margin: clamp(56px, 8vw, 104px) 0 clamp(20px, 3vw, 32px);
    font-size: clamp(30px, 4.2vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.06;
    text-wrap: balance;
    text-transform: none;
    color: var(--v2-text);
}
html[data-ui="v2"] .v2-prose > h2:first-child { margin-top: 0; }
html[data-ui="v2"] .v2-prose h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; text-transform: none; color: var(--v2-text); }
html[data-ui="v2"] .v2-prose p { max-width: 70ch; margin: 0 0 18px; font-size: 17px; line-height: 1.75; letter-spacing: 0; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-prose ul { margin: 0 0 20px; padding: 0; list-style: none; }
html[data-ui="v2"] .v2-prose li { position: relative; margin-bottom: 11px; padding-left: 24px; font-size: 16.5px; line-height: 1.65; letter-spacing: 0; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-prose li::before { content: "—"; position: absolute; left: 0; color: var(--v2-accent); }
html[data-ui="v2"] .v2-prose a { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); transition: color 0.2s ease; }
html[data-ui="v2"] .v2-prose a:hover { color: var(--v2-accent); }
/* two or three columns, each under a heavy rule (the ::: cols blocks) */
html[data-ui="v2"] .v2-prose .dp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin: 8px 0 24px; }
html[data-ui="v2"] .v2-prose .dp-cols > div { padding-top: 22px; border-top: 1.5px solid var(--v2-text); }
/* ::: card blocks become tiles */
html[data-ui="v2"] .v2-prose .dp-card { margin: 0 0 16px; padding: clamp(24px, 3vw, 38px); background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
html[data-ui="v2"] .v2-prose .dp-card h3 { margin-top: 0; }
html[data-ui="v2"] .v2-prose .dp-card p:last-child { margin-bottom: 0; }

/* --- Live hire kit (hire pages; markup from hire_landing.php) ------------------ */
html[data-ui="v2"] .mah-kit { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin: 8px 0 12px; }
html[data-ui="v2"] .mah-item {
    gap: 6px;
    padding: 0 0 20px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.45s ease;
}
html[data-ui="v2"] .v2-prose a.mah-item { border-bottom: 1px solid var(--v2-line); color: var(--v2-text); }
html[data-ui="v2"] .mah-item:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45); }
html[data-ui="v2"] .mah-thumb { height: auto; aspect-ratio: 4 / 3; margin: 0 0 8px; border-radius: 0; background: radial-gradient(90% 90% at 70% 0%, rgba(255, 255, 255, 0.09), transparent 60%), #0b1115; }
html[data-ui="v2"] .mah-thumb img { object-fit: contain; padding: 14px; }
html[data-ui="v2"] .mah-name,
html[data-ui="v2"] .mah-meta,
html[data-ui="v2"] .mah-price { padding: 0 20px; }
html[data-ui="v2"] .mah-name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
html[data-ui="v2"] .mah-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v2-text-dim); }
html[data-ui="v2"] .mah-price { padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--v2-text); }

/* --- FAQ accordion (details.dp-faq, as before; FAQPage schema unchanged) -------- */
html[data-ui="v2"] .v2-faqs { max-width: 920px; border-top: 1px solid var(--v2-line); }
html[data-ui="v2"] .v2-faqs .dp-faq { padding: 0; border-bottom: 1px solid var(--v2-line); }
html[data-ui="v2"] .v2-faqs summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    list-style: none;
    cursor: pointer;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--v2-text);
    transition: color 0.2s ease;
}
html[data-ui="v2"] .v2-faqs summary::-webkit-details-marker { display: none; }
html[data-ui="v2"] .v2-faqs summary::after { content: "+"; flex: none; font-size: 30px; font-weight: 300; line-height: 1; color: var(--v2-text-dim); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease; }
html[data-ui="v2"] .v2-faqs .dp-faq[open] summary::after { transform: rotate(45deg); color: var(--v2-accent); }
html[data-ui="v2"] .v2-faqs summary:hover { color: var(--v2-accent); }
html[data-ui="v2"] .v2-faqs p { max-width: 72ch; margin: 0; padding: 0 48px 30px 0; font-size: 16px; line-height: 1.75; letter-spacing: 0; color: var(--v2-text-mid); }

/* --- Closer + small print --------------------------------------------------------- */
html[data-ui="v2"] .v2-svc-closer { margin-top: clamp(24px, 4vw, 56px); }
html[data-ui="v2"] .v2-notice { max-width: 760px; margin: clamp(48px, 7vw, 88px) auto 0; padding-top: 20px; border-top: 1px solid var(--v2-line); font-size: 11.5px; line-height: 1.85; text-align: left; color: var(--v2-text-dim); }

@media (max-width: 860px) {
    html[data-ui="v2"] .v2-svc-hero { min-height: min(72svh, 620px); }
    html[data-ui="v2"] .v2-svc-hero-in { padding-bottom: 64px; }
    html[data-ui="v2"] .v2-svc-hero::before { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.78) 70%, var(--v2-bg) 100%); }
    html[data-ui="v2"] .v2-tabs .v2-wrap { justify-content: flex-start; gap: 28px; }
    html[data-ui="v2"] .v2-faqs p { padding-right: 0; }
}

/* ============================================================
   PHASE 4: equipment hire (public/equipment.php, public/hire_item.php)
   Mostly restyles the existing classes; the page <style> blocks come
   later in the document, so rules here carry html[data-ui="v2"] for
   specificity. A few !important mark values forced by inline styles.
   ============================================================ */
html[data-ui="v2"] { --v2-gutter: max(var(--v2-pad), calc((100vw - var(--v2-max)) / 2 + var(--v2-pad))); }

/* page head (shared look for the inner pages in later phases) */
html[data-ui="v2"] .v2-pagehead { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(36px, 5vw, 64px); }
html[data-ui="v2"] .v2-pagehead h1 { margin: 18px 0 24px; font-size: clamp(44px, 7vw, 96px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; text-transform: none; color: var(--v2-text); }
html[data-ui="v2"] .v2-pagehead .v2-strap { max-width: 58ch; margin: 0; text-shadow: none; }
html[data-ui="v2"] .v2-pagehead-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; font-size: 14px; }
html[data-ui="v2"] .v2-pagehead-links a { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); text-decoration: none; transition: color 0.2s ease; }
html[data-ui="v2"] .v2-pagehead-links a:hover { color: var(--v2-accent); }

/* --- Catalogue layout ------------------------------------------------------------ */
html[data-ui="v2"] .hire-wrapper { max-width: none; padding: 0; }
html[data-ui="v2"] .hire-wrapper > * { padding-left: var(--v2-gutter); padding-right: var(--v2-gutter); }
html[data-ui="v2"] .hire-controls {
    top: var(--v2-nav-h);
    z-index: 80;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    border: 0;
    border-top: 1px solid var(--v2-line);
    border-bottom: 1px solid var(--v2-line);
    border-radius: 0;
    background: var(--v2-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
html[data-ui="v2"] .hire-pills { flex-wrap: nowrap; justify-content: flex-start; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; mask-image: none; -webkit-mask-image: none; }
html[data-ui="v2"] .hire-pills::-webkit-scrollbar { display: none; }
html[data-ui="v2"] .hire-pill {
    flex: none;
    height: 38px;
    padding: 0 18px;
    border: 1.5px solid var(--v2-line);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--v2-text-mid);
}
html[data-ui="v2"] .hire-pill svg { display: none; }
html[data-ui="v2"] .hire-pill:hover { border-color: rgba(255, 255, 255, 0.55); color: var(--v2-text); }
html[data-ui="v2"] .hire-pill.on { background: var(--v2-text); border-color: var(--v2-text); color: var(--v2-bg); }
html[data-ui="v2"] .hire-tools { flex: none; }
html[data-ui="v2"] .hire-tools #hire-q,
html[data-ui="v2"] .hire-sort {
    height: 40px;
    border: 1.5px solid var(--v2-line);
    border-radius: 999px !important;   /* the search box carries an inline radius */
    background-color: transparent;
    color: var(--v2-text);
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
html[data-ui="v2"] .hire-tools #hire-q { width: 230px; padding: 0 18px !important; font-size: 14px !important; }   /* inline padding/size on the input */
html[data-ui="v2"] .hire-sort { padding: 0 34px 0 16px; font-size: 13px; }
html[data-ui="v2"] .hire-tools #hire-q:focus { border-color: var(--v2-accent); }
@media (max-width: 1000px) {
    html[data-ui="v2"] .hire-controls { flex-direction: column; align-items: stretch; gap: 12px; }
    html[data-ui="v2"] .hire-tools { width: 100%; }
    html[data-ui="v2"] .hire-tools #hire-q { flex: 1; width: auto; min-width: 0; }
}

html[data-ui="v2"] .hire-cat { margin: 0; padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--v2-nav-h) + 90px); }
html[data-ui="v2"] .hire-cat > h2 { margin: 0 0 22px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--v2-text-dim); }
html[data-ui="v2"] .hire-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
html[data-ui="v2"] .hire-card {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    text-decoration: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.45s ease;
}
html[data-ui="v2"] .hire-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45); }
html[data-ui="v2"] .hire-media { aspect-ratio: 4 / 3; background: radial-gradient(90% 90% at 70% 0%, rgba(255, 255, 255, 0.09), transparent 60%), #0b1115; }
html[data-ui="v2"] .hire-media img { object-fit: contain; padding: 18px; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
html[data-ui="v2"] .hire-card:hover .hire-media img { transform: scale(1.05); }
html[data-ui="v2"] .hire-ph { opacity: 1; color: rgba(255, 255, 255, 0.22); }
html[data-ui="v2"] .hire-body { gap: 6px; padding: 18px 20px 22px; }
html[data-ui="v2"] .hire-brand { min-height: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--v2-text-dim); }
html[data-ui="v2"] .hire-name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; color: var(--v2-text); }
html[data-ui="v2"] .hire-sub { padding-top: 14px; }
html[data-ui="v2"] .hire-cta { display: none; }
html[data-ui="v2"] .hire-rate { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--v2-text); }
html[data-ui="v2"] .hire-edit { top: 12px; right: 12px; }

html[data-ui="v2"] .hire-wrapper > .hire-note { max-width: none; margin: clamp(40px, 5vw, 64px) 0 28px; padding-top: 0; font-size: 15px; letter-spacing: 0; line-height: 1.75; text-align: left; color: var(--v2-text-mid); }
html[data-ui="v2"] #hire-empty { margin: 40px 0 !important; }   /* inline margin-bottom on the element */
html[data-ui="v2"] .hire-wrapper > .hire-note a { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); }
html[data-ui="v2"] .hire-enquire { text-align: left; }
html[data-ui="v2"] .hire-policy-wrap { max-width: none; margin: clamp(56px, 7vw, 96px) 0 clamp(72px, 10vw, 140px); }
html[data-ui="v2"] .policy { max-width: 820px; background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
html[data-ui="v2"] .policy summary { padding: 20px 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v2-text-mid); }
html[data-ui="v2"] .policy summary:hover { color: var(--v2-text); }
html[data-ui="v2"] .policy-body { padding: 4px 26px 26px; font-size: 14.5px; line-height: 1.8; letter-spacing: 0; color: var(--v2-text-mid); }
html[data-ui="v2"] .policy-body b { color: var(--v2-text); }
html[data-ui="v2"] .policy-body a { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); }

/* --- Item page ---------------------------------------------------------------------- */
html[data-ui="v2"] .item-wrapper { max-width: none; padding: clamp(32px, 5vw, 64px) var(--v2-gutter) clamp(72px, 10vw, 140px); }
html[data-ui="v2"] .item-wrapper > a.text-link { margin-bottom: clamp(24px, 3vw, 40px); font-size: 14px !important; color: var(--v2-text-mid); text-decoration: none; border-bottom: 0; }   /* inline font-size on the back link */
html[data-ui="v2"] .item-wrapper > a.text-link:hover { color: var(--v2-accent); }
html[data-ui="v2"] .item-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { html[data-ui="v2"] .item-grid { grid-template-columns: 1fr; } }
html[data-ui="v2"] .item-photo-main,
html[data-ui="v2"] .item-photo-empty { border: 1px solid var(--v2-line); border-radius: var(--v2-radius); background: radial-gradient(90% 90% at 70% 0%, rgba(255, 255, 255, 0.09), transparent 60%), #0b1115; }
html[data-ui="v2"] .item-photo-main { object-fit: contain; padding: 22px; }
html[data-ui="v2"] .item-photo-empty { font-size: 14px; letter-spacing: 0; }
html[data-ui="v2"] .item-thumbs img { width: 84px; height: 63px; border-radius: var(--v2-radius); border-color: var(--v2-line); }
html[data-ui="v2"] .item-thumbs img.sel { border-color: var(--v2-accent); }
html[data-ui="v2"] .eyebrow { opacity: 1; }   /* v1 dims the kicker with opacity on top of a dim colour */
html[data-ui="v2"] .item-wrapper .eyebrow { margin: 0; font-size: 12px !important; letter-spacing: 0.16em; text-transform: uppercase !important; color: var(--v2-text-dim); }   /* inline size/case */
html[data-ui="v2"] .item-grid h1 { margin-top: 14px !important; font-size: clamp(32px, 4vw, 52px) !important; font-weight: 500 !important; letter-spacing: -0.02em !important; line-height: 1.08; text-transform: none; color: var(--v2-text); }   /* inline weight/tracking on the h1 */
html[data-ui="v2"] .item-meta { margin: 18px 0 26px; }
html[data-ui="v2"] .item-meta .status-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1.5px solid var(--v2-line); border-radius: 999px; background: transparent; font-size: 12.5px; letter-spacing: 0; text-transform: none; }
html[data-ui="v2"] .item-price { margin-bottom: 8px; font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -0.01em; color: var(--v2-text); }
html[data-ui="v2"] .item-price-sub { margin-bottom: 30px; font-size: 13.5px; letter-spacing: 0; line-height: 1.6; color: var(--v2-text-dim); }
html[data-ui="v2"] .item-price-sub a { color: var(--v2-text-mid); border-bottom: 1px solid var(--v2-accent); }
html[data-ui="v2"] .item-desc { margin-bottom: 32px; font-size: 16.5px; letter-spacing: 0; line-height: 1.75; color: var(--v2-text-mid); }
html[data-ui="v2"] .item-grid p { font-size: 14px !important; letter-spacing: 0; line-height: 1.9; }   /* the related-links paragraph carries an inline size */
html[data-ui="v2"] .item-grid p a { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); text-decoration: none; }
html[data-ui="v2"] .pv-overlay { background: rgba(0, 0, 0, 0.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-ui="v2"] .pv-close { background: var(--v2-surface); border-color: var(--v2-line); }

@media (max-width: 860px) {
    html[data-ui="v2"] .hire-name { font-size: 17px; }
}

/* ============================================================
   PHASE 5: portfolio (includes/views/portfolio_v2.php)
   Cards come from the reel manager: footage, project, role, kind.
   ============================================================ */
html[data-ui="v2"] .v2-portfolio .v2-pagehead { max-width: var(--v2-max); margin: 0 auto; padding-left: var(--v2-pad); padding-right: var(--v2-pad); box-sizing: border-box; }
html[data-ui="v2"] .v2-pf-body { padding-bottom: clamp(72px, 10vw, 140px); }
html[data-ui="v2"] .v2-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
html[data-ui="v2"] .v2-chip {
    height: 38px;
    padding: 0 18px;
    border: 1.5px solid var(--v2-line);
    border-radius: 999px;
    background: transparent;
    color: var(--v2-text-mid);
    font: 600 13px/1 'Inter', sans-serif;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
html[data-ui="v2"] .v2-chip::after { display: none; }
html[data-ui="v2"] .v2-chip:hover { border-color: rgba(255, 255, 255, 0.55); color: var(--v2-text); }
html[data-ui="v2"] .v2-chip.on { background: var(--v2-text); border-color: var(--v2-text); color: var(--v2-bg); }
html[data-ui="v2"] .v2-chip sup { margin-left: 6px; font-size: 10px; font-weight: 500; opacity: 0.6; }

html[data-ui="v2"] .v2-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(240px, 24vw, 320px); grid-auto-flow: dense; gap: 24px; }
html[data-ui="v2"] .v2-work {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(18px, 2vw, 28px);
    border-radius: var(--v2-radius);
    overflow: hidden;
    isolation: isolate;
    background: var(--v2-surface);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
html[data-ui="v2"] .v2-work.big { grid-column: span 2; }
html[data-ui="v2"] .v2-work[hidden] { display: none; }
html[data-ui="v2"] .v2-work video,
html[data-ui="v2"] .v2-work img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
html[data-ui="v2"] .v2-work::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.05) 100%); }
html[data-ui="v2"] .v2-work:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5); }
html[data-ui="v2"] .v2-work:hover video,
html[data-ui="v2"] .v2-work:hover img { transform: scale(1.05); }
html[data-ui="v2"] .v2-work .tag { position: absolute; top: 18px; left: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
html[data-ui="v2"] .v2-work h3 { max-width: 24ch; margin: 0 0 8px; font-size: clamp(19px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.18; text-transform: none; color: #fff; }
html[data-ui="v2"] .v2-work.big h3 { font-size: clamp(24px, 2.6vw, 36px); }
html[data-ui="v2"] .v2-work .role { font-size: 13.5px; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.72); }
html[data-ui="v2"] .v2-pf-empty { max-width: 56ch; font-size: 17px; line-height: 1.7; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-pf-empty a { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); text-decoration: none; }

@media (max-width: 1000px) {
    html[data-ui="v2"] .v2-work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    html[data-ui="v2"] .v2-work-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    html[data-ui="v2"] .v2-work.big { grid-column: auto; }
}

/* ============================================================
   PHASE 6: the remaining public pages (contact, journal, music, links,
   apps, licence, privacy, offline). These keep their own markup; this
   block gives them the v2 shell, type and components. Copy is sentence-
   cased by v2_sentence_page() (pagecontent.php) at the footer.
   ============================================================ */

/* Shell: pages that are not flush get the v2 column and rhythm */
html[data-ui="v2"] main > .glass-content:not(.v2-flush) {
    max-width: var(--v2-max);
    padding: clamp(40px, 6vw, 88px) var(--v2-pad) clamp(64px, 9vw, 128px);
}
html[data-ui="v2"] :is(.blog-wrapper, .music-wrapper, .apps-wrapper, .ct-wrap, .lt-wrap) { max-width: none; padding-left: 0; padding-right: 0; }
html[data-ui="v2"] :is(.priv-wrapper, .lic-wrapper) { max-width: 760px; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

/* Type: the v1 pages use thin, tracked headings; the flat design uses medium weight, tight tracking */
html[data-ui="v2"] main > .glass-content:not(.v2-flush) :is(h1, h2, h3) { font-weight: 500; letter-spacing: -0.015em; text-transform: none; color: var(--v2-text); }
html[data-ui="v2"] main > .glass-content:not(.v2-flush) p { letter-spacing: 0; }
html[data-ui="v2"] main > .glass-content:not(.v2-flush) :is(p, li) { line-height: 1.75; }

/* Page head: the "kicker" h1.eyebrow stays a small label when a heading follows it;
   on its own (privacy, journal, apps) it becomes the page title. */
html[data-ui="v2"] .page-header { text-align: left; margin-bottom: clamp(32px, 5vw, 64px); }
html[data-ui="v2"] .page-header .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--v2-text-dim); }
html[data-ui="v2"] .page-header > h1.eyebrow:only-child,
html[data-ui="v2"] :is(.priv-wrapper, .lic-wrapper) .page-header > h1.eyebrow,
html[data-ui="v2"] .page-header > .v2-page-title {
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.04;
    text-transform: none;
    color: var(--v2-text);
}
html[data-ui="v2"] .page-header > h2 { margin-top: 14px; font-size: clamp(40px, 6vw, 88px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
html[data-ui="v2"] .page-header > p { max-width: 62ch; margin: 18px 0 0 !important; font-size: clamp(16px, 1.5vw, 19px) !important; letter-spacing: 0 !important; line-height: 1.65; color: var(--v2-text-mid) !important; }   /* inline sizes on the page's own intro */
html[data-ui="v2"] .page-header > .btn { margin-top: 22px !important; }

/* Components: boxed fields, labels, panels, links */
html[data-ui="v2"] .form-label { margin-bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--v2-text-dim); }
html[data-ui="v2"] .form-input,
html[data-ui="v2"] .form-textarea,
html[data-ui="v2"] .form-select {
    padding: 13px 16px;
    background-color: transparent;
    border: 1.5px solid var(--v2-line);
    border-radius: var(--v2-radius);
    color: var(--v2-text);
    font-size: 15px;
    box-shadow: none;
}
html[data-ui="v2"] .form-select { height: 48px; padding-right: 38px; }
html[data-ui="v2"] .form-input:focus,
html[data-ui="v2"] .form-textarea:focus,
html[data-ui="v2"] .form-select:focus { border-color: var(--v2-accent); box-shadow: none; }
html[data-ui="v2"] .form-input::placeholder,
html[data-ui="v2"] .form-textarea::placeholder { color: var(--v2-text-dim); }
html[data-ui="v2"] .panel { background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); box-shadow: none; }
html[data-ui="v2"] .btn-block { display: flex; width: 100%; }
html[data-ui="v2"] .text-link { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); transition: color 0.2s ease; }
html[data-ui="v2"] .text-link:hover { color: var(--v2-accent); }
html[data-ui="v2"] .status-pill { border-radius: 999px; }
html[data-ui="v2"] #submitBtn::first-letter { text-transform: uppercase; }   /* its label is set by script, after the page is cased */

/* Reading sizes: the v1 pages set 12-13.5px copy; the flat design reads at 15-17px */
html[data-ui="v2"] :is(.priv-wrapper, .lic-wrapper) :is(p, li, td, summary) { font-size: 15.5px; color: var(--v2-text-mid); }
html[data-ui="v2"] :is(.priv-wrapper, .lic-wrapper) h2 { margin: 48px 0 14px; font-size: clamp(22px, 2.4vw, 30px); }
html[data-ui="v2"] .ct-lead { margin: 0 0 30px; font-size: 17px; line-height: 1.7; letter-spacing: 0; color: var(--v2-text-mid); }
html[data-ui="v2"] .ct-lead a { color: var(--v2-text); border-bottom: 1px solid var(--v2-accent); }
html[data-ui="v2"] .ct-grid { gap: clamp(32px, 5vw, 72px); }
html[data-ui="v2"] .ct-direct a,
html[data-ui="v2"] .ct-direct span.ct-row { padding: 15px 2px; font-size: 15px; border-bottom-color: var(--v2-line); }
html[data-ui="v2"] .ct-direct a:hover { color: var(--v2-text); }
html[data-ui="v2"] .ct-card { padding: clamp(22px, 3vw, 36px); background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); }
html[data-ui="v2"] .ct-chips label { padding: 10px 16px; border: 1.5px solid var(--v2-line); background: transparent; font-size: 13px; font-weight: 600; color: var(--v2-text-mid); }
html[data-ui="v2"] .ct-chips label small { font-size: 11px; font-weight: 400; letter-spacing: 0; }
html[data-ui="v2"] .ct-chips label:hover { border-color: rgba(255, 255, 255, 0.55); color: var(--v2-text); }
html[data-ui="v2"] .ct-chips input:checked + label { border-color: var(--v2-accent); background: color-mix(in srgb, var(--v2-accent) 14%, transparent); color: var(--v2-text); }
html[data-ui="v2"] .ct-note { font-size: 13px; }
html[data-ui="v2"] #submitBtn { height: 50px; font-size: 15px; }

/* Journal */
html[data-ui="v2"] .masonry-grid { column-gap: 40px; }
html[data-ui="v2"] .post-card { padding: clamp(24px, 3vw, 40px); background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); margin-bottom: 40px; }
html[data-ui="v2"] .post-card:hover { transform: none; border-color: rgba(255, 255, 255, 0.4); }
html[data-ui="v2"] .post-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.015em; }
html[data-ui="v2"] .post-meta { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--v2-text-dim); }
html[data-ui="v2"] .post-content { font-size: 16.5px; letter-spacing: 0; color: var(--v2-text-mid); }
html[data-ui="v2"] .post-content a { color: var(--v2-text); border-bottom-color: var(--v2-accent); }
html[data-ui="v2"] .post-content :is(h1, h2, h3) { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

/* Music */
html[data-ui="v2"] .music-hero { text-align: left; padding: 0 0 clamp(32px, 5vw, 56px); }
html[data-ui="v2"] .music-hero h1 { margin: 18px 0 18px; font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.02em; line-height: 1.02; }
html[data-ui="v2"] .music-hero .eyebrow { opacity: 1; letter-spacing: 0.16em; color: var(--v2-text-dim); }
html[data-ui="v2"] .music-hero > p:not(.eyebrow) { font-size: 17px !important; letter-spacing: 0 !important; color: var(--v2-text-mid) !important; }   /* inline size on the intro */
html[data-ui="v2"] .sc-btn { height: 46px; padding: 0 26px; background: transparent; color: var(--v2-text); border: 1.5px solid #ff5500; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
html[data-ui="v2"] .sc-btn:hover { background: color-mix(in srgb, #ff5500 14%, transparent); box-shadow: none; }
html[data-ui="v2"] .track { padding: 20px; background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); box-shadow: none; }
html[data-ui="v2"] .track-art { border-radius: var(--v2-radius); }
html[data-ui="v2"] .genre-pill { background: transparent; }
html[data-ui="v2"] #player-bar { background: var(--v2-surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--v2-line); }

/* Links */
html[data-ui="v2"] .lt-card { max-width: 520px; background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-ui="v2"] .lt-ava-wrap::before { display: none; }
html[data-ui="v2"] .lt-ava { border-color: var(--v2-line); }
html[data-ui="v2"] .lt-name { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; text-transform: none; }
html[data-ui="v2"] .lt-row { background: transparent; border: 1.5px solid var(--v2-line); border-radius: var(--v2-radius); box-shadow: none; }
html[data-ui="v2"] .lt-row::after { display: none; }
html[data-ui="v2"] .lt-row:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); box-shadow: none; }
html[data-ui="v2"] .lt-title { font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
html[data-ui="v2"] .lt-desc { font-size: 12.5px; letter-spacing: 0; }
html[data-ui="v2"] .lt-ico { border-radius: 8px; }
html[data-ui="v2"] .lt-socials { border-top-color: var(--v2-line); }

/* Apps */
html[data-ui="v2"] .apps-grid { gap: 22px; }
html[data-ui="v2"] .dash-card { padding: clamp(24px, 3vw, 34px); background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-radius); box-shadow: none; }
html[data-ui="v2"] .dash-card:hover { transform: none; border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
html[data-ui="v2"] .app-icon { border-radius: 14px; background: var(--v2-band); border-color: var(--v2-line); box-shadow: none; }
html[data-ui="v2"] .app-name { margin-bottom: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
html[data-ui="v2"] .app-name a { border-bottom-color: transparent; }
html[data-ui="v2"] .app-name a:hover { color: var(--v2-accent); border-bottom-color: var(--v2-accent); }
html[data-ui="v2"] .app-platform { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; }
html[data-ui="v2"] .app-desc { font-size: 15px; line-height: 1.65; letter-spacing: 0; color: var(--v2-text-mid); }

/* Offline notice (disabled routes) */
html[data-ui="v2"] main > .glass-content h1[style*="Module Offline"] { font-size: 14px; }
html[data-ui="v2"] :is(.priv-wrapper, .lic-wrapper) .page-header { text-align: left !important; }
html[data-ui="v2"] :is(.priv-wrapper, .lic-wrapper) .page-header > p { font-size: 15px !important; letter-spacing: 0 !important; color: var(--v2-text-mid) !important; }
html[data-ui="v2"] .priv-table { font-size: 14px; }
html[data-ui="v2"] .priv-table th { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; }
html[data-ui="v2"] .priv-table th, html[data-ui="v2"] .priv-table td { border-bottom-color: var(--v2-line); }
html[data-ui="v2"] .priv-body { font-size: 15.5px; line-height: 1.75; letter-spacing: 0; }
html[data-ui="v2"] .priv-body h2 { text-transform: none; letter-spacing: -0.01em; font-weight: 500; }
html[data-ui="v2"] .lic-card { background: var(--v2-surface); border-color: var(--v2-line); border-radius: var(--v2-radius); }
html[data-ui="v2"] .lic-card h2 { text-transform: none; letter-spacing: -0.01em; font-size: 20px; font-weight: 500; }
html[data-ui="v2"] .lic-row { font-size: 14.5px; border-bottom-color: var(--v2-line); }
html[data-ui="v2"] .lic-note { font-size: 13.5px; line-height: 1.7; }
html[data-ui="v2"] .lic-wrapper .page-header > p.eyebrow { margin: 0 0 12px; font-size: clamp(36px, 5.5vw, 72px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; text-transform: none; color: var(--v2-text); opacity: 1; }

/* Phase 7: standalone links and small controls get a 24px+ target (WCAG 2.2 target size); inline links in prose are exempt */
html[data-ui="v2"] .v2-legal a { display: inline-block; padding-block: 5px; }
html[data-ui="v2"] .item-wrapper > a.text-link,
html[data-ui="v2"] .app-foot a.text-link { display: inline-block; padding-block: 4px; }
html[data-ui="v2"] .music-wrapper summary { display: inline-block; padding-block: 5px; cursor: pointer; }

/* ============================================================
   PORTFOLIO, COMPLETED (includes/views/portfolio_v2.php)
   At-a-glance stats, clickable cards with year / clip count, the work
   sheet (<dialog>) and the full credits list.
   ============================================================ */
html[data-ui="v2"] .v2-pf-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-pf-stats b { margin-right: 4px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--v2-text); }
html[data-ui="v2"] a.v2-work { text-decoration: none; cursor: pointer; }
html[data-ui="v2"] a.v2-work:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; }
html[data-ui="v2"] .v2-work .count { position: absolute; top: 18px; right: 20px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); }

/* Credits list */
html[data-ui="v2"] .v2-pf-credits { padding-bottom: clamp(72px, 10vw, 140px); }
html[data-ui="v2"] .v2-pf-credits h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.015em; text-transform: none; }
html[data-ui="v2"] .v2-credits { width: 100%; border-collapse: collapse; font-size: 15.5px; }
html[data-ui="v2"] .v2-credits th,
html[data-ui="v2"] .v2-credits td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--v2-line); text-align: left; vertical-align: baseline; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--v2-text-mid); }
html[data-ui="v2"] .v2-credits thead th { padding-top: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v2-text-dim); }
html[data-ui="v2"] .v2-credits tbody th { width: 46%; color: var(--v2-text); font-weight: 500; }
html[data-ui="v2"] .v2-credits td:last-child,
html[data-ui="v2"] .v2-credits thead th:last-child { width: 72px; text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
html[data-ui="v2"] .v2-credits a { display: inline-block; padding-block: 3px; color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
html[data-ui="v2"] .v2-credits a:hover { color: var(--v2-accent); border-bottom-color: var(--v2-accent); }
html[data-ui="v2"] .v2-credits tr[hidden] { display: none; }

/* Work sheet */
html[data-ui="v2"].v2-sheet-open { overflow: hidden; }
html[data-ui="v2"] .v2-sheet { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--v2-line); border-radius: var(--v2-radius); background: var(--v2-surface); color: var(--v2-text); overflow: auto; overscroll-behavior: contain; }
html[data-ui="v2"] .v2-sheet::backdrop { background: rgba(0, 0, 0, 0.78); }
html[data-ui="v2"] .v2-sheet[open] { animation: v2SheetIn 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes v2SheetIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
html[data-ui="v2"] .pf-s-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
html[data-ui="v2"] .pf-s-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; box-shadow: none; }
html[data-ui="v2"] .pf-s-close::after { display: none; }
html[data-ui="v2"] .pf-s-close svg { width: 16px; height: 16px; }
html[data-ui="v2"] .pf-s-close:hover { background: #fff; color: #000; }
html[data-ui="v2"] .pf-s-media { position: relative; min-width: 0; background: #000; display: flex; flex-direction: column; }
html[data-ui="v2"] .pf-s-stage { flex: 1; min-height: 280px; aspect-ratio: 16 / 10; background: #000; }
html[data-ui="v2"] .pf-s-stage video,
html[data-ui="v2"] .pf-s-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-ui="v2"] .pf-s-thumbs { display: flex; gap: 8px; padding: 12px; background: #000; }
html[data-ui="v2"] .pf-s-thumbs[hidden] { display: none; }
html[data-ui="v2"] .pf-s-thumbs button { min-width: 40px; height: 36px; padding: 0 12px; border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.75); font: 600 13px/1 'Inter', sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
html[data-ui="v2"] .pf-s-thumbs button::after { display: none; }
html[data-ui="v2"] .pf-s-thumbs button[aria-current="true"] { border-color: #fff; background: #fff; color: #000; }
html[data-ui="v2"] .pf-s-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); min-width: 0; }
html[data-ui="v2"] .pf-s-body .v2-label { margin: 0; padding-right: 44px; }
html[data-ui="v2"] .pf-s-body h2 { margin: 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-transform: none; color: var(--v2-text); }
html[data-ui="v2"] .pf-s-role { margin: 0; font-size: 16px; color: var(--v2-text-mid); }
html[data-ui="v2"] .pf-s-desc p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; letter-spacing: 0; color: var(--v2-text-mid); }
html[data-ui="v2"] .pf-s-facts { margin: 0; }
html[data-ui="v2"] .pf-s-facts dt { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v2-text-dim); }
html[data-ui="v2"] .pf-s-facts dd { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
html[data-ui="v2"] .pf-chip { padding: 5px 12px; border: 1px solid var(--v2-line); border-radius: 999px; font-size: 13px; color: var(--v2-text-mid); }
html[data-ui="v2"] .pf-s-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-ui="v2"] .pf-s-actions:empty,
html[data-ui="v2"] .pf-s-body [hidden] { display: none; }
html[data-ui="v2"] .pf-s-nav { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--v2-line); }
html[data-ui="v2"] .pf-s-nav .btn { flex: 1; }

@media (max-width: 860px) {
    html[data-ui="v2"] .v2-sheet { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
    html[data-ui="v2"] .pf-s-in { grid-template-columns: 1fr; }
    html[data-ui="v2"] .pf-s-stage { aspect-ratio: 16 / 10; min-height: 0; }
    html[data-ui="v2"] .v2-credits tbody th { width: auto; }
    html[data-ui="v2"] .v2-credits td:nth-child(2) { display: none; }
    html[data-ui="v2"] .v2-credits thead th:nth-child(2) { display: none; }
}
