/* Web Design (post 974) consolidated styles.
 * Extracted from inline <style> blocks during Phase 1C.
 */

/* =================================================================
   Block 1 - extracted from post 974 (web-design)
   ================================================================= */
:root {
    --wd-bg: #ffffff;
    --wd-board-bg: #faf8f3;
    --wd-card-bg: #ffffff;
    --wd-dark: #0f172a;
    --wd-text: #475569;
    --wd-text-muted: #94a3b8;
    --wd-cyan: #00d2ff;
    --wd-blue: #0284c7;
    --wd-paper: #fefdf6;
    --wd-paper-2: #f7f1de;
    --wd-paper-edge: rgba(146, 64, 14, 0.18);
    --wd-paper-ink: #4a3416;
    --wd-paper-ink-2: #78350f;
    --wd-paper-tag: #b45309;
    --wd-tape: rgba(253, 224, 71, 0.55);
    --wd-gradient: linear-gradient(90deg, #0284c7 0%, #00d2ff 100%);
    --wd-font: 'Inter', system-ui, -apple-system, sans-serif;
    --wd-code: 'Fira Code', monospace;
    --wd-hand: 'Caveat', 'Inter', cursive;
}

.wd-page * { box-sizing: border-box; }
.wd-page {
    font-family: var(--wd-font);
    -webkit-font-smoothing: antialiased;
}
.wd-page > section:last-child { margin-bottom: 0; }

.wd-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 28px;
}

.wd-preheading {
    font-family: var(--wd-code);
    color: var(--wd-blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin: 0 0 12px 0;
    display: block;
}

.wd-section-title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 900;
    color: var(--wd-dark);
    margin: 0 0 18px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

.wd-divider {
    width: 80px;
    height: 4px;
    background: var(--wd-gradient);
    border-radius: 2px;
    margin: 0 auto 22px auto;
}

.wd-section-subtitle {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--wd-text);
    line-height: 1.7;
    margin: 0;
}

.wd-section-header {
    text-align: center;
    margin-bottom: clamp(34px, 4vw, 52px);
    max-width: 940px;
    margin-inline: auto;
}

/* Browser frame inside portfolio cards */
.wd-browser-frame {
    width: 100%;
    background: #ffffff;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.wd-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: linear-gradient(180deg, #f1f3f6 0%, #e8ebef 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.wd-bdot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}
.wd-bdot:nth-child(1) { background: #ff5f57; }
.wd-bdot:nth-child(2) { background: #febc2e; }
.wd-bdot:nth-child(3) { background: #28c840; }

.wd-burl {
    margin-left: 14px;
    flex: 1;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px 12px;
    font-family: var(--wd-code);
    font-size: 11px;
    color: var(--wd-text);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 320px;
}
.wd-browser-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center top;
    background-color: #0f172a;
    position: relative;
}
.wd-browser-screen--logo {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f1f5f9;
}

/* ============================================================
   HERO
   ============================================================ */
.wd-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(60px, 8vh, 110px) 20px;
    overflow: hidden;
    background-color: #0a0d14;
    background-image:
        radial-gradient(ellipse at 18% 28%, rgba(2, 132, 199, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 72%, rgba(0, 210, 255, 0.20) 0%, transparent 50%);
    isolation: isolate;
}

.wd-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wd-hero-tag {
    font-family: var(--wd-code);
    color: var(--wd-cyan);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 7px 18px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.22);
    border-radius: 50px;
    margin-bottom: 28px;
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    animation: wdFadeUp 0.7s ease-out 0.05s forwards;
}

.wd-hero-h1 {
    font-family: var(--wd-font);
    font-size: clamp(40px, 7.4vw, 86px);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 22px 0;
    letter-spacing: -2.5px;
    line-height: 1.02;
    display: block;
}
.wd-hk-line { display: block; overflow: hidden; padding-bottom: 4px; }
.wd-hk-word {
    display: inline-block;
    margin: 0 0.18em 0 0;
    transform: translateY(110%);
    opacity: 0;
    animation: wdWordReveal 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.wd-hk-line:nth-child(1) .wd-hk-word:nth-child(1) { animation-delay: 0.18s; }
.wd-hk-line:nth-child(1) .wd-hk-word:nth-child(2) { animation-delay: 0.26s; }
.wd-hk-line:nth-child(1) .wd-hk-word:nth-child(3) { animation-delay: 0.34s; }
.wd-hk-line:nth-child(2) .wd-hk-word:nth-child(1) { animation-delay: 0.46s; }
.wd-hk-line:nth-child(2) .wd-hk-word:nth-child(2) { animation-delay: 0.54s; }
.wd-hk-line:nth-child(2) .wd-hk-word:nth-child(3) { animation-delay: 0.62s; }
.wd-hk-line:nth-child(2) .wd-hk-word:nth-child(4) { animation-delay: 0.70s; }
.wd-hk-line:nth-child(2) .wd-hk-word:nth-child(5) { animation-delay: 0.78s; }
.wd-hk-accent {
    background: var(--wd-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes wdWordReveal {
    0%   { transform: translateY(110%) rotate(2deg); opacity: 0; }
    60%  { transform: translateY(0)    rotate(0deg); opacity: 1; }
    100% { transform: translateY(0)    rotate(0deg); opacity: 1; }
}
@keyframes wdFadeUp { to { opacity: 1; transform: translateY(0); } }

.wd-hero-sub {
    font-size: clamp(16px, 2.2vw, 19px);
    color: #94a3b8;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 40px 0;
    opacity: 0;
    transform: translateY(8px);
    animation: wdFadeUp 0.8s ease-out 0.95s forwards;
}

.wd-hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    animation: wdFadeUp 0.8s ease-out 1.1s forwards;
}

.wd-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wd-gradient);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--wd-code);
    font-size: 14px;
    font-weight: 600;
    padding: 16px 38px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    letter-spacing: 0.5px;
}
.wd-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.28);
    color: #ffffff;
    text-decoration: none;
}
.wd-hero-cta i { font-size: 12px; transition: transform 0.3s ease; }
.wd-hero-cta:hover i { transform: translateX(4px); }
.wd-hero-cta--ghost {
    background: transparent;
    border: 1px solid rgba(0, 210, 255, 0.45);
    color: var(--wd-cyan);
}
.wd-hero-cta--ghost:hover {
    background: rgba(0, 210, 255, 0.10);
    color: var(--wd-cyan);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.16);
}

/* ============================================================
   PORTFOLIO BINDER - page-turn animation
   ============================================================ */
.wd-portfolio-section {
    position: relative;
    background-color: var(--wd-board-bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.09) 1px, transparent 0),
        radial-gradient(ellipse at 20% 0%, rgba(2, 132, 199, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(253, 224, 71, 0.05) 0%, transparent 55%);
    background-size: 22px 22px, 100% 100%, 100% 100%;
    padding: clamp(48px, 5.5vw, 80px) 20px;
}

.wd-stack-stage {
    max-width: 1500px;
    margin: 0 auto;
    perspective: 2400px;
}

.wd-stack-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-bottom: 38px;
}

.wd-slot {
    position: relative;
    min-height: 460px;
    transform-style: preserve-3d;
    display: grid;
    grid-template-areas: "stack";
}
.wd-slot > .wd-port-card,
.wd-slot > .wd-slot-skeleton {
    grid-area: stack;
}

.wd-slot::before,
.wd-slot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    z-index: 0;
    pointer-events: none;
}
.wd-slot::before { transform: rotate(-3.2deg) translate(-10px, 10px); }
.wd-slot::after  { transform: rotate(2.4deg) translate(8px, 16px); background: #fdfaf1; border-color: rgba(15, 23, 42, 0.06); }

.wd-slot:nth-child(1) .wd-port-card { transform: rotate(-1.6deg); }
.wd-slot:nth-child(2) .wd-port-card { transform: rotate(1.4deg); }

.wd-slot .wd-port-card {
    position: relative;
    z-index: 2;
    will-change: transform;
    transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.42s ease;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}
.wd-slot .wd-port-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
}

/* Page-turn: right card pivots on its left edge and flips over the
   left card. Slot 0 (left) doesn't animate on desktop - the flipping
   slot 1 card simply covers it. New cards sit underneath, ready. */
.wd-card-emerging {
    z-index: 1 !important;
    opacity: 0;
    animation: wdEmerge 320ms ease 360ms forwards;
}
.wd-slot:nth-child(2) .wd-port-card.wd-flipping {
    transform-origin: 0% 50%;
    animation: wdPageTurnRight 720ms cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
    z-index: 50;
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.32),
        0 8px 18px rgba(15, 23, 42, 0.18);
}
@keyframes wdPageTurnRight {
    0%   { transform: rotate(1.4deg) rotateY(0deg) translateZ(0); }
    25%  { transform: rotate(1deg)   rotateY(-22deg) translateZ(18px); }
    50%  { transform: rotate(0deg)   rotateY(-90deg) translateZ(22px); }
    75%  { transform: rotate(-1deg)  rotateY(-150deg) translateZ(12px); }
    100% { transform: rotate(-1.6deg) rotateY(-180deg) translateZ(0); }
}
@keyframes wdEmerge {
    to { opacity: 1; }
}

.wd-slot:empty { background: transparent; }
.wd-slot:empty::after,
.wd-slot:empty::before { background: transparent; box-shadow: none; border: none; transform: none; }

.wd-slot-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(15,23,42,0.04) 0%, rgba(15,23,42,0.08) 50%, rgba(15,23,42,0.04) 100%);
    background-size: 200% 100%;
    animation: wdShimmer 1.6s linear infinite;
    z-index: 1;
}
@keyframes wdShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.wd-card-pool { display: none; }

.wd-stack-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 5;
}
.wd-stack-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: #ffffff;
    color: var(--wd-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.wd-stack-btn:hover {
    background: var(--wd-dark);
    color: var(--wd-cyan);
    border-color: var(--wd-dark);
    transform: scale(1.08);
}
.wd-stack-dots { display: flex; gap: 10px; align-items: center; }
.wd-sdot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.18);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease;
}
.wd-sdot.active {
    background: var(--wd-blue);
    width: 26px;
    border-radius: 5px;
}

.wd-port-card {
    background: var(--wd-card-bg);
    border-radius: 12px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
    position: relative;
}
.wd-port-card::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 86px; height: 22px;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 4px, transparent 4px 8px),
        var(--wd-tape);
    border: 1px solid rgba(202, 138, 4, 0.18);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.12);
    z-index: 4;
    pointer-events: none;
}
.wd-port-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.wd-port-card .wd-browser-frame {
    border-radius: 12px 12px 0 0;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.wd-port-card .wd-browser-screen { transition: transform 0.6s ease; }
.wd-port-card:hover .wd-browser-screen { transform: scale(1.04); }

.wd-port-card[data-dev="true"] {
    background: #ffffff;
    padding: 14px 14px 0 14px;
}
.wd-port-card[data-dev="true"] .wd-browser-frame {
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.wd-port-card[data-dev="true"] .wd-port-img-wrap {
    border-radius: 4px;
    overflow: hidden;
}
.wd-port-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d45 60%, #243352 100%);
}
.wd-port-img-placeholder i { font-size: 40px; color: rgba(0, 210, 255, 0.7); }
.wd-port-img-placeholder span {
    font-family: var(--wd-code);
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
}
.wd-port-card[data-dev="true"]::after {
    content: '{ in_development }';
    position: absolute;
    top: -16px; right: -14px;
    background: linear-gradient(180deg, #fff7c8 0%, #fde68a 100%);
    color: #78350f;
    font-family: var(--wd-code);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px 10px 14px;
    transform: rotate(6deg);
    box-shadow: 0 6px 14px rgba(146, 64, 14, 0.22), inset 0 -3px 0 rgba(146, 64, 14, 0.08);
    z-index: 5;
    border-radius: 2px;
}
.wd-port-card[data-dev="true"] .wd-port-tag-pin {
    position: absolute;
    top: -22px; right: 18px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff8a8a 0%, #b91c1c 70%, #7f1d1d 100%);
    box-shadow: 0 3px 6px rgba(127, 29, 29, 0.45), inset -2px -2px 4px rgba(0,0,0,0.3);
    z-index: 6;
}
.wd-port-card[data-dev="true"] .wd-port-tag { display: none; }

.wd-port-tag {
    position: absolute;
    top: 18px; left: 18px;
    background: var(--wd-dark);
    color: #fff;
    padding: 5px 12px;
    font-family: var(--wd-code);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.wd-port-content {
    padding: clamp(22px, 2.6vw, 30px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.wd-port-card[data-dev="true"] .wd-port-content { padding-top: 18px; }

.wd-port-client {
    font-size: clamp(18px, 2.1vw, 21px);
    font-weight: 800;
    color: var(--wd-dark);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}
.wd-port-desc {
    font-size: 0.92rem;
    color: var(--wd-text);
    line-height: 1.7;
    margin: 0 0 18px 0;
    flex-grow: 1;
}
.wd-port-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.wd-port-cap {
    font-family: var(--wd-code);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--wd-blue);
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.18);
    border-radius: 50px;
    padding: 3px 10px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.wd-port-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--wd-code);
    font-size: 13px;
    font-weight: 700;
    color: var(--wd-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}
.wd-port-link i {
    color: var(--wd-cyan);
    font-size: 13px;
    transition: transform 0.3s ease;
}
.wd-port-link:hover { color: var(--wd-blue); text-decoration: none; }
.wd-port-link:hover i { transform: translateX(5px); }

/* ============================================================
   STARTING POINTS - napkin-styled note cards (no crumple, no pin
   color variants - one unified paper aesthetic, slight rotation
   variety for character)
   ============================================================ */
.wd-problem-section {
    position: relative;
    background-color: var(--wd-bg);
    padding: clamp(48px, 5.5vw, 80px) 20px;
}
.wd-signals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 44px 36px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 0;
}
.wd-signal {
    position: relative;
    background:
        radial-gradient(circle at 20% 25%, rgba(146, 64, 14, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(146, 64, 14, 0.04) 0%, transparent 35%),
        linear-gradient(180deg, var(--wd-paper) 0%, var(--wd-paper-2) 100%);
    border: 1px solid var(--wd-paper-edge);
    border-radius: 1px;
    padding: 26px 24px;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.10),
        inset 0 0 60px rgba(146, 64, 14, 0.04);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    user-select: none;
}
.wd-signal::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(146, 64, 14, 0.18);
    pointer-events: none;
    border-radius: 1px;
}
.wd-signal::after {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fcd34d 0%, #ca8a04 70%, #713f12 100%);
    box-shadow: 0 3px 6px rgba(113, 63, 18, 0.45), inset -2px -2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}
.wd-signal:nth-child(1) { transform: rotate(-1.5deg); }
.wd-signal:nth-child(2) { transform: rotate(1.2deg); }
.wd-signal:nth-child(3) { transform: rotate(-0.8deg); }
.wd-signal:nth-child(4) { transform: rotate(2deg); }
.wd-signal:nth-child(5) { transform: rotate(-1.1deg); }
.wd-signal:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow:
        0 22px 44px rgba(15, 23, 42, 0.16),
        inset 0 0 60px rgba(146, 64, 14, 0.04);
}
.wd-signal-tag {
    font-family: var(--wd-code);
    font-size: 11px;
    color: var(--wd-paper-tag);
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    display: inline-block;
}
.wd-signal h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wd-paper-ink);
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
    line-height: 1.35;
}
.wd-signal p {
    font-size: 0.92rem;
    color: var(--wd-paper-ink-2);
    line-height: 1.6;
    margin: 0;
}

/* Modal trigger button under the sticky notes */
.wd-signal-cta {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}
.wd-signal-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, var(--wd-paper) 0%, var(--wd-paper-2) 100%);
    border: 1px solid var(--wd-paper-edge);
    color: var(--wd-paper-ink);
    font-family: var(--wd-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 14px 26px;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10), inset 0 0 40px rgba(146, 64, 14, 0.04);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
    position: relative;
}
.wd-signal-modal-btn::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(146, 64, 14, 0.22);
    pointer-events: none;
    border-radius: 1px;
}
.wd-signal-modal-btn i { color: var(--wd-paper-tag); font-size: 15px; }
.wd-signal-modal-btn:hover {
    transform: translateY(-2px) rotate(-0.6deg);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16), inset 0 0 40px rgba(146, 64, 14, 0.04);
}

/* Designer-letterhead modal */
.wd-modal {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 640px;
    width: calc(100% - 32px);
    color: var(--wd-paper-ink);
    overflow: visible;
}
.wd-modal::backdrop {
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.wd-modal[open] {
    animation: wdModalIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes wdModalIn {
    from { opacity: 0; transform: translateY(14px) rotate(-0.8deg); }
    to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}
.wd-modal-card {
    position: relative;
    background:
        radial-gradient(circle at 18% 22%, rgba(146, 64, 14, 0.05) 0%, transparent 38%),
        radial-gradient(circle at 82% 78%, rgba(146, 64, 14, 0.04) 0%, transparent 38%),
        linear-gradient(180deg, var(--wd-paper) 0%, var(--wd-paper-2) 100%);
    border: 1px solid var(--wd-paper-edge);
    padding: 38px 36px 32px 36px;
    border-radius: 2px;
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.45),
        inset 0 0 80px rgba(146, 64, 14, 0.05);
}
.wd-modal-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(146, 64, 14, 0.22);
    pointer-events: none;
    border-radius: 1px;
}
.wd-modal-card::after {
    content: '';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fcd34d 0%, #ca8a04 70%, #713f12 100%);
    box-shadow: 0 4px 8px rgba(113, 63, 18, 0.55), inset -2px -2px 4px rgba(0,0,0,0.3);
}
.wd-modal-close {
    position: absolute;
    top: 6px; right: 8px;
    width: 32px; height: 32px;
    border: 0;
    background: transparent;
    color: var(--wd-paper-ink-2);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, color 0.2s ease;
}
.wd-modal-close:hover { color: var(--wd-paper-ink); transform: rotate(90deg); }
.wd-modal-tag {
    font-family: var(--wd-code);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--wd-paper-tag);
    letter-spacing: 0.4px;
    display: inline-block;
    margin-bottom: 12px;
}
.wd-modal-title {
    font-family: var(--wd-hand);
    font-weight: 700;
    font-size: clamp(26px, 4vw, 34px);
    color: var(--wd-paper-ink);
    margin: 0 0 18px 0;
    line-height: 1.15;
    letter-spacing: 0.2px;
}
.wd-modal-card p {
    font-family: var(--wd-font);
    font-size: 15px;
    line-height: 1.72;
    color: var(--wd-paper-ink-2);
    margin: 0 0 14px 0;
}
.wd-modal-card p:last-of-type { margin-bottom: 22px; }
.wd-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wd-dark);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--wd-code);
    font-size: 13px;
    font-weight: 600;
    padding: 13px 22px;
    border-radius: 3px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    letter-spacing: 0.4px;
}
.wd-modal-cta:hover {
    transform: translateY(-2px);
    background: var(--wd-blue);
    color: #ffffff;
    text-decoration: none;
}
.wd-modal-cta i { transition: transform 0.25s ease; }
.wd-modal-cta:hover i { transform: translateX(4px); }

/* ============================================================
   SERVICES
   ============================================================ */
.wd-services-section {
    position: relative;
    background-color: #f1f5f9;
    padding: clamp(48px, 5.5vw, 80px) 20px;
    overflow: hidden;
}
.wd-service-rows {
    max-width: 1500px;
    margin: 0 auto;
    border-top: 1px solid rgba(0,0,0,0.07);
}
.wd-srow {
    display: grid;
    grid-template-columns: 56px 220px 1fr;
    gap: 0 36px;
    align-items: start;
    padding: 32px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: background 0.3s ease;
    position: relative;
}
.wd-srow:hover { background: rgba(255,255,255,0.7); }
.wd-srow-icon { padding-top: 3px; }
.wd-srow-icon i {
    font-size: 26px;
    background: var(--wd-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.3s ease;
}
.wd-srow:hover .wd-srow-icon i { transform: scale(1.12) rotate(-4deg); }
.wd-srow-meta { position: relative; display: inline-block; }
.wd-srow-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--wd-dark);
    margin: 0 0 9px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    position: relative;
    display: inline;
    background-image: linear-gradient(120deg, var(--wd-cyan) 0%, var(--wd-blue) 100%);
    background-repeat: no-repeat;
    background-size: 0% 6px;
    background-position: 0 calc(100% - 1px);
    transition: background-size 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-bottom: 1px;
}
.wd-srow:hover .wd-srow-title { background-size: 100% 6px; }
.wd-srow-tag {
    font-family: var(--wd-code);
    font-size: 11px;
    color: var(--wd-blue);
    font-weight: 600;
    display: block;
    letter-spacing: 0.3px;
    margin-top: 12px;
}
.wd-srow-desc {
    font-size: 0.95rem;
    color: var(--wd-text);
    line-height: 1.74;
    margin: 0;
    padding-top: 2px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.wd-process-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #000;
    padding: clamp(60px, 6.5vw, 100px) 20px;
    overflow: hidden;
}
.wd-process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.wd-process-section .wd-preheading { color: var(--wd-cyan); }
.wd-process-section .wd-section-title { color: #ffffff; }
.wd-process-section .wd-section-subtitle { color: #94a3b8; }
.wd-process-section .wd-divider { margin: 0 auto 22px auto; }

.wd-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 12px;
    position: relative;
    margin-top: 24px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
.wd-step {
    text-align: center;
    padding: 0 14px;
    position: relative;
    z-index: 2;
}
.wd-step-num-wrap {
    position: relative;
    width: 116px; height: 116px;
    margin: 0 auto 30px auto;
}
.wd-step-num-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 210, 255, 0.04);
    border: 1px dashed rgba(0, 210, 255, 0.18);
    transform: rotate(-6deg) scale(0.94);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 0;
}
.wd-step:hover .wd-step-num-wrap::before {
    opacity: 1;
    transform: rotate(-6deg) scale(1.02);
}
.wd-step-num {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 210, 255, 0.38);
    background: #000;
    box-shadow: 0 0 0 8px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wd-code);
    font-size: 18px;
    font-weight: 700;
    color: var(--wd-cyan);
    letter-spacing: 2px;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}
.wd-step:hover .wd-step-num {
    background: rgba(0, 210, 255, 0.07);
    border-color: rgba(0, 210, 255, 0.7);
    box-shadow: 0 0 0 8px #000, 0 0 28px rgba(0, 210, 255, 0.22);
}
.wd-step-arrow {
    position: absolute;
    top: 50px; right: -18%;
    width: 36%; height: 28px;
    z-index: 0;
    pointer-events: none;
    color: rgba(0, 210, 255, 0.32);
}
.wd-step:last-child .wd-step-arrow { display: none; }
.wd-step-arrow svg { width: 100%; height: 100%; overflow: visible; }
.wd-step h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}
.wd-step p {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   CTA - flush with footer
   ============================================================ */
.wd-cta-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
    background-color: var(--wd-dark);
    padding: clamp(60px, 7vw, 100px) 20px;
    text-align: center;
    overflow: hidden;
}
.wd-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.wd-cta-section::after {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(2,132,199,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.wd-cta-section .wd-preheading {
    color: var(--wd-cyan);
    position: relative;
    z-index: 2;
}
.wd-cta-title {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 18px 0;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}
.wd-cta-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 36px auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}
.wd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wd-gradient);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--wd-code);
    font-size: 14px;
    font-weight: 600;
    padding: 17px 42px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}
.wd-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 210, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}
.wd-cta-btn i { font-size: 12px; transition: transform 0.3s ease; }
.wd-cta-btn:hover i { transform: translateX(4px); }
.wd-cta-note {
    margin-top: 18px;
    font-family: var(--wd-code);
    font-size: 12px;
    color: #475569;
    position: relative;
    z-index: 2;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .wd-srow {
        grid-template-columns: 44px 1fr;
        gap: 0 20px;
    }
    .wd-srow-desc {
        grid-column: 2 / 3;
        margin-top: 12px;
    }
    .wd-timeline {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 56px;
    }
    .wd-step-num-wrap { width: 92px; height: 92px; }
    .wd-step-num { font-size: 16px; }
    .wd-step h3 { font-size: 1.05rem; }
    .wd-step p { font-size: 13px; }
    .wd-step-arrow { display: none; }
    .wd-step:last-child { grid-column: 1 / -1; }
    .wd-stack-slots {
        grid-template-columns: 1fr;
        gap: 70px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .wd-slot:last-child { display: none; }
    /* Mobile: page-turn keyframe wouldn't be visible (slot 1 hidden);
       use a quick fade on slot 0 instead. */
    .wd-slot:nth-child(1) .wd-port-card.wd-flipping {
        animation: wdMobileFade 480ms ease forwards;
        transform-origin: center;
    }
    @keyframes wdMobileFade {
        to { opacity: 0; transform: rotate(0deg) scale(0.94) translateY(14px); }
    }
}
@media (max-width: 540px) {
    .wd-hero-h1 { letter-spacing: -1.2px; }
    .wd-hero-cta-group { flex-direction: column; width: 100%; max-width: 320px; }
    .wd-hero-cta { justify-content: center; }
    .wd-srow {
        grid-template-columns: 1fr;
        gap: 8px 0;
        padding: 24px 12px;
    }
    .wd-srow-icon { display: none; }
    .wd-srow-desc { grid-column: auto; margin-top: 0; }
    .wd-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .wd-timeline { grid-template-columns: 1fr; }
}
