/*
Theme Name: Nightframe Studios
Description: A custom one-page dark portfolio theme with a restrained purple accent, built to showcase freelance web and app development work.
Version: 3.0.0
Author:
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: colm-portfolio
*/

/* =========================================================
   CSS VARIABLES
   Central place for colours, spacing and radii used site-wide.
   ========================================================= */
:root {
    /* Nightframe Studios: dark-charcoal base with a restrained purple
       accent. Three-tier purple system - --color-accent for primary
       actions/labels/checkmarks, --color-accent-strong for hover/active
       and interactive emphasis, --color-highlight for softer decorative
       detail (frame corners, dashboard accents) so not everything reads
       at full CTA intensity. --color-accent-rgb exists so glows/shadows
       can reuse the same accent colour at different opacities via
       rgba(var(--color-accent-rgb), X) instead of repeating a literal
       colour value at each call site. */
    --color-bg: #09090f;
    --color-bg-alt: #11111a;
    --color-surface: #171522;
    --color-border: #2b263a;
    --color-text: #f5f3ff;
    --color-text-muted: #aaa6b8;
    --color-accent: #8b5cf6;
    --color-accent-strong: #a78bfa;
    --color-accent-contrast: #09090f;
    --color-highlight: #c4b5fd;
    --color-accent-rgb: 139, 92, 246;

    /* Reserved for very small technical/decorative labels only (e.g.
       numbered card markers) - never for headings or body copy. */
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;

    /* Section-spacing system: standard rhythm for visually dense sections
       (services, work, process), tight rhythm for lighter, text-led
       sections (about, technology, contact) so consecutive light sections
       don't stack their full padding into dead space. */
    --section-space: 100px;
    --section-space-sm: 64px;
    --section-space-tight: 72px;
    --section-space-tight-sm: 56px;
}

/* =========================================================
   BASE & RESET
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* Safety net for long words in headings/paragraphs at very narrow
   viewports (e.g. "unnecessarily" in a 320px-wide card) that would
   otherwise overflow the container instead of wrapping. */
h1,
h2,
h3,
h4,
p {
    overflow-wrap: break-word;
}

/* =========================================================
   ACCESSIBILITY HELPERS
   Visually hidden text for screen readers, and a visible
   "skip to content" link for keyboard users.
   ========================================================= */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    z-index: 100;
}

.skip-link:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    padding: 12px 20px;
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.button:focus-visible,
.menu-toggle:focus-visible,
.site-navigation a:focus-visible,
.site-logo:focus-visible,
.site-footer__top:focus-visible,
.faq-item summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Belt-and-braces for capture tools that render via a print/PDF pipeline
   rather than a normal painted viewport (animations.js's own JS timeout
   is the main safety net - see SCROLL REVEAL below - this covers the
   case where that pass never gets to run at all). */
@media print {
    .js-anim .reveal,
    .js-anim .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   SHARED UI PATTERNS
   Layout container, buttons and heading styles reused by
   several sections below.
   ========================================================= */
.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-inline: auto;
}

.section-eyebrow {
    margin-bottom: 16px;
    /* accent-strong, not accent: this label sits on --color-surface and
       --color-bg-alt in several sections, where --color-accent computes to
       ~4.25-4.44:1 against those backgrounds (just under the 4.5:1 AA text
       minimum); accent-strong clears ~5.9-6.5:1 on the same backgrounds. */
    color: var(--color-accent-strong);
    font-weight: 700;
}

.section-introduction {
    max-width: 650px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 52px;
}

.section-heading h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-heading__description {
    max-width: 420px;
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.button {
    position: relative;
    display: inline-block;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease,
        border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button--primary {
    overflow: hidden;
    background: var(--color-accent);
    color: var(--color-accent-contrast);
}

/* One-shot light sweep: parked off-canvas by default (harmless even
   under reduced motion, since the hover-triggered slide below is the
   only thing that ever moves it). Plays once per hover, not on a loop. */
.button--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .button--primary::before {
        transition: transform 550ms ease;
    }

    .button--primary:hover::before {
        transform: translateX(120%);
    }
}

.button--secondary {
    border-color: var(--color-border);
}

@media (hover: hover) and (pointer: fine) {
    .button--primary:hover {
        background: var(--color-accent-strong);
        box-shadow: 0 10px 24px -10px rgba(var(--color-accent-rgb), 0.5);
    }

    .button--secondary:hover {
        background: var(--color-surface);
        border-color: var(--color-accent);
    }

    .button:hover {
        transform: translateY(-2px);
    }
}

.button:active {
    transform: translateY(-1px);
}

/* Nightframe frame-corner motif: a small purple corner bracket applied
   sparingly - service cards (as a section), the flagship case study,
   the recommended pricing card, and CTA callouts - rather than on every
   card, so it reads as a deliberate signature rather than default
   decoration. Content is fully visible without this rule ever matching
   (the base declaration below has no hidden state), so no JS, reduced
   motion or a failed reveal never hides anything - only the draw-in
   below is progressive enhancement. */
.service-card,
.project-card--flagship,
.pricing-card--featured,
.pricing-callout {
    position: relative;
}

.service-card::before,
.project-card--flagship::before,
.pricing-card--featured::before,
.pricing-callout::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--color-highlight);
    border-left: 2px solid var(--color-highlight);
    opacity: 0.6;
    pointer-events: none;
}

/* Draw-in on reveal: reuses each element's own existing reveal trigger
   (either its own .reveal/.is-visible, or its .reveal-stagger parent's)
   rather than introducing a separate observer target. Animates
   transform/opacity only (never width/height) so it stays compositor-
   only and never triggers layout. */
@media (prefers-reduced-motion: no-preference) {
    .js-anim .service-card::before,
    .js-anim .project-card--flagship::before,
    .js-anim .pricing-card--featured::before,
    .js-anim .pricing-callout::before {
        opacity: 0;
        transform: scale(0);
        transform-origin: top left;
        transition: transform 320ms ease-out, opacity 200ms ease-out;
    }

    .js-anim .services-grid.reveal-stagger.is-visible > .service-card::before,
    .js-anim .project-card--flagship.is-visible::before,
    .js-anim .pricing-grid.reveal-stagger.is-visible > .pricing-card--featured::before,
    .js-anim .pricing-callout.is-visible::before {
        opacity: 0.6;
        transform: scale(1);
    }
}

.service-card:hover::before,
.project-card--flagship:hover::before,
.pricing-card--featured:hover::before,
.pricing-callout:hover::before {
    opacity: 1;
}

/* Honest placeholder for a CTA that isn't wired up to a real destination
   yet (e.g. no confirmed contact email). Styled to look deliberate rather
   than broken, but visually distinct from an actionable button - dashed
   border, muted text, no hover lift - and not a link, so it can't be
   clicked through to a dead address. */
.button--placeholder {
    border: 1px dashed var(--color-border);
    color: var(--color-text-muted);
    cursor: default;
}

.button--placeholder:hover {
    transform: none;
}

@media (max-width: 950px) {
    .section-heading {
        display: block;
    }

    .section-heading__description {
        margin-top: 24px;
    }
}

/* =========================================================
   SCROLL REVEAL
   Generic once-only reveal system driven by animations.js.
   .reveal fades/rises a single element in; .reveal-stagger fades/rises
   its direct children in with a staggered delay. Both only take effect
   once JavaScript has added .js-anim to <html> and the .is-visible
   class to the element itself, so content is always visible by default
   (no JS, or a script failure, simply leaves everything as normal,
   static HTML/CSS). Also gated behind prefers-reduced-motion so
   motion-sensitive visitors never see the hidden state at all.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
    .js-anim .reveal {
        opacity: 0;
        transform: translate(6px, 18px);
        transition: opacity 500ms ease-out, transform 500ms ease-out;
    }

    .js-anim .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

    .js-anim .reveal-stagger > * {
        opacity: 0;
        transform: translate(6px, 18px);
        transition: opacity 450ms ease-out, transform 450ms ease-out;
    }

    .js-anim .reveal-stagger.is-visible > * {
        opacity: 1;
        transform: none;
    }

    .js-anim .reveal-stagger.is-visible > *:nth-child(1) {
        transition-delay: 0ms;
    }

    .js-anim .reveal-stagger.is-visible > *:nth-child(2) {
        transition-delay: 90ms;
    }

    .js-anim .reveal-stagger.is-visible > *:nth-child(3) {
        transition-delay: 180ms;
    }

    .js-anim .reveal-stagger.is-visible > *:nth-child(4) {
        transition-delay: 270ms;
    }

    .js-anim .reveal-stagger.is-visible > *:nth-child(5) {
        transition-delay: 360ms;
    }

    .js-anim .reveal-stagger.is-visible > *:nth-child(6) {
        transition-delay: 450ms;
    }

    .js-anim .reveal-stagger.is-visible > *:nth-child(7) {
        transition-delay: 540ms;
    }
}

/* =========================================================
   SITE HEADER & NAVIGATION
   Includes the accessible mobile menu toggle.
   ========================================================= */
.site-header {
    position: relative;
    z-index: 20;
    padding-block: 24px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-logo__mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.site-logo__santa-hat {
    position: absolute;
    top: -13px;
    left: -6px;
    z-index: 2;
    display: none;
    width: 31px;
    height: 23px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
    transform: rotate(-7deg);
    transform-origin: bottom left;
    pointer-events: none;
}

body[data-season="christmas"] .site-logo__santa-hat {
    display: block;
}

/* A single signal pulse on logo hover/focus. It never loops and uses no
   layout-affecting properties, so the brand feels responsive rather than
   busy. */
@keyframes nightframe-logo-signal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.55);
    }

    35% {
        opacity: 0.65;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.45);
    }
}

.site-logo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 11px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-highlight);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .site-logo:hover::before,
    .site-logo:focus-visible::before {
        animation: nightframe-logo-signal 720ms ease-out both;
    }
}

.site-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 24px;
}

.site-navigation a,
.site-logo {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-navigation a:hover,
.site-logo:hover {
    color: var(--color-accent);
}

/* Active nav state: the current page (Pricing, set server-side in
   header.php) or, on the homepage, the section currently in view
   (set by the scroll-spy in navigation.js). Progressive enhancement -
   nav links work identically without it. The underline is purely
   decorative and absolutely positioned, so it never shifts layout or
   causes text to jump when it fades in. */
.site-navigation a {
    position: relative;
}

.site-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--color-accent);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 200ms ease, transform 200ms ease;
}

.site-navigation a[aria-current] {
    color: var(--color-accent);
}

.site-navigation a[aria-current]::after {
    opacity: 1;
    transform: scaleX(1);
}

.menu-toggle {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Invisible hit-area expansion: keeps the visible 40x40 button exactly as
   designed while extending the actual tap target to the 44x44 touch-comfort
   guideline (WCAG 2.2 AA's own minimum is 24x24, already met without this). */
.menu-toggle::before {
    content: "";
    position: absolute;
    inset: -2px;
}

.menu-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 180ms ease, opacity 180ms ease;
}

@media (max-width: 700px) {
    .site-header {
        padding-block: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 16px 20px 24px;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation a {
        padding: 8px 0;
    }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 64vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    overflow: clip;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
}

.hero__eyebrow {
    color: var(--color-accent);
    font-weight: 700;
}

.hero h1 {
    max-width: 620px;
    margin-block: 20px;
    font-size: clamp(2.75rem, 5.2vw, 4.75rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero__description {
    max-width: 560px;
    margin-bottom: 32px;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero__status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.16);
}

/* Gentle ambient pulse, independent of the JS reveal system so it still
   works with JavaScript disabled. Disabled under reduced motion. */
@keyframes status-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.16);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(var(--color-accent-rgb), 0.08);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__status-dot {
        animation: status-pulse 2600ms ease-in-out infinite;
    }
}

/* Nightframe hero artwork: a connected web passing behind a dark-glass
   lens. Decorative only; the SVG wrapper is hidden from assistive tech. */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.hero__visual-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.22), transparent 70%);
    filter: blur(40px);
}

/* The site's one ambient "breathing" glow - slow and low-amplitude
   enough to be barely noticeable, opacity/transform only (cheap,
   compositor-only), and disabled outright under reduced motion via the
   media query rather than just slowed down. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes ambient-glow-breathe {
        0%,
        100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.85;
            transform: scale(1.05);
        }
    }

    .hero__visual-glow {
        animation: ambient-glow-breathe 10s ease-in-out infinite;
    }
}

.hero__visual-svg {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero__visual--nightframe {
    flex-direction: column;
    isolation: isolate;
}

.nightframe-web {
    z-index: 2;
    overflow: hidden;
    filter: drop-shadow(0 24px 54px rgba(0, 0, 0, 0.5));
}

.nightframe-web__mesh {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: 0.32;
}

.nightframe-web__mesh path {
    vector-effect: non-scaling-stroke;
}

.nightframe-web__nodes {
    fill: #b89aff;
}

.nightframe-web__lens {
    transform-origin: 264px 232px;
}

.nightframe-web__monogram {
    filter: drop-shadow(0 0 12px rgba(var(--color-accent-rgb), 0.34));
}

.nightframe-web__signal {
    opacity: 0.34;
    transform-origin: 264px 232px;
}

.hero__visual-caption {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -12px 0 0;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__visual-caption::before {
    content: "";
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-highlight));
}

.hero__visual-caption span {
    color: var(--color-highlight);
}

/* Seasonal concept layers. Nightframe is always the underlying identity;
   each mode adds a small atmospheric layer rather than replacing the brand. */
.season-scene {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    border-radius: 30%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 380ms ease, visibility 380ms ease;
}

body[data-season="halloween"] .season-scene--halloween,
body[data-season="christmas"] .season-scene--christmas,
body[data-season="easter"] .season-scene--easter {
    opacity: 1;
    visibility: visible;
}

body[data-season="easter"] .hero__visual-glow {
    background: radial-gradient(circle, rgba(190, 156, 255, 0.25), rgba(143, 207, 192, 0.1) 45%, transparent 72%);
}

body[data-season="easter"] .nightframe-web__nodes {
    fill: #efb4d6;
}

body[data-season="easter"] .hero__visual-caption span {
    color: #cdb8ff;
}

.easter-sun {
    position: absolute;
    top: 10%;
    right: 11%;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fff7d9, #ffdca0 64%, #eabf83);
    box-shadow: 0 0 32px rgba(255, 222, 168, 0.26);
    opacity: 0.76;
}

.easter-bunny {
    position: absolute;
    right: 7%;
    bottom: 0;
    width: 72px;
    opacity: 0.88;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

.easter-eggs {
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 154px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.38));
}

.easter-petals span {
    position: absolute;
    top: -5%;
    width: 7px;
    height: 11px;
    border-radius: 80% 20% 70% 30%;
    background: #efb4d6;
    opacity: 0.7;
}

.easter-petals span:nth-child(1) { left: 12%; }
.easter-petals span:nth-child(2) { left: 27%; background: #cbb2ff; }
.easter-petals span:nth-child(3) { left: 43%; }
.easter-petals span:nth-child(4) { left: 59%; background: #9bd6c8; }
.easter-petals span:nth-child(5) { left: 74%; }
.easter-petals span:nth-child(6) { left: 90%; background: #cbb2ff; }

body[data-season="halloween"] .hero__visual-glow {
    background: radial-gradient(circle, rgba(126, 74, 255, 0.26), rgba(255, 118, 36, 0.08) 45%, transparent 72%);
}

body[data-season="halloween"] .nightframe-web__nodes {
    fill: #ff9d4d;
}

body[data-season="halloween"] .hero__visual-caption span {
    color: #ffad62;
}

.halloween-moon {
    position: absolute;
    top: 9%;
    right: 10%;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #ffe4b8, #ff9b48 58%, #b74835 100%);
    box-shadow: 0 0 34px rgba(255, 142, 69, 0.32);
    opacity: 0.82;
}

.halloween-moon::before,
.halloween-moon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(83, 43, 64, 0.15);
}

.halloween-moon::before {
    width: 18px;
    height: 18px;
    top: 24px;
    left: 20px;
}

.halloween-moon::after {
    width: 11px;
    height: 11px;
    right: 22px;
    bottom: 28px;
}

.halloween-bat {
    position: absolute;
    width: 42px;
    fill: #100b18;
    stroke: rgba(190, 151, 255, 0.62);
    stroke-width: 0.8;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}

.halloween-bat--one { top: 22%; left: 7%; }
.halloween-bat--two { top: 13%; left: 31%; width: 28px; opacity: 0.75; }
.halloween-bat--three { top: 36%; right: 2%; width: 23px; opacity: 0.68; }

.halloween-mist {
    position: absolute;
    left: -15%;
    bottom: 4%;
    width: 92%;
    height: 72px;
    border-radius: 50%;
    background: rgba(196, 173, 255, 0.1);
    filter: blur(22px);
}

.halloween-mist--two {
    left: 28%;
    bottom: 0;
    opacity: 0.7;
}

.halloween-pumpkins {
    position: absolute;
    left: 2%;
    bottom: 1%;
    width: 132px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 10px rgba(255, 118, 36, 0.18));
}

.halloween-frankenstein {
    position: absolute;
    right: 11%;
    bottom: 0;
    width: 70px;
    opacity: 0.9;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.45));
}

body[data-season="christmas"] .hero__visual-glow {
    background: radial-gradient(circle, rgba(128, 93, 255, 0.24), rgba(224, 244, 255, 0.09) 46%, transparent 72%);
}

body[data-season="christmas"] .nightframe-web__nodes {
    fill: #eaf8ff;
}

body[data-season="christmas"] .hero__visual-caption span {
    color: #dff7ff;
}

.christmas-lights {
    position: absolute;
    top: 10%;
    left: 8%;
    right: 8%;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(224, 244, 255, 0.22);
}

.christmas-lights span {
    width: 7px;
    height: 10px;
    margin-top: -1px;
    border-radius: 2px 2px 5px 5px;
    background: #dff7ff;
    box-shadow: 0 0 10px #b9ecff, 0 0 18px rgba(164, 123, 255, 0.5);
}

.christmas-lights span:nth-child(even) {
    background: #ae8aff;
    box-shadow: 0 0 10px #ae8aff, 0 0 18px rgba(174, 138, 255, 0.45);
}

.christmas-star {
    position: absolute;
    top: 14%;
    right: 15%;
    color: #f4fbff;
    font-size: 2.2rem;
    text-shadow: 0 0 12px #d7f4ff, 0 0 26px rgba(164, 123, 255, 0.65);
}

.christmas-tree {
    position: absolute;
    left: 1%;
    bottom: -12px;
    width: 126px;
    opacity: 0.9;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.48));
}

.christmas-tree__baubles {
    fill: #e8f8ff;
    filter: drop-shadow(0 0 5px #c9efff);
}

.christmas-tree__baubles circle:nth-child(even) {
    fill: #b695ff;
    filter: drop-shadow(0 0 5px #b695ff);
}

.christmas-tree__star {
    fill: #f4fbff;
    filter: drop-shadow(0 0 6px #d7f4ff);
}

.christmas-santa {
    position: absolute;
    left: 35%;
    bottom: 2%;
    width: 96px;
    opacity: 0.94;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(199, 157, 255, 0.14));
}

.christmas-snow span {
    position: absolute;
    top: -8%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f5fbff;
    box-shadow: 0 0 8px rgba(213, 242, 255, 0.7);
    opacity: 0.78;
}

.christmas-snow span:nth-child(1) { left: 8%; }
.christmas-snow span:nth-child(2) { left: 16%; width: 3px; height: 3px; }
.christmas-snow span:nth-child(3) { left: 25%; }
.christmas-snow span:nth-child(4) { left: 35%; width: 4px; height: 4px; }
.christmas-snow span:nth-child(5) { left: 44%; }
.christmas-snow span:nth-child(6) { left: 53%; width: 3px; height: 3px; }
.christmas-snow span:nth-child(7) { left: 61%; }
.christmas-snow span:nth-child(8) { left: 69%; width: 4px; height: 4px; }
.christmas-snow span:nth-child(9) { left: 76%; }
.christmas-snow span:nth-child(10) { left: 83%; width: 3px; height: 3px; }
.christmas-snow span:nth-child(11) { left: 90%; }
.christmas-snow span:nth-child(12) { left: 96%; width: 4px; height: 4px; }

@keyframes halloween-bat-drift {
    0%, 100% { transform: translate(0, 0) rotate(-3deg); }
    50% { transform: translate(12px, -7px) rotate(4deg); }
}

@keyframes easter-petal-fall {
    0% { transform: translate3d(0, -12px, 0) rotate(0); opacity: 0; }
    12% { opacity: 0.75; }
    100% { transform: translate3d(20px, 430px, 0) rotate(280deg); opacity: 0; }
}

@keyframes easter-bunny-peek {
    0%, 100% { transform: translateY(13px); }
    50% { transform: translateY(1px); }
}

@keyframes easter-egg-glow {
    0%, 100% { filter: brightness(0.94); transform: translateY(0); }
    50% { filter: brightness(1.06); transform: translateY(-2px); }
}

@keyframes santa-hat-wiggle {
    0%, 100% { transform: rotate(-7deg); }
    50% { transform: rotate(-2deg); }
}

@keyframes halloween-mist-drift {
    0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.65; }
    50% { transform: translateX(12%) scaleX(1.08); opacity: 0.9; }
}

@keyframes halloween-pumpkin-glow {
    0%, 100% { transform: translateY(0); filter: brightness(0.92); }
    50% { transform: translateY(-3px); filter: brightness(1.08); }
}

@keyframes halloween-frankenstein-peek {
    0%, 100% { transform: translateY(13px) rotate(1deg); }
    50% { transform: translateY(1px) rotate(-2deg); }
}

@keyframes christmas-snow-fall {
    0% { transform: translate3d(0, -10px, 0); opacity: 0; }
    12% { opacity: 0.82; }
    100% { transform: translate3d(14px, 440px, 0); opacity: 0; }
}

@keyframes christmas-light-twinkle {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes christmas-tree-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    body[data-season="easter"] .easter-petals span {
        animation: easter-petal-fall 6.4s linear infinite;
    }

    body[data-season="easter"] .easter-petals span:nth-child(2) { animation-delay: -2s; animation-duration: 7.3s; }
    body[data-season="easter"] .easter-petals span:nth-child(3) { animation-delay: -4s; }
    body[data-season="easter"] .easter-petals span:nth-child(4) { animation-delay: -1s; animation-duration: 7.8s; }
    body[data-season="easter"] .easter-petals span:nth-child(5) { animation-delay: -3.2s; }
    body[data-season="easter"] .easter-petals span:nth-child(6) { animation-delay: -5s; animation-duration: 7s; }

    body[data-season="easter"] .easter-bunny {
        animation: easter-bunny-peek 4.6s ease-in-out infinite;
    }

    body[data-season="easter"] .easter-eggs {
        animation: easter-egg-glow 3.8s ease-in-out infinite;
    }

    body[data-season="christmas"] .site-logo__santa-hat {
        animation: santa-hat-wiggle 3.2s ease-in-out infinite;
    }

    body[data-season="halloween"] .halloween-bat {
        animation: halloween-bat-drift 4.8s ease-in-out infinite;
    }

    body[data-season="halloween"] .halloween-bat--two { animation-delay: -1.5s; }
    body[data-season="halloween"] .halloween-bat--three { animation-delay: -2.7s; }

    body[data-season="halloween"] .halloween-mist {
        animation: halloween-mist-drift 8s ease-in-out infinite;
    }

    body[data-season="halloween"] .halloween-mist--two { animation-delay: -4s; }

    body[data-season="halloween"] .halloween-pumpkins {
        animation: halloween-pumpkin-glow 3.8s ease-in-out infinite;
    }

    body[data-season="halloween"] .halloween-frankenstein {
        animation: halloween-frankenstein-peek 5.2s ease-in-out infinite;
    }

    body[data-season="christmas"] .christmas-snow span {
        animation: christmas-snow-fall 5.8s linear infinite;
    }

    body[data-season="christmas"] .christmas-snow span:nth-child(2n) { animation-duration: 7.2s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(3n) { animation-duration: 4.9s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(2) { animation-delay: -2s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(3) { animation-delay: -4s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(4) { animation-delay: -1s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(5) { animation-delay: -3s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(6) { animation-delay: -5s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(7) { animation-delay: -2.5s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(8) { animation-delay: -4.5s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(9) { animation-delay: -1.5s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(10) { animation-delay: -3.5s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(11) { animation-delay: -5.5s; }
    body[data-season="christmas"] .christmas-snow span:nth-child(12) { animation-delay: -.5s; }

    body[data-season="christmas"] .christmas-lights span {
        animation: christmas-light-twinkle 2.4s ease-in-out infinite;
    }

    body[data-season="christmas"] .christmas-lights span:nth-child(even) { animation-delay: -1.2s; }

    body[data-season="christmas"] .christmas-tree__baubles,
    body[data-season="christmas"] .christmas-tree__star {
        animation: christmas-tree-glow 2.2s ease-in-out infinite;
    }

    body[data-season="christmas"] .christmas-santa {
        animation: christmas-tree-glow 3s ease-in-out infinite;
    }
}

@media (max-width: 700px) {
    .season-scene {
        border-radius: 20%;
    }

    .halloween-pumpkins,
    .christmas-tree,
    .easter-eggs {
        width: 96px;
    }

    .halloween-frankenstein,
    .christmas-santa {
        width: 64px;
    }

    .easter-bunny {
        width: 58px;
    }
}

/* Page-load entrance: a short, once-only staggered reveal of the hero
   content and visual. Scoped to .js-anim (added by animations.js) so the
   hero is fully visible immediately with no JS, and to
   prefers-reduced-motion: no-preference so motion-sensitive users get the
   final state straight away. */
@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-glass-reveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.94);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes nightframe-line-draw {
    from {
        stroke-dashoffset: 920;
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes nightframe-node-in {
    from {
        opacity: 0;
        transform: scale(0.25);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nightframe-lens-in {
    from {
        opacity: 0;
        transform: scale(0.76) rotate(-7deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes nightframe-signal-out {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    45% {
        opacity: 0.62;
    }

    100% {
        opacity: 0.16;
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .js-anim .hero__eyebrow,
    .js-anim .hero h1,
    .js-anim .hero__description,
    .js-anim .hero .hero__actions,
    .js-anim .hero__status {
        animation: hero-reveal 550ms ease-out both;
    }

    .js-anim .hero__eyebrow {
        animation-delay: 0ms;
    }

    .js-anim .hero h1 {
        animation-delay: 90ms;
    }

    .js-anim .hero__description {
        animation-delay: 180ms;
    }

    .js-anim .hero .hero__actions {
        animation-delay: 270ms;
    }

    .js-anim .hero__status {
        animation-delay: 340ms;
    }

    .js-anim .hero__visual {
        animation: hero-glass-reveal 720ms cubic-bezier(.2, .75, .25, 1) 120ms both;
    }

    .js-anim .nightframe-web__mesh path {
        stroke-dasharray: 920;
        stroke-dashoffset: 920;
        animation: nightframe-line-draw 1250ms cubic-bezier(.2, .7, .2, 1) 280ms both;
    }

    .js-anim .nightframe-web__nodes circle {
        transform-box: fill-box;
        transform-origin: center;
        animation: nightframe-node-in 380ms ease-out both;
    }

    .js-anim .nightframe-web__nodes circle:nth-child(1) { animation-delay: 520ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(2) { animation-delay: 590ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(3) { animation-delay: 660ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(4) { animation-delay: 730ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(5) { animation-delay: 800ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(6) { animation-delay: 870ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(7) { animation-delay: 940ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(8) { animation-delay: 1010ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(9) { animation-delay: 1080ms; }
    .js-anim .nightframe-web__nodes circle:nth-child(10) { animation-delay: 1150ms; }

    .js-anim .nightframe-web__lens,
    .js-anim .nightframe-web__monogram {
        animation: nightframe-lens-in 760ms cubic-bezier(.16, .8, .25, 1) 420ms both;
        transform-origin: 264px 232px;
    }

    .js-anim .nightframe-web__monogram {
        animation-delay: 620ms;
    }

    .js-anim .nightframe-web__signal {
        animation: nightframe-signal-out 1100ms ease-out 820ms both;
    }
}

@media (max-width: 950px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero h1,
    .hero__description {
        max-width: none;
    }

    .hero__visual {
        min-height: 220px;
        order: 2;
    }

    .hero__visual-svg {
        max-width: 320px;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 58vh;
    }
}

@media (max-width: 480px) {
    .hero__visual {
        min-height: 180px;
    }

    .hero__visual-glow {
        display: none;
    }

    .hero__visual-svg {
        max-width: 220px;
    }

    .hero__visual-caption {
        margin-top: -4px;
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }
}

/* =========================================================
   SERVICES
   Four cards outlining problems/services on the front page.
   ========================================================= */
.services {
    padding-block: var(--section-space);
    background: var(--color-bg-alt);
}

.services h2 {
    max-width: 800px;
    margin-block: 0 24px;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 52px;
}

.service-card {
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    background-image: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.055) 48%, transparent 62%);
    background-position: 100% 0;
    background-size: 250% 100%;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-position 720ms ease;
}

/* The generic .reveal-stagger transition (see SCROLL REVEAL) would
   otherwise replace this transition list wholesale and silently drop
   the border-color hover transition. Re-declare it here with opacity
   folded in so both the reveal and the existing hover state keep
   working exactly as before. */
@media (prefers-reduced-motion: no-preference) {
    .js-anim .services-grid.reveal-stagger > .service-card {
        transition: opacity 260ms ease-out, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-position 720ms ease;
    }
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-4px);
        border-color: var(--color-accent);
        box-shadow: 0 16px 32px -20px rgba(var(--color-accent-rgb), 0.4);
        background-position: -100% 0;
    }
}

.service-card__number {
    display: inline-block;
    margin-bottom: 40px;
    /* accent-strong for AA contrast against --color-surface - see the
       .section-eyebrow comment above for the numbers. */
    color: var(--color-accent-strong);
    font-family: var(--font-mono);
    font-weight: 700;
}

.service-card h3 {
    margin-block: 0 16px;
    font-size: 1.6rem;
}

.service-card p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 700px) {
    .services {
        padding-block: var(--section-space-sm);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FEATURED PROJECT (WORK)
   Case-study style card, e.g. the RandR project.
   ========================================================= */
.work {
    padding-block: var(--section-space);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        border-color: var(--color-accent);
        box-shadow: 0 16px 32px -20px rgba(var(--color-accent-rgb), 0.4);
    }
}

.project-card__visual {
    min-height: 480px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1c2630, #172b20);
    color: var(--color-accent);
    font-weight: 700;
}

/* Ready for a real screenshot: an <img> dropped into
   .project-card__visual will fill and crop automatically. An <a> wrapping
   the image (e.g. Reality Music, linked to the live site) - or a bare
   <picture> for the webp/png pairs (e.g. Reality NOC) - is stretched to
   fill the same space so the image sizing rule below still applies. */
.project-card__visual a,
.project-card__visual picture {
    display: block;
    width: 100%;
    height: 100%;
}

.project-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reality NOC's screenshot is a wide dashboard capture (left nav, header,
   status card) - favour the top-left of the image when object-fit crops
   it down for a card, rather than the default centred crop, so the nav
   and headline status stay visible instead of the quieter right-hand
   metric cards. */
.project-card__visual--reality-noc img {
    object-position: left top;
}

/* Case-study imagery resolves as if viewed through focusing glass. The
   base state is always sharp, so no-JS and reduced-motion visitors receive
   the finished image immediately. */
@media (prefers-reduced-motion: no-preference) {
    .js-anim .project-card.reveal .project-card__visual img,
    .js-anim .project-card.reveal .project-compare__frame img {
        transition: opacity 700ms ease, filter 800ms ease, transform 900ms cubic-bezier(.2, .7, .2, 1);
    }

    .js-anim .project-card.reveal:not(.is-visible) .project-card__visual img,
    .js-anim .project-card.reveal:not(.is-visible) .project-compare__frame img {
        opacity: 0.58;
        filter: blur(6px) saturate(0.72);
        transform: scale(1.025);
    }

    .js-anim .project-card.reveal.is-visible .project-card__visual img,
    .js-anim .project-card.reveal.is-visible .project-compare__frame img {
        opacity: 1;
        filter: blur(0) saturate(1);
        transform: scale(1);
    }
}

.project-card__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card__type {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    /* accent-strong for AA contrast against --color-surface - see the
       .section-eyebrow comment near the top of this file for the numbers. */
    color: var(--color-accent-strong);
    font-weight: 700;
}

.project-status {
    padding: 3px 10px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-card__content h3 {
    margin: 0;
    font-size: 1.8rem;
}

.project-card__description {
    margin: 0;
    max-width: 620px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Before/redesign and current/previous two-panel comparisons.
   Same 8:5 frame ratio as the 1440x900 screenshots, so a placeholder
   and its eventual replacement image occupy exactly the same space. */
.project-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
}

.project-compare__panel {
    background: var(--color-surface);
}

.project-compare__label {
    margin: 0;
    padding: 16px 20px 0;
    /* accent-strong for AA contrast against --color-surface - see the
       .section-eyebrow comment above for the numbers. */
    color: var(--color-accent-strong);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-compare__frame {
    aspect-ratio: 8 / 5;
    overflow: hidden;
    margin-top: 12px;
}

.project-compare__frame a,
.project-compare__frame img {
    display: block;
    width: 100%;
    height: 100%;
}

.project-compare__frame img {
    object-fit: cover;
}

/* Intentional "coming soon" state for a not-yet-supplied screenshot,
   styled to match .project-card__visual rather than showing a broken
   image icon. Swap it out per the HTML comment beside each one. */
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #1c2630, #172b20);
    color: var(--color-text-muted);
    text-align: center;
}

.project-placeholder__icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.project-placeholder__label {
    max-width: 22ch;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Dashboard-style placeholder graphic for Reality NOC: a
   deliberately-designed mockup (browser chrome + status rows + mini bar
   chart) standing in for a real screenshot, rather than a literal
   "coming soon" notice. Sits directly in the standard
   .project-card__visual panel like the Reality Music screenshot does. */
.project-dashboard {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px;
}

.project-dashboard__svg {
    width: 100%;
    max-width: 320px;
    color: var(--color-text-muted);
}

.project-dashboard__dot {
    fill: var(--color-accent);
    transform-box: fill-box;
    transform-origin: center;
}

/* One-shot status-light pulse when the mockup first scrolls into view -
   purely decorative, plays exactly once (driven by the same .is-visible
   the reveal system only ever adds, never re-adds), not a loop and not
   intended to suggest genuinely live data. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes dashboard-dot-pulse {
        0% {
            opacity: 0;
            transform: scale(0.4);
        }

        60% {
            opacity: 1;
            transform: scale(1.2);
        }

        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    .js-anim .project-card.is-visible .project-dashboard__dot {
        animation: dashboard-dot-pulse 480ms ease-out both;
    }
}

.project-dashboard__pill {
    fill: var(--color-accent);
    fill-opacity: 0.25;
}

.project-dashboard__bar {
    fill: var(--color-accent);
    fill-opacity: 0.55;
}

.project-dashboard__label {
    max-width: 26ch;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 700px) {
    .project-dashboard {
        padding: 20px;
        gap: 12px;
    }

    .project-dashboard__svg {
        max-width: 220px;
    }
}

@media (max-width: 700px) {
    .work {
        padding-block: var(--section-space-sm);
    }

    .project-card__visual {
        min-height: 240px;
    }

    .project-card__content {
        padding: 28px;
    }

    /* Stack Before above Redesign (and Current above Previous version)
       on mobile - source order already puts Before/Current first. */
    .project-compare {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PROCESS
   Numbered steps describing how projects are delivered.
   ========================================================= */
.process {
    padding-block: var(--section-space);
    background: var(--color-bg-alt);
}

.process-list {
    display: flex;
    gap: 32px;
    margin: 72px 0 0;
    padding: 0;
    list-style: none;
}

.process-step {
    position: relative;
    flex: 1;
    min-width: 0;
    padding-top: 64px;
    text-align: center;
}

/* Connecting line between markers: drawn from the trailing edge of one
   marker to the leading edge of the next, so it works for any number of
   equal-width flex columns without hard-coding percentages. */
.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    left: calc(50% + 24px);
    width: calc(100% - 16px);
    height: 2px;
    background: var(--color-border);
}

.process-step__marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    background: var(--color-bg-alt);
}

.process-step__number {
    /* accent-strong for AA contrast against --color-bg-alt - see the
       .section-eyebrow comment near the top of this file for the numbers. */
    color: var(--color-accent-strong);
    font-family: var(--font-mono);
    font-weight: 700;
}

.process-step h3 {
    margin-block: 0 12px;
    font-size: 1.4rem;
}

.process-step p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 950px) {
    .process-list {
        flex-direction: column;
        gap: 40px;
    }

    .process-step {
        flex: initial;
        padding-top: 0;
        padding-left: 64px;
        text-align: left;
    }

    .process-step__marker {
        top: 0;
        left: 0;
        transform: none;
    }

    /* Vertical connector: spans this step's remaining height plus the
       gap to the next marker, so it always meets the next step exactly. */
    .process-step:not(:last-child)::after {
        top: 48px;
        left: 23px;
        width: 2px;
        height: calc(100% - 8px);
    }
}

@media (max-width: 700px) {
    .process {
        padding-block: var(--section-space-sm);
    }
}

/* Process reveal: the connector line draws in first, then each stage
   fades/rises in behind it. Layered on top of the .reveal-stagger system
   above (same .js-anim + reduced-motion gating), so with no JS or under
   reduced motion the timeline stays exactly as drawn by the base process
   rules above - fully visible and understandable either way. */
@media (prefers-reduced-motion: no-preference) {
    .js-anim .process-step::after {
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 400ms ease-out;
    }

    .js-anim .process-list.is-visible .process-step::after {
        transform: scaleX(1);
    }

    .js-anim .process-list.is-visible .process-step:nth-child(1)::after {
        transition-delay: 0ms;
    }

    .js-anim .process-list.is-visible .process-step:nth-child(2)::after {
        transition-delay: 150ms;
    }

    .js-anim .process-list.is-visible .process-step:nth-child(3)::after {
        transition-delay: 300ms;
    }

    .js-anim .process-list.is-visible > .process-step:nth-child(1) {
        transition-delay: 150ms;
    }

    .js-anim .process-list.is-visible > .process-step:nth-child(2) {
        transition-delay: 320ms;
    }

    .js-anim .process-list.is-visible > .process-step:nth-child(3) {
        transition-delay: 490ms;
    }

    .js-anim .process-list.is-visible > .process-step:nth-child(4) {
        transition-delay: 660ms;
    }

    @media (max-width: 950px) {
        .js-anim .process-step::after {
            transform: scaleY(0);
            transform-origin: top;
        }

        .js-anim .process-list.is-visible .process-step::after {
            transform: scaleY(1);
        }
    }
}

/* =========================================================
   ABOUT / WHY WORK WITH ME
   Three benefit cards, styled to match .service-card.
   ========================================================= */
.about {
    padding-block: var(--section-space-tight);
}

.about h2 {
    max-width: 800px;
    margin-block: 0 24px;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
}

.benefit-card {
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

/* Same transition re-declare as .services-grid (see SERVICES) so the
   reveal-stagger opacity transition and the hover transitions coexist. */
@media (prefers-reduced-motion: no-preference) {
    .js-anim .benefits-grid.reveal-stagger > .benefit-card {
        transition: opacity 260ms ease-out, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }
}

@media (hover: hover) and (pointer: fine) {
    .benefit-card:hover {
        transform: translateY(-4px);
        border-color: var(--color-accent);
        box-shadow: 0 16px 32px -20px rgba(var(--color-accent-rgb), 0.4);
    }
}

.benefit-card__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 24px;
    color: var(--color-accent);
}

.benefit-card h3 {
    margin-block: 0 12px;
    font-size: 1.3rem;
}

.benefit-card p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 950px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .about {
        padding-block: var(--section-space-tight-sm);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   TECHNOLOGY
   Simple tag list of tools/technologies used.
   ========================================================= */
.technology {
    padding-block: var(--section-space-tight);
    background: var(--color-bg-alt);
}

.technology h2 {
    max-width: 800px;
    margin-block: 0 24px;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.technology__stack {
    margin: 32px 0 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .technology {
        padding-block: var(--section-space-tight-sm);
    }
}

/* =========================================================
   CONTACT CALL-TO-ACTION
   ========================================================= */
.contact {
    position: relative;
    padding-block: var(--section-space-tight);
    text-align: center;
    overflow: hidden;
    overflow: clip;
}

/* Subtle ambient glow behind the closing call to action - reused on both
   the homepage contact section and the pricing page's matching section. */
.contact::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08), transparent 70%);
    filter: blur(60px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.contact__inner {
    max-width: 700px;
    margin-inline: auto;
}

.contact h2 {
    margin-block: 0 24px;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.contact .section-introduction {
    margin-inline: auto;
}

.contact .hero__actions {
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 700px) {
    .contact {
        padding-block: var(--section-space-tight-sm);
    }
}

/* =========================================================
   PRICING PAGE
   Lightweight page intro, pricing/care cards, checklists, terms
   list and FAQ accordion. Reuses .container, .section-eyebrow,
   .section-heading, .section-introduction, .button and the
   .reveal / .reveal-stagger system from the homepage rather than
   introducing new typography or animation patterns.
   ========================================================= */
.page-intro {
    padding-block: 64px var(--section-space-tight);
}

/* Shared wrapper for every content section on the Pricing page
   (Packages, Every website includes, Care plans, Terms, FAQ) - same
   tight rhythm as About/Technology/Contact, alternating background
   band to match the homepage's existing striping. */
.pricing {
    padding-block: var(--section-space-tight);
}

.pricing--alt {
    background: var(--color-bg-alt);
}

@media (max-width: 700px) {
    .pricing {
        padding-block: var(--section-space-tight-sm);
    }
}

.page-intro h1 {
    max-width: 800px;
    margin-block: 16px 0;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.page-intro .section-introduction {
    margin-top: 20px;
}

/* Pricing / care cards: same visual language as .service-card and
   .benefit-card (border, radius, surface, hover lift). */
.pricing-grid,
.care-grid {
    display: grid;
    gap: 24px;
    margin-top: 52px;
}

.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
}

.care-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* A single planned package (Managed hosting and care) rather than the
   2-up comparison .care-grid was built for - same card, centred and
   width-capped instead of stretched across two equal columns. */
.care-grid--single {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}

.pricing-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    background-image: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.055) 48%, transparent 62%);
    background-position: 100% 0;
    background-size: 250% 100%;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-position 720ms ease;
}

@media (prefers-reduced-motion: no-preference) {
    .js-anim .pricing-grid.reveal-stagger > .pricing-card,
    .js-anim .care-grid.reveal-stagger > .pricing-card {
        transition: opacity 260ms ease-out, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-position 720ms ease;
    }
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card:hover {
        transform: translateY(-4px);
        border-color: var(--color-accent);
        box-shadow: 0 16px 32px -20px rgba(var(--color-accent-rgb), 0.4);
        background-position: -100% 0;
    }
}

.pricing-card--featured {
    border-color: var(--color-accent);
}

/* Subtle ambient glow behind the recommended card, echoing the hero's
   glow so the "recommended" signal isn't carried by the border alone. */
.pricing-card--featured::after {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.12), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.pricing-card__badge {
    align-self: flex-start;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.pricing-card__price {
    margin: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.6rem;
}

/* Small print inside a pricing card - e.g. what a package excludes.
   Sits below the check-list, so it inherits the card's flex gap. */
.pricing-card__note {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Bespoke Projects: a separate full-width callout, not part of the
   3-up grid, since it isn't a fixed-scope package. */
.pricing-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.pricing-callout__content {
    max-width: 620px;
}

.pricing-callout h3 {
    margin: 0;
    font-size: 1.4rem;
}

.pricing-callout__price {
    margin: 4px 0 12px;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.6rem;
}

.pricing-callout p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 950px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .page-intro {
        padding-block: 48px var(--section-space-tight-sm);
    }

    .pricing-grid,
    .care-grid {
        grid-template-columns: 1fr;
    }

    .pricing-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Checkmark list: reused for package features and the "Every
   website includes" summary. Nested inside a .pricing-card it sits
   flush (no top margin, spacing comes from the card's own gap);
   used standalone it gets .check-list--section for the usual
   section-heading gap. */
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list--section {
    margin-top: 52px;
}

.check-list li {
    padding-left: 28px;
    position: relative;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    /* accent-strong for AA contrast against --color-surface - see the
       .section-eyebrow comment near the top of this file for the numbers. */
    color: var(--color-accent-strong);
    font-weight: 700;
}

/* Terms summary: policy points rather than included features, so a
   plain accent dash instead of a checkmark keeps the two lists from
   reading as the same kind of content. */
.terms-list {
    margin: 52px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.terms-list li {
    padding-left: 20px;
    position: relative;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.terms-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 2px;
    background: var(--color-accent);
}

.care-note {
    max-width: 700px;
    margin: 28px 0 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* FAQ: native <details>/<summary>, so questions open and close
   without any JavaScript and with no custom transition to conflict
   with reduced-motion. */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 52px;
}

.faq-item {
    padding: 24px 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.faq-item summary {
    margin: -4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    margin-left: 12px;
    /* accent-strong for AA contrast against --color-surface at this glyph's
       size (1.05rem/700, under the "large text" threshold) - see the
       .section-eyebrow comment near the top of this file for the numbers. */
    color: var(--color-accent-strong);
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    margin: 16px 0 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

@media (max-width: 700px) {
    .pricing-card,
    .pricing-callout,
    .faq-item {
        padding: 24px;
    }
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
    padding-block: 56px 32px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    align-items: start;
    gap: 32px 40px;
}

.site-footer__brand {
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-footer__blurb {
    max-width: 34ch;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__links a {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: var(--color-text);
    text-decoration: underline;
}

.site-footer__meta {
    text-align: right;
}

.site-footer__copyright {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.site-footer__credit {
    margin: 6px 0 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.site-footer__top {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 8px;
    /* accent-strong for AA contrast against --color-bg-alt (the footer's own
       background) - see the .section-eyebrow comment near the top of this
       file for the numbers. */
    color: var(--color-accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.site-footer__top:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .site-footer {
        padding-block: 44px 28px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__meta {
        text-align: left;
    }
}

/* =========================================================
   ABOUT: PERSONAL NOTE
   Short founder note ahead of the "why work with me" grid -
   plain paragraphs at .section-introduction width, plus a
   small signature line rather than a new heavy component.
   ========================================================= */
.about-note {
    max-width: 650px;
    margin-bottom: 52px;
}

.about-note p {
    margin: 0 0 18px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-note p:last-of-type {
    margin-bottom: 0;
}

.about-signature {
    margin-top: 20px;
    color: var(--color-text);
    font-weight: 700;
}

.about-signature span {
    display: block;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.about-grid-heading {
    max-width: 700px;
    margin: 0 0 52px;
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-form {
    max-width: 560px;
    margin: 36px auto 0;
    text-align: left;
}

.contact-form__row {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.92rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.25);
}

.contact-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form__submit {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.contact-form .button {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.form-notice {
    max-width: 560px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.form-notice--success {
    background: rgba(52, 199, 130, 0.12);
    border: 1px solid rgba(52, 199, 130, 0.35);
    color: #7fe3ae;
}

.form-notice--error {
    background: rgba(239, 92, 92, 0.1);
    border: 1px solid rgba(239, 92, 92, 0.35);
    color: #f3a3a3;
}

.contact-fallback {
    margin: 24px auto 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.contact-fallback a {
    color: var(--color-accent-strong);
}

@media (max-width: 700px) {
    .contact-form {
        margin-top: 28px;
    }
}

/* =========================================================
   STATIC PAGE / LEGAL CONTENT
   Used by page.php for the Privacy Policy and other simple
   WordPress pages that don't have a dedicated template.
   ========================================================= */
.page-content {
    padding-block: var(--section-space-tight);
}

.page-content .container {
    max-width: 780px;
}

.page-content__body h2 {
    margin: 48px 0 16px;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.page-content__body h2:first-child {
    margin-top: 0;
}

.page-content__body p,
.page-content__body li {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.page-content__body p {
    margin: 0 0 18px;
}

.page-content__body ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.page-content__body a {
    color: var(--color-accent-strong);
}

.page-content__updated {
    margin-top: 40px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .page-content {
        padding-block: var(--section-space-tight-sm);
    }
}

/* =========================================================
   404 / NOT FOUND
   ========================================================= */
.not-found {
    padding-block: var(--section-space);
    text-align: center;
}

.not-found__code {
    margin: 0 0 12px;
    color: var(--color-accent);
    font-weight: 700;
    font-family: var(--font-mono);
}

.not-found h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

.not-found p {
    max-width: 480px;
    margin: 0 auto 32px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.not-found .hero__actions {
    justify-content: center;
}
