/* /services/website-development/
 *
 * Hero: the copy beside a composed device stage (a browser and a phone)
 * showing the real client sites, cross-fading between them, with Lighthouse
 * rings for ngn.au underneath. Portfolio: one row per site, a desktop shot in
 * a browser with two phone screens overlapping it.
 *
 * The devices are drawn in CSS. Inside a device everything is sized in
 * container query units (cqw), so a frame keeps its proportions at any width
 * without a single breakpoint. Decorative layers never take pointer events. */

.page-website-development {
    --wd-ink:     #0a0e14;
    --wd-glass:   rgba(22, 27, 34, 0.78);
    --wd-hair:    rgba(255, 255, 255, 0.09);
    --wd-lh:      #0cce6b; /* Lighthouse's own "good" green */
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.wd-hero {
    position: relative;
    width: 100%;
    padding: calc(var(--nav-h) + clamp(2rem, 5vh, 3.5rem)) 5% clamp(3.5rem, 7vh, 5rem);
    overflow: hidden;
    isolation: isolate;
}
.wd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42rem 30rem at 78% 42%, rgba(var(--primary-rgb), 0.16), transparent 70%),
        radial-gradient(28rem 22rem at 92% 88%, rgba(210, 168, 255, 0.10), transparent 70%),
        radial-gradient(30rem 24rem at 8% 20%, rgba(var(--accent-rgb), 0.06), transparent 70%);
}
/* Faint engineering grid, faded out towards the edges. */
.wd-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
}

.wd-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    grid-template-areas: "copy stage" "scores stage";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}
.wd-hero-copy { grid-area: copy; padding-top: clamp(0rem, 3vh, 2rem); }
.wd-stage     { grid-area: stage; margin-top: clamp(0rem, 4vh, 2.5rem); }
.wd-scores    { grid-area: scores; }

.wd-hero .breadcrumb { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 1.6rem; }

.wd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    border: 1px solid rgba(86, 212, 221, 0.28);
    border-radius: 999px;
    background: rgba(86, 212, 221, 0.06);
    margin-bottom: 1.4rem;
}
.wd-eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
}

.wd-hero h1 {
    font-size: clamp(2.3rem, 4.1vw, 3.75rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.4rem;
    text-wrap: balance;
}
.wd-h1-amp { color: var(--text-muted); font-weight: 300; }
.wd-h1-em {
    color: var(--primary);
    background: linear-gradient(100deg, var(--primary) 10%, var(--cyan) 55%, var(--accent) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wd-sub {
    font-size: clamp(1.02rem, 1.15vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 34rem;
}
.wd-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.wd-ctas .btn { padding: 0.85rem 1.8rem; }

/* Lighthouse rings */
.wd-scores { margin-top: 2.6rem; }
.wd-rings {
    list-style: none;
    display: flex;
    gap: clamp(1rem, 2.2vw, 1.75rem);
}
.wd-rings li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    width: 4.75rem;
}
.wd-ring { position: relative; display: block; width: 56px; height: 56px; }
.wd-ring svg { display: block; transform: rotate(-90deg); }
.wd-ring circle { fill: none; stroke-width: 3.2; }
.wd-ring-bg { stroke: rgba(12, 206, 107, 0.16); fill: rgba(12, 206, 107, 0.07) !important; }
.wd-ring-fg {
    stroke: var(--wd-lh);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    animation: wd-ring 1.6s cubic-bezier(.2, .7, .2, 1) 0.2s backwards;
}
.wd-ring b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wd-lh);
    font-variant-numeric: tabular-nums;
}
@keyframes wd-ring { from { stroke-dashoffset: 100; } }
.wd-ring-label { font-size: 0.72rem; line-height: 1.3; color: var(--text-muted); }
.wd-scores-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--text-muted); }

/* ── Device stage ─────────────────────────────────────────────────────── */
.wd-devices {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 100 / 69;
}
/* Glow pooled under the devices. */
.wd-devices::before {
    content: '';
    position: absolute;
    left: 4%; right: 6%; top: 18%; bottom: 0;
    background: radial-gradient(closest-side, rgba(var(--primary-rgb), 0.28), transparent);
    filter: blur(30px);
    pointer-events: none;
}

/* Browser window */
.wd-browser {
    display: block;
    position: relative;
    border-radius: clamp(8px, 1.6cqw, 14px);
    background: #0f141b;
    border: 1px solid var(--wd-hair);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 2.5cqw 6cqw rgba(0, 0, 0, 0.55),
        0 0 8cqw rgba(var(--primary-rgb), 0.10);
    overflow: hidden;
}
.wd-devices > .wd-browser { position: absolute; top: 0; left: 0; width: 84%; }
.wd-browser-bar {
    display: flex;
    align-items: center;
    height: 5.4cqw;
    min-height: 18px;
    padding: 0 2cqw;
    background: linear-gradient(#1b222c, #151b23);
    border-bottom: 1px solid var(--wd-hair);
}
.wd-lights { display: flex; gap: 0.9cqw; flex: 0 0 auto; }
.wd-lights i { width: 1.25cqw; height: 1.25cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #ff5f57; }
.wd-lights i:nth-child(2) { background: #febc2e; }
.wd-lights i:nth-child(3) { background: #28c840; }
.wd-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8cqw;
    margin: 0 auto;
    width: 46%;
    height: 62%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #aeb7c2;
    font-size: clamp(8px, 1.65cqw, 13px);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
}
/* Padlock: a shackle and a body. */
.wd-lock {
    position: relative;
    flex: 0 0 auto;
    width: 0.62em; height: 0.5em;
    margin-top: 0.3em;
    border-radius: 0.1em;
    background: currentColor;
}
.wd-lock::before {
    content: '';
    position: absolute;
    left: 50%; bottom: 85%;
    width: 0.42em; height: 0.42em;
    transform: translateX(-50%);
    border: 0.1em solid currentColor;
    border-bottom: 0;
    border-radius: 0.25em 0.25em 0 0;
}
.wd-screen {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0b0f14;
    overflow: hidden;
}

/* Slides: the active one is in normal flow-equivalent position and fully
 * opaque from first paint; the rest fade in over it. */
.wd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.wd-slide.is-active { opacity: 1; z-index: 1; }
.wd-slide img,
.wd-screen img,
.wd-phone-view img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.wd-stage .wd-slide img { transform: scale(1.035); transition: transform 7s ease-out; }
.wd-stage .wd-slide.is-active img { transform: scale(1); }

/* ── Phone ────────────────────────────────────────────────────────────── */
.wd-phone {
    display: block;
    container-type: inline-size;
    position: absolute;
    z-index: 2;
}
.wd-phone-body {
    display: block;
    position: relative;
    padding: 4.2cqw;
    border-radius: 17cqw;
    background: linear-gradient(145deg, #4a515b 0%, #1c2027 22%, #0d1014 55%, #2b3038 100%);
    box-shadow:
        inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.10),
        inset 0 0 0 2cqw #050608,
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 8cqw 16cqw rgba(0, 0, 0, 0.55),
        0 2cqw 5cqw rgba(0, 0, 0, 0.4);
}
/* Side buttons: action + volume on the left, side button on the right. */
.wd-phone-body::before,
.wd-phone-body::after {
    content: '';
    position: absolute;
    width: 1.3cqw;
    border-radius: 1cqw;
    background: linear-gradient(90deg, #3a4049, #1a1e24);
}
.wd-phone-body::before {
    left: -1cqw;
    top: 22%;
    height: 7%;
    box-shadow: 0 13cqw 0 #23272e, 0 28cqw 0 #23272e;
}
.wd-phone-body::after { right: -1cqw; top: 30%; height: 12%; }

.wd-phone-screen {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 13cqw;
    background: var(--bar, #fff);
    color: #111;
    transition: background-color 0.9s ease, color 0.9s ease;
}
.wd-phone-screen[data-tone="dark"] { color: #fff; }
.wd-phone-view {
    display: block;
    position: relative;
    aspect-ratio: 390 / 844;
}
.wd-phone-view .wd-slide { transition-delay: 0.12s; }

/* Status bar: the band above the page, in the site's header colour. */
.wd-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 12.5cqw;
    padding: 1.6cqw 7.5cqw 0 9.5cqw;
    font-size: 4.3cqw;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background-color 0.9s ease, color 0.9s ease;
}
.wd-status-icons { display: flex; align-items: center; gap: 1.4cqw; }
.wd-sig {
    width: 4.6cqw; height: 3cqw;
    background: linear-gradient(90deg, currentColor 0 20%, transparent 20% 27%, currentColor 27% 47%, transparent 47% 54%, currentColor 54% 74%, transparent 74% 80%, currentColor 80%);
    -webkit-mask: linear-gradient(to top left, #000 50%, transparent 50%);
            mask: linear-gradient(to top left, #000 50%, transparent 50%);
}
.wd-wifi {
    width: 4.4cqw; height: 3.2cqw;
    background: currentColor;
    -webkit-mask: radial-gradient(circle at 50% 100%, #000 18%, transparent 19% 34%, #000 35% 50%, transparent 51% 66%, #000 67% 82%, transparent 83%);
            mask: radial-gradient(circle at 50% 100%, #000 18%, transparent 19% 34%, #000 35% 50%, transparent 51% 66%, #000 67% 82%, transparent 83%);
}
.wd-batt {
    position: relative;
    width: 6.4cqw; height: 3.1cqw;
    border-radius: 1cqw;
    border: 0.45cqw solid currentColor;
    opacity: 0.95;
}
.wd-batt::before { content: ''; position: absolute; inset: 0.4cqw; right: 1.2cqw; border-radius: 0.4cqw; background: currentColor; }
.wd-batt::after  { content: ''; position: absolute; right: -1.3cqw; top: 25%; width: 0.6cqw; height: 50%; border-radius: 0 1cqw 1cqw 0; background: currentColor; }

/* Dynamic-island style cut-out. */
.wd-island {
    position: absolute;
    top: 2.6cqw;
    left: 50%;
    width: 31%;
    height: 8.4cqw;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #000;
    z-index: 3;
}
.wd-island::after {
    content: '';
    position: absolute;
    right: 9%;
    top: 50%;
    width: 2.6cqw; height: 2.6cqw;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a3a5a, #0a0d14 60%);
}
/* Glass reflection across the screen. */
.wd-phone-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 32%);
    pointer-events: none;
}

.wd-phone--hero { right: 0; top: 15cqw; width: 25%; }

/* ── Floating cards ───────────────────────────────────────────────────── */
.wd-float {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    background: var(--wd-glass);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    border-radius: clamp(8px, 1.6cqw, 14px);
    box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.45);
    animation: wd-bob 7s ease-in-out infinite;
}
.wd-float--checks {
    left: -3cqw;
    bottom: 1cqw;
    padding: 1.9cqw 2.4cqw;
    font-size: clamp(9px, 1.7cqw, 13.5px);
}
.wd-float-title {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 0.7em;
}
.wd-float--checks ul { list-style: none; display: grid; gap: 0.55em; }
.wd-float--checks li { display: flex; align-items: center; gap: 0.6em; color: var(--text); white-space: nowrap; }
.wd-float--checks li::before {
    content: '';
    flex: 0 0 auto;
    width: 1.15em; height: 1.15em;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%230d1117' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 76% no-repeat,
        var(--accent);
}
.wd-float--code {
    left: 37cqw;
    bottom: 4cqw;
    display: grid;
    gap: 0.35em;
    padding: 1.7cqw 2.3cqw;
    font: 500 clamp(8px, 1.5cqw, 12.5px)/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #c9d1d9;
    animation-delay: -3.5s;
}
.wd-float--code > span:not(.c-tag) { padding-left: 1.2em; }
.c-tag { color: #7ee787; }
.c-key { color: var(--primary); }
.c-str { color: #a5d6ff; }
@keyframes wd-bob { 50% { transform: translateY(-1.1cqw); } }

/* ── Caption and site tabs ────────────────────────────────────────────── */
.wd-caption {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.6rem;
}
.wd-caption-kind {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.2rem;
}
.wd-caption-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.7rem; font-size: 1rem; }
.wd-caption-name a { color: var(--text); text-decoration: none; font-weight: 600; }
.wd-caption-name a:hover { color: var(--primary); }
.wd-caption-name a i { font-size: 0.7em; margin-left: 0.2rem; color: var(--text-muted); }
.wd-soon-dot {
    font-size: 0.68rem;
    color: var(--orange);
    border: 1px solid rgba(255, 166, 87, 0.4);
    border-radius: 999px;
    padding: 0.05rem 0.55rem;
}
.wd-soon-dot[hidden] { display: none; }

.wd-tabs { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.wd-tab {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 5.6rem;
    padding: 0.4rem 0 0.3rem;
    background: none;
    border: 0;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.74rem;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}
.wd-tab:hover, .wd-tab[aria-pressed="true"] { color: var(--text); }
.wd-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.wd-tab-track { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.wd-tab-fill { display: block; height: 100%; width: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; }
.wd-tab[aria-pressed="true"] .wd-tab-fill { transform: scaleX(1); }
/* While auto-playing, the active tab's bar is the timer: when its animation
 * ends, the script moves on. Pausing the animation pauses the carousel. */
.wd-stage.is-playing .wd-tab[aria-pressed="true"] .wd-tab-fill { animation: wd-fill var(--wd-dwell, 6s) linear forwards; }
.wd-stage.is-paused .wd-tab-fill { animation-play-state: paused !important; }
@keyframes wd-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Portfolio ────────────────────────────────────────────────────────── */
.page-website-development .work-section { padding: 6rem 5% 5rem; }
.wd-work {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    gap: clamp(4.5rem, 9vw, 8rem);
}
.wd-work-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas: "show body";
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}
.wd-work-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "body show"; }

.wd-showcase {
    grid-area: show;
    position: relative;
    display: block;
    container-type: inline-size;
    aspect-ratio: 100 / 72;
    text-decoration: none;
}
.wd-glow {
    position: absolute;
    inset: 10% 6% -2% 10%;
    background: radial-gradient(closest-side, rgba(var(--glow), 0.22), transparent);
    filter: blur(28px);
    pointer-events: none;
}
.wd-browser--work {
    position: absolute;
    left: 0;
    top: 0;
    width: 78%;
    transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
.wd-showcase .wd-phone { transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.wd-phone--inner { width: 20.5%; right: 18%; top: 15cqw; z-index: 2; }
.wd-phone--home  { width: 20.5%; right: 0;   top: 26cqw; z-index: 3; }
.wd-showcase .wd-screen img { transition: transform 0.8s ease; }
@media (hover: hover) {
    .wd-work-row:hover .wd-browser--work { transform: translateY(-1cqw); }
    .wd-work-row:hover .wd-phone--inner  { transform: translateY(-2cqw); }
    .wd-work-row:hover .wd-phone--home   { transform: translateY(-3cqw); }
}

.wd-work-body { grid-area: body; position: relative; display: flex; flex-direction: column; gap: 0.7rem; }
.wd-work-index {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--primary-rgb), 0.45);
    margin-bottom: 0.4rem;
}
.wd-work-body h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 500; color: var(--text); line-height: 1.2; }
.wd-work-text { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.wd-views { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem; }
.wd-views li {
    font-size: 0.75rem;
    color: #b1bac4;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--wd-hair);
}
.wd-views i { color: var(--cyan); margin-right: 0.3rem; font-size: 0.9em; }
.wd-work-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.8rem; }
.wd-work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.wd-work-link:hover { background: rgba(var(--primary-rgb), 0.1); border-color: var(--primary); }
.wd-work-link i { font-size: 0.75em; }
.page-website-development .work-soon { align-self: center; }

/* ── Tablet and phone ─────────────────────────────────────────────────── */
@media (max-width: 999px) {
    .wd-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "copy" "stage" "scores";
        grid-template-rows: none;
    }
    .wd-hero-copy { padding-top: 0; max-width: 40rem; }
    .wd-stage { margin-top: 2.75rem; }
    .wd-scores { margin-top: 2.5rem; }
}
@media (max-width: 959px) {
    .wd-work-row,
    .wd-work-row--flip {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "show" "body";
        gap: 2rem;
    }
}
@media (max-width: 640px) {
    .wd-hero { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 3rem; }
    .wd-hero .breadcrumb { margin-bottom: 1.1rem; font-size: 0.8rem; }
    .wd-eyebrow { font-size: 0.66rem; letter-spacing: 0.16em; margin-bottom: 1.1rem; }
    .wd-hero h1 { font-size: 2.15rem; margin-bottom: 1rem; }
    .wd-sub { font-size: 1rem; line-height: 1.7; }
    .wd-ctas { margin-top: 1.5rem; gap: 0.7rem; }
    .wd-ctas .btn { flex: 1 1 0; padding: 0.8rem 1rem; font-size: 0.95rem; }
    .wd-stage { margin-top: 2.25rem; }

    .wd-devices { aspect-ratio: 100 / 78; }
    .wd-devices > .wd-browser { width: 88%; }
    .wd-phone--hero { width: 28%; top: 17cqw; }
    .wd-float--checks { display: none; }
    .wd-float--code { left: 2cqw; bottom: 0; font-size: 2.35cqw; padding: 2cqw 2.6cqw; }

    .wd-caption { flex-direction: column; align-items: stretch; gap: 1rem; padding-left: 0; margin-top: 1.1rem; }
    .wd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wd-tab { width: auto; padding: 0.5rem 0 0.6rem; }

    .wd-rings { justify-content: space-between; gap: 0.5rem; }
    .wd-rings li { width: auto; flex: 1 1 0; }

    .page-website-development .work-section { padding: 4.5rem 1.25rem 4rem; }
    .wd-showcase { aspect-ratio: 100 / 80; }
    .wd-browser--work { width: 82%; }
    .wd-phone--inner { width: 24%; right: 19%; top: 22cqw; }
    .wd-phone--home  { width: 24%; top: 28cqw; }
    .wd-work-index { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .wd-ring-fg, .wd-float { animation: none; }
    .wd-slide, .wd-status, .wd-phone-view .wd-slide { transition: none; }
    .wd-stage .wd-slide img { transform: none; transition: none; }
    .wd-browser--work, .wd-showcase .wd-phone { transition: none; }
}

/* ══ Capability micro-visuals ══════════════════════════════════════════════
 * Contents of each card's .cap-viz window (the frame itself, glass panel,
 * hairline and glow, is shared in ngn.css). Every visual is complete in its
 * base styles; animation only moves between states. Animations run only
 * while the card is on screen (.is-live, set by web-showcase.js) and not at
 * all under prefers-reduced-motion. Values shown are illustrative. */
.cv { --cv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.3; color: #c9d1d9; }
.cv span, .cv b, .cv em, .cv i, .cv s { display: block; font-style: normal; }
.cap-card:not(.is-live) .cv * { animation-name: none !important; }

/* 1. Design: a variable-weight specimen and a palette that shifts hue. */
.cv-design { display: flex; align-items: center; gap: 18px; padding: 0 18px; }
.cvd-aa {
    font-size: 54px; line-height: 1; font-weight: 300; letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--purple), var(--primary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: cvd-weight 5s ease-in-out infinite alternate;
    min-width: 76px;
}
@keyframes cvd-weight { to { font-weight: 800; } }
.cvd-side { flex: 1; display: grid; gap: 10px; }
.cvd-sw { display: flex !important; gap: 6px; animation: cvd-hue 9s linear infinite; }
.cvd-sw i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.cvd-sw i:nth-child(1) { background: #d2a8ff; }
.cvd-sw i:nth-child(2) { background: #58a6ff; }
.cvd-sw i:nth-child(3) { background: #56d4dd; }
.cvd-sw i:nth-child(4) { background: #e6edf3; }
.cvd-sw i:nth-child(5) { background: #161b22; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
@keyframes cvd-hue { to { filter: hue-rotate(360deg); } }
.cvd-spec b { font-size: 15px; font-weight: 700; color: var(--text); }
.cvd-spec em { color: var(--text-muted); font-size: 10.5px; margin-top: 2px; }

/* 2. Cross-platform: one layout reflowing phone, tablet, desktop. */
.cv-reflow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cvr-dev {
    width: 46px; height: 76px; padding: 5px;
    border: 2px solid rgba(86, 212, 221, 0.6); border-radius: 8px;
    animation: cvr-size 7.5s cubic-bezier(.6, 0, .3, 1) infinite;
    overflow: hidden;
}
@keyframes cvr-size {
    0%, 22%   { width: 46px;  height: 76px; border-radius: 8px; }
    33%, 55%  { width: 104px; height: 76px; border-radius: 7px; }
    66%, 88%  { width: 168px; height: 76px; border-radius: 4px; }
    100%      { width: 46px;  height: 76px; border-radius: 8px; }
}
.cvr-nav { height: 6px; border-radius: 2px; background: rgba(86, 212, 221, 0.55); margin-bottom: 4px; }
.cvr-grid { display: flex !important; flex-wrap: wrap; gap: 3px; }
.cvr-grid i { flex: 1 1 30px; height: 16px; border-radius: 2px; background: rgba(var(--primary-rgb), 0.35); }
.cvr-grid i:first-child { flex-basis: 100%; height: 14px; background: rgba(210, 168, 255, 0.4); }
.cvr-labels { display: flex !important; gap: 14px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.cvr-labels b { font-weight: 600; animation: cvr-label 7.5s step-end infinite; }
.cvr-labels b:nth-child(1) { color: var(--cyan); animation-name: cvr-l1; }
.cvr-labels b:nth-child(2) { animation-name: cvr-l2; }
.cvr-labels b:nth-child(3) { animation-name: cvr-l3; }
@keyframes cvr-l1 { 0% { color: var(--cyan); } 30% { color: var(--text-muted); } 96% { color: var(--cyan); } }
@keyframes cvr-l2 { 0% { color: var(--text-muted); } 30% { color: var(--cyan); } 63% { color: var(--text-muted); } }
@keyframes cvr-l3 { 0% { color: var(--text-muted); } 63% { color: var(--cyan); } 96% { color: var(--text-muted); } }

/* 3. Speed: a gauge settling in the green, with the three vitals. */
.cv-speed { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 16px; }
.cvs-gauge { flex: none; width: 120px; height: 70px; overflow: visible; }
.cvs-track, .cvs-arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.cvs-track { stroke: rgba(255, 255, 255, 0.08); }
.cvs-arc { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 8; animation: cvs-arc 4.5s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes cvs-arc { 0% { stroke-dashoffset: 100; } 45%, 100% { stroke-dashoffset: 8; } }
.cvs-needle { transform-origin: 60px 62px; transform: rotate(75deg); animation: cvs-needle 4.5s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes cvs-needle { 0% { transform: rotate(-90deg); } 45%, 100% { transform: rotate(75deg); } }
.cvs-needle line { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.cvs-needle circle { fill: var(--text); }
.cvs-metrics { display: grid; gap: 6px; }
.cvs-metrics span { font: 600 11.5px/1 var(--cv-mono); color: var(--accent); padding: 5px 9px; border-radius: 6px; background: rgba(var(--accent-rgb), 0.1); }
.cvs-metrics b { display: inline-block !important; width: 30px; color: var(--text-muted); font-weight: 600; }

/* 4. Technical SEO: your result climbing to the top, with rich features. */
.cv-serp { padding: 0 14px; }
.cvp-res { position: absolute; left: 14px; right: 14px; border-radius: 8px; }
.cvp-res--a, .cvp-res--b { display: flex !important; align-items: center; gap: 8px; height: 22px; padding: 0 8px; background: rgba(255,255,255,.03); }
.cvp-res--a i, .cvp-res--b i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.cvp-res--a b, .cvp-res--b b { width: 46%; height: 6px; border-radius: 3px; background: rgba(var(--primary-rgb), .3); }
.cvp-res--a em, .cvp-res--b em { width: 22%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); }
.cvp-res--a { top: 66px; animation: cvp-a 6s ease-in-out infinite; }
.cvp-res--b { top: 92px; animation: cvp-b 6s ease-in-out infinite; }
.cvp-res--you {
    top: 9px; padding: 7px 10px;
    background: rgba(var(--primary-rgb), 0.08); border: 1px solid rgba(var(--primary-rgb), 0.3);
    animation: cvp-you 6s ease-in-out infinite;
}
@keyframes cvp-you { 0%, 8% { transform: translateY(58px); opacity: .6; } 30%, 100% { transform: none; opacity: 1; } }
@keyframes cvp-a  { 0%, 8% { transform: translateY(-57px); } 30%, 100% { transform: none; } }
@keyframes cvp-b  { 0%, 100% { transform: none; } }
.cvp-url { font-size: 9.5px; color: #8b949e; }
.cvp-title { font-size: 12.5px; color: #8ab4f8; margin: 2px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvp-rich { display: flex !important; gap: 5px; }
.cvp-rich span { font-size: 9px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-muted); }
.cvp-rich span:first-child { color: var(--orange); background: none; padding-left: 0; letter-spacing: 1px; }

/* 5. AEO: an AI answer citing the site. */
.cv-aeo { padding: 8px 12px; display: grid; gap: 7px; align-content: start; }
.cva-q { justify-self: end; max-width: 85%; padding: 5px 10px; border-radius: 10px 10px 2px 10px; background: rgba(var(--primary-rgb), .16); color: var(--text); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cva-a { position: relative; padding: 6px 10px 6px; border-radius: 10px 10px 10px 2px; background: rgba(255,255,255,.04); border: 1px solid rgba(255, 166, 87, .25); }
.cva-chip { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; }
.cva-a i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); margin-top: 4px; transform-origin: left; animation: cva-type 6s ease-out infinite; }
.cva-a i:nth-of-type(1) { width: 92%; }
.cva-a i:nth-of-type(2) { width: 78%; animation-name: cva-type2; }
.cva-a i:nth-of-type(3) { width: 40%; animation-name: cva-type3; }
@keyframes cva-type  { 0% { transform: scaleX(0); } 15%, 100% { transform: scaleX(1); } }
@keyframes cva-type2 { 0%, 15% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
@keyframes cva-type3 { 0%, 30% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
.cva-cite {
    display: flex !important; align-items: center; gap: 5px; width: max-content; margin: 7px 0 0 auto;
    font-size: 9.5px; color: var(--text); padding: 2px 8px 2px 3px; border-radius: 999px;
    background: rgba(255, 166, 87, .14); border: 1px solid rgba(255, 166, 87, .4);
    animation: cva-cite 6s cubic-bezier(.2, .9, .3, 1.3) infinite;
}
.cva-n { width: 13px; height: 13px; border-radius: 50%; background: var(--orange); color: #0d1117; font-size: 8px; font-weight: 800; display: grid !important; place-items: center; }
@keyframes cva-cite { 0%, 42% { transform: scale(0); opacity: 0; } 52%, 100% { transform: none; opacity: 1; } }

/* 6. Local SEO: a pin drops on the map beside the profile card. */
.cv-local { display: flex; }
.cvl-map {
    position: relative; flex: 0 0 44%;
    background:
        linear-gradient(90deg, transparent 47%, rgba(255,255,255,.12) 47% 53%, transparent 53%) 0 0 / 46px 46px,
        linear-gradient(transparent 47%, rgba(255,255,255,.12) 47% 53%, transparent 53%) 0 0 / 46px 46px,
        linear-gradient(35deg, transparent 45%, rgba(var(--primary-rgb), .25) 45% 50%, transparent 50%),
        #12301f;
}
.cvl-pin {
    position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -26px 0 0 -11px;
    border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red);
    box-shadow: 0 4px 10px rgba(0,0,0,.4);
    animation: cvl-drop 5s cubic-bezier(.3, 1.4, .5, 1) infinite;
}
.cvl-pin::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
@keyframes cvl-drop { 0% { transform: translateY(-60px) rotate(-45deg); opacity: 0; } 14%, 100% { transform: rotate(-45deg); opacity: 1; } }
.cvl-pulse { position: absolute; left: 50%; top: 50%; width: 30px; height: 12px; margin: -2px 0 0 -15px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: cvl-pulse 5s ease-out infinite; }
@keyframes cvl-pulse { 0%, 14% { transform: scale(.3); opacity: 0; } 18% { opacity: .9; } 45%, 100% { transform: scale(2.2); opacity: 0; } }
.cvl-card { flex: 1; padding: 12px 12px 10px; display: grid; gap: 3px; align-content: center; }
.cvl-card b { font-size: 13px; color: var(--text); }
.cvl-stars { color: var(--orange); letter-spacing: 1px; font-size: 11px; }
.cvl-open { color: var(--accent); font-size: 10.5px; }
.cvl-btns { display: flex !important; gap: 5px; margin-top: 5px; }
.cvl-btns span { font-size: 9.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(var(--primary-rgb), .4); color: var(--primary); }

/* 7. Social sharing: a link preview arriving in a chat. */
.cv-share { display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; background: radial-gradient(circle at 20% 30%, rgba(86,212,221,.06), transparent 60%); }
.cvh-bubble { width: 78%; max-width: 250px; padding: 4px; border-radius: 10px 10px 2px 10px; background: #144d37; animation: cvh-in 6s cubic-bezier(.2, .8, .3, 1) infinite; }
@keyframes cvh-in { 0% { transform: translateY(30px); opacity: 0; } 12%, 100% { transform: none; opacity: 1; } }
.cvh-card { display: flex !important; border-radius: 7px; overflow: hidden; background: rgba(0,0,0,.25); }
.cvh-img { flex: 0 0 64px; height: 56px; position: relative; background: linear-gradient(135deg, #1f6feb, #39d353); animation: cvh-img 6s ease infinite; }
@keyframes cvh-img { 0%, 18% { filter: grayscale(1) brightness(.4); } 30%, 100% { filter: none; } }
.cvh-logo { position: absolute; inset: 18px 20px; border-radius: 4px; background: rgba(255,255,255,.85); }
.cvh-meta { padding: 7px 8px; min-width: 0; }
.cvh-meta b { font-size: 10.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvh-meta em { font-size: 9px; color: rgba(255,255,255,.6); margin-top: 3px; }
.cvh-link { display: flex !important; justify-content: space-between; gap: 6px; padding: 4px 4px 1px; font-size: 9.5px; color: #8ee4c4; }
.cvh-tick { color: #53bdeb; letter-spacing: -2px; animation: cvh-tick 6s step-end infinite; }
@keyframes cvh-tick { 0% { color: rgba(255,255,255,.45); } 35% { color: #53bdeb; } }

/* 8. Migration: old URLs redirected, scrolling past. */
.cv-migrate { -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.cvm-list { padding: 6px 14px; animation: cvm-scroll 9s linear infinite; }
.cvm-list > span { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; height: 27px; font: 10px/1 var(--cv-mono); }
.cvm-list s { color: #8b949e; text-decoration-color: rgba(255,123,114,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvm-list b { color: #0d1117; background: var(--purple); border-radius: 4px; padding: 2px 5px; font-size: 9px; }
.cvm-list em { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes cvm-scroll { to { transform: translateY(-108px); } }

/* 9. Hosting: a heartbeat and a row of healthy checks. */
.cv-host { padding: 11px 14px; display: grid; gap: 6px; }
.cvo-head { display: flex !important; justify-content: space-between; align-items: center; }
.cvo-live { display: flex !important; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cvo-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); animation: cvo-blink 2s ease-in-out infinite; }
@keyframes cvo-blink { 50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); } }
.cvo-lock { font: 600 9.5px/1 var(--cv-mono); color: var(--text-muted); padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.05); }
.cvo-beat { width: 100%; height: 34px; }
.cvo-beat path { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cvo-base { stroke: rgba(var(--accent-rgb), .45); }
.cvo-pulse { stroke: #b6f5c3; stroke-width: 2.5; stroke-dasharray: 18 82; stroke-dashoffset: 30; filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), .9)); animation: cvo-beat 2.6s linear infinite; }
@keyframes cvo-beat { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.cvo-bars { display: flex !important; gap: 3px; height: 18px; }
.cvo-bars i { flex: 1; border-radius: 2px; background: rgba(var(--accent-rgb), .55); animation: cvo-bar 3s ease-in-out infinite; }
.cvo-bars i:nth-child(3n) { animation-delay: -.4s; } .cvo-bars i:nth-child(3n+1) { animation-delay: -.8s; } .cvo-bars i:nth-child(5n) { animation-delay: -1.6s; }
@keyframes cvo-bar { 50% { background: rgba(var(--accent-rgb), .9); } }

/* 10. Forms: a new enquiry lands, spam is turned away. */
.cv-forms { padding: 8px 12px; }
.cvf-list { display: grid; gap: 5px; }
.cvf-row { display: grid !important; grid-template-columns: 8px auto minmax(0, 1fr); align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.035); }
.cvf-row b { font-size: 11px; color: var(--text); }
.cvf-row em { font-size: 10px; color: var(--text-muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvf-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.cvf-row--new { background: rgba(255, 166, 87, .1); border: 1px solid rgba(255, 166, 87, .35); animation: cvf-new 5s cubic-bezier(.2, .8, .3, 1) infinite; }
.cvf-row--new .cvf-dot { background: var(--orange); }
.cvf-row--spam { animation: cvf-spam 5s ease infinite; }
.cvf-row--spam .cvf-dot { background: var(--red); }
.cvf-row--spam b { color: var(--red); text-decoration: line-through; text-decoration-color: rgba(255,123,114,.5); }
@keyframes cvf-new  { 0% { transform: translateY(-38px); opacity: 0; } 14%, 100% { transform: none; opacity: 1; } }
@keyframes cvf-spam { 0%, 40% { transform: none; opacity: 1; } 55% { transform: translateX(26px); opacity: .25; } 70%, 100% { transform: none; opacity: 1; } }

/* 11. Copy: a vague headline rewritten as the search people make. */
.cv-copy { padding: 14px 16px; display: grid; gap: 6px; align-content: center; }
.cvc-old { position: relative; width: max-content; font-size: 12px; color: var(--text-muted); }
.cvc-old::after { content: ''; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: var(--red); transform-origin: left; animation: cvc-strike 6s ease infinite; }
@keyframes cvc-strike { 0%, 12% { transform: scaleX(0); } 24%, 100% { transform: scaleX(1); } }
.cvc-new {
    display: flex !important; align-items: center; width: max-content; max-width: 100%;
    font-size: 17px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden;
    animation: cvc-type 6s steps(27, end) infinite;
}
@keyframes cvc-type { 0%, 26% { max-width: 0; } 62%, 100% { max-width: 100%; } }
.cvc-caret { width: 2px; height: 18px; margin-left: 2px; background: var(--red); animation: cvc-caret 1s step-end infinite; }
@keyframes cvc-caret { 50% { opacity: 0; } }
.cvc-tags { display: flex !important; gap: 5px; margin-top: 3px; }
.cvc-tags span { font: 9.5px/1 var(--cv-mono); padding: 3px 7px; border-radius: 999px; color: var(--red); background: rgba(255, 123, 114, .1); }

/* 12. Measurement: clicks climbing in a Search Console style chart. */
.cv-chart { padding: 10px 14px 0; }
.cvg-legend { display: flex !important; gap: 6px; }
.cvg-legend span { font-size: 9.5px; padding: 3px 8px; border-radius: 5px; color: #fff; }
.cvg-clicks { background: #1a62d6; }
.cvg-impr { background: #5e35b1; }
.cvg-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80px; }
.cvg-area { fill: rgba(66, 133, 244, .14); }
.cvg-line, .cvg-impr-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 100; animation: cvg-draw 6s ease-out infinite; }
.cvg-line { stroke: #4285f4; }
.cvg-impr-line { stroke: #7e57c2; opacity: .8; }
@keyframes cvg-draw { 0% { stroke-dashoffset: 100; } 50%, 100% { stroke-dashoffset: 0; } }
.cvg-dot { position: absolute; right: 2px; top: 46px; width: 9px; height: 9px; border-radius: 50%; background: #4285f4; box-shadow: 0 0 0 4px rgba(66, 133, 244, .25); animation: cvg-dot 6s ease infinite; }
@keyframes cvg-dot { 0%, 46% { opacity: 0; transform: scale(0); } 54%, 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .cv, .cv * { animation: none !important; }
}

/* ══ Intro: an exploded web page in CSS 3D ════════════════════════════════
 * Built on assets/css/obj3d.css (stage, stack, slabs, light, breathe/turn).
 * Four slabs, bottom to top: Host, Rank, Build, Design. Only the contents of
 * each slab's cap are styled here; sizes are in cqw of the stage, like the
 * toolkit's own parts. */
.wd-layers {
    max-width: 1100px;
    margin: -1rem auto 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
}
.wdl-stage { --o3d-size: min(540px, 100%); --o3d-oy: 76%; --o3d-rx: -27deg; justify-self: center; }
.wdl-stage .o3d-shadow { --y: 0; }

/* Cap artwork */
.wdl .o3d-top > b { position: absolute; inset: 3cqw; display: block; }
.wdl .o3d-top span { display: block; }
.wdl--host .o3d-top { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); }
.wdl-leds { inset: 3cqw auto auto 3cqw !important; display: flex !important; gap: 1.4cqw; }
.wdl-leds span { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--accent); box-shadow: 0 0 1.6cqw var(--accent); }
.wdl-leds span:nth-child(3) { background: var(--cyan); box-shadow: 0 0 1.6cqw var(--cyan); }
.wdl-vent { inset: 9cqw 3cqw 3cqw !important; border-radius: .8cqw; background: radial-gradient(rgba(0, 0, 0, .6) .35cqw, transparent .45cqw) 0 0 / 1.6cqw 1.6cqw, rgba(0, 0, 0, .15); }
.wdl-code { display: flex !important; flex-direction: column; justify-content: center; gap: 1.6cqw; font: 600 2.3cqw/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--cyan); white-space: nowrap; }
.wdl-code span:nth-child(2) { color: #a5d6ff; }
.wdl-wire { display: grid !important; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1.2fr 2.4fr 1.6fr; gap: 1.4cqw; }
.wdl-wire span { border: .3cqw dashed rgba(var(--primary-rgb), .7); border-radius: .6cqw; }
.wdl-wire span:nth-child(1) { grid-column: 1 / -1; }
.wdl-wire span:nth-child(2) { grid-column: 1 / -1; }
.wdl-ui { display: flex !important; flex-direction: column; gap: 1.6cqw; }
.wdl-nav { height: 4cqw; border-radius: .8cqw; background: linear-gradient(90deg, rgba(255,255,255,.75) 0 14%, transparent 14% 62%, rgba(255,255,255,.3) 62% 72%, transparent 72% 74%, rgba(255,255,255,.3) 74% 84%, transparent 84% 86%, var(--accent) 86%); }
.wdl-hero { position: relative; flex: 1; border-radius: 1cqw; padding: 3cqw; background: linear-gradient(135deg, #3b2a6b, #1f4c8f 55%, #1b6b6f); }
.wdl-hero span { height: 2.2cqw; width: 62%; border-radius: 1cqw; background: rgba(255,255,255,.85); margin-bottom: 1.4cqw; }
.wdl-hero span:nth-child(2) { width: 42%; background: rgba(255,255,255,.45); height: 1.6cqw; }
.wdl-hero .wdl-cta { width: 18%; height: 3cqw; margin: 2.4cqw 0 0; background: var(--accent); box-shadow: 0 0 2cqw rgba(var(--accent-rgb), .6); }
.wdl-cards { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; height: 7cqw; }
.wdl-cards span { border-radius: .8cqw; background: rgba(255,255,255,.12); }

/* The four layers in words, top to bottom like the stack. */
.wdl-list { list-style: none; display: grid; gap: .9rem; counter-reset: wdl 5; }
.wdl-item {
    --c: var(--primary); --c-rgb: var(--primary-rgb);
    position: relative;
    display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 1rem;
    padding: 1rem 1.2rem 1rem 1.4rem;
    border-radius: 14px;
    background: linear-gradient(100deg, rgba(var(--c-rgb), .1), rgba(22, 27, 34, .6) 60%);
    border: 1px solid rgba(var(--c-rgb), .25);
    counter-increment: wdl -1;
}
.wdl-item::before { content: '0' counter(wdl); grid-row: span 2; font: 700 .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--c); }
.wdl-item::after { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.wdl-item b { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.wdl-item span { font-size: .88rem; color: var(--text-muted); }
.wdl-item--design { --c: var(--purple); --c-rgb: 210, 168, 255; }
.wdl-item--rank   { --c: var(--cyan);   --c-rgb: 86, 212, 221; }
.wdl-item--host   { --c: var(--accent); --c-rgb: var(--accent-rgb); }

/* ══ Standards & Tools: audit console ══════════════════════════════════════ */
.wd-audit {
    max-width: 560px;
    margin: 0 auto 2rem;
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0e13;
    border: 1px solid rgba(var(--primary-rgb), .2);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9);
}
.wd-audit-bar { display: flex; align-items: center; gap: .8rem; height: 30px; padding: 0 12px; background: linear-gradient(#1b222c, #151b23); border-bottom: 1px solid var(--wd-hair); font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-muted); }
.wd-audit-bar .wd-lights { gap: 6px; }
.wd-audit-bar .wd-lights i { width: 9px; height: 9px; min-width: 0; min-height: 0; }
.wd-audit-body { padding: 12px 16px 14px; display: grid; gap: 4px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wd-audit-cmd { color: #c9d1d9; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-audit-cmd b { color: var(--accent); }
.wd-audit-line { display: grid; grid-template-columns: 1.4em minmax(0, 1fr) auto; align-items: baseline; color: #c9d1d9; }
.wd-audit-line i { font-style: normal; color: var(--accent); }
.wd-audit-line span { overflow: hidden; white-space: nowrap; }
.wd-audit-line span::after { content: ' ........................................'; color: rgba(255, 255, 255, .15); }
.wd-audit-line em { font-style: normal; color: var(--accent); padding-left: .6em; }
.wd-audit.is-live .wd-audit-line { animation: wd-audit-in 7s calc(var(--n) * .55s + .5s) step-end infinite both; }
@keyframes wd-audit-in { 0% { opacity: 0; } 4% { opacity: 1; } }

/* ══ CTA: a URL typed into an assessment bar ═══════════════════════════════ */
.wd-cta-viz { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin: 0 auto 2.2rem; }
.wd-cta-url {
    display: flex; align-items: center; gap: .6rem;
    width: min(100%, 420px); height: 52px; padding: 0 6px 0 18px;
    border-radius: 999px;
    background: rgba(10, 14, 19, .85);
    border: 1px solid rgba(var(--primary-rgb), .35);
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .06), 0 18px 40px -18px rgba(var(--primary-rgb), .5);
    color: var(--text-muted);
    font-size: 1rem;
}
.wd-cta-url .wd-lock { font-size: 1rem; }
.wd-cta-type { flex: 1; text-align: left; color: var(--text); white-space: nowrap; overflow: hidden; }
.wd-cta-go { display: flex; align-items: center; gap: .45rem; height: 40px; padding: 0 1.1rem; border-radius: 999px; background: var(--accent); color: #0d1117; font-weight: 600; font-size: .9rem; }
.wd-cta-go i { font-size: .75em; }
.wd-cta-res { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.wd-cta-res > span { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text); padding: .3rem .8rem; border-radius: 999px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .3); }
.wd-cta-res i { font-style: normal; color: var(--accent); }
.wd-cta-viz.is-live .wd-cta-type { animation: wd-cta-type 7s steps(19, end) infinite; }
.wd-cta-viz.is-live .wd-cta-go { animation: wd-cta-go 7s ease infinite; }
.wd-cta-viz.is-live .wd-cta-res > span { animation: wd-cta-res 7s ease infinite; }
.wd-cta-viz.is-live .wd-cta-res > span:nth-child(2) { animation-name: wd-cta-res2; }
.wd-cta-viz.is-live .wd-cta-res > span:nth-child(3) { animation-name: wd-cta-res3; }
@keyframes wd-cta-type { 0% { max-width: 0; } 30%, 100% { max-width: 100%; } }
@keyframes wd-cta-go { 0%, 32% { transform: none; box-shadow: none; } 38% { transform: scale(.94); } 44%, 100% { transform: none; box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18); } }
@keyframes wd-cta-res  { 0%, 46% { opacity: 0; transform: translateY(6px); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes wd-cta-res2 { 0%, 52% { opacity: 0; transform: translateY(6px); } 58%, 100% { opacity: 1; transform: none; } }
@keyframes wd-cta-res3 { 0%, 58% { opacity: 0; transform: translateY(6px); } 64%, 100% { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .wd-layers { grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: -2rem; }
    .wdl-stage { --o3d-size: min(420px, 100%); }
    .wdl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .wdl-item { padding: .8rem .9rem .8rem 1.1rem; column-gap: .6rem; }
    .wdl-item b { font-size: 1rem; }
    .wdl-item span { font-size: .78rem; }
    .wd-audit-body { font-size: 11px; padding: 10px 12px 12px; }
    .wd-cta-url { height: 48px; font-size: .92rem; padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .wd-audit *, .wd-cta-viz * { animation: none !important; }
}
