:root {
    --bg: #111215;
    --bg-elevated: rgba(20, 21, 28, 0.8);
    --bg-strong: #171922;
    --line: rgba(163, 181, 212, 0.18);
    --line-strong: rgba(163, 181, 212, 0.32);
    --text: #f2efe8;
    --muted: #aca79d;
    --accent: #86f7d3;
    --accent-alt: #f4a3ff;
    --accent-warm: #ffd38a;
    --neon-cyan: #2dfbff;
    --neon-magenta: #ff1fcf;
    --neon-cyan-soft: rgba(45, 251, 255, 0.35);
    --neon-magenta-soft: rgba(255, 31, 207, 0.32);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --content-width: calc(100vw - 30px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #171819 0%, #101114 40%, #090b10 100%);
    overflow-x: hidden;
}

body.has-modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff;
    color: #111;
}

.page-shell {
    position: relative;
    width: 100vw;
    margin: 0;
    padding: 0 0 48px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgba(13, 15, 19, 0.68);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 14px;
    z-index: 20;
    transition: top 220ms ease, padding 220ms ease, border-radius 220ms ease, background 220ms ease,
        border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    will-change: top, transform;
}

.site-header.is-condensed {
    top: 0;
    padding: 14px 20px;
    border-radius: 0;
    background: rgba(13, 15, 19, 0.88);
    border-color: var(--line-strong);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    transform: translateY(-8px);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 46px;
    height: 46px;
}

.brand-eyebrow,
.eyebrow,
.section-kicker,
.card-label,
.project-count,
.note-category,
.signal-label,
.footer-kicker {
    margin: 0;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-eyebrow,
.section-kicker,
.signal-label,
.footer-kicker {
    color: var(--accent);
}

.brand-name {
    margin: 0.1rem 0 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.hero-panel,
.section-block,
.contact-panel,
.site-footer {
    border: 0;
    background: linear-gradient(180deg, rgba(22, 24, 29, 0.86), rgba(16, 17, 20, 0.82));
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.parallax-panel {
    position: relative;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 24px;
    padding: 34px;
    border-radius: var(--radius-xl);
}

.hero-copy,
.hero-aside {
    position: relative;
}

.eyebrow {
    color: var(--accent-alt);
    margin-bottom: 14px;
}

.hero-title,
.section-heading h3,
.contact-panel h3,
.service-card h4,
.site-card h4,
.note-card h4,
.project-badge,
.signal-value {
    margin: 0;
}

.hero-title,
.section-heading h3,
.contact-panel h3,
.editorial-copy {
    font-family: "Fraunces", serif;
}

.hero-title {
    max-width: 12ch;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-intro,
.section-copy,
.editorial-copy,
.service-card p,
.site-card p,
.project-summary,
.note-card p,
.footer-copy p,
.contact-details,
.signal-list {
    color: var(--muted);
}

.hero-intro {
    max-width: 62ch;
    margin: 20px 0 0;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #101114;
    background: linear-gradient(135deg, var(--accent) 0%, #d7ffec 100%);
}

.button-secondary {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.status-pill {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(134, 247, 211, 0.18);
    border-radius: 999px;
    background: rgba(134, 247, 211, 0.06);
    color: #d7ffec;
    font-size: 0.92rem;
}

.status-dot,
.site-card-dot {
    border-radius: 50%;
    flex: 0 0 auto;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(134, 247, 211, 0.9);
    animation: pulse 1.8s ease-in-out infinite;
}

.hero-aside {
    display: grid;
    gap: 16px;
}

.signal-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(10, 11, 14, 0.5);
}

.signal-card-main {
    min-height: 100%;
}

.signal-list {
    margin: 16px 0 0;
    padding-left: 18px;
    line-height: 1.75;
}

.signal-value {
    margin-top: 10px;
    font-size: 1.25rem;
    line-height: 1.35;
}

.section-block,
.contact-panel,
.site-footer {
    padding: 30px;
    margin-top: 0;
    border-radius: 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h3,
.contact-panel h3 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 16ch;
}

.section-copy {
    margin-top: 14px;
    max-width: 52ch;
    line-height: 1.75;
}

.service-grid,
.site-grid,
.note-list,
.editorial-grid {
    display: grid;
    gap: 16px;
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.site-card,
.note-card,
.editorial-card,
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(10, 11, 14, 0.55);
    isolation: isolate;
    transition: border-color 180ms ease, box-shadow 220ms ease;
}

.service-card,
.editorial-card,
.note-card,
.project-card {
    padding: 22px;
}

.service-card::before,
.site-card::before,
.project-card::before,
.note-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    opacity: 0.46;
    transition: opacity 220ms ease, transform 12s ease-in-out;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
    background:
        radial-gradient(circle at 24% 28%, rgba(255, 31, 207, 0.28), rgba(255, 31, 207, 0) 48%),
        radial-gradient(circle at 82% 68%, rgba(45, 251, 255, 0.24), rgba(45, 251, 255, 0) 50%),
        radial-gradient(circle at 48% 84%, rgba(255, 31, 207, 0.14), rgba(255, 31, 207, 0) 42%);
    transform: scale(1.05);
    animation: tile-plasma-shift 12s ease-in-out infinite alternate;
}

.tile-card>* {
    position: relative;
    z-index: 2;
}

.tile-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(255, 31, 207, 0.35), 0 0 22px rgba(255, 31, 207, 0.28), 0 0 28px rgba(45, 251, 255, 0.18);
    transition: opacity 220ms ease;
}

.service-card:hover::before,
.site-card:hover::before,
.project-card:hover::before,
.note-card:hover::before {
    opacity: 0.72;
}

.tile-card:hover::after,
.tile-card:focus-within::after {
    opacity: 1;
}

.service-card:hover,
.service-card:focus-within,
.site-card:hover,
.site-card:focus-within,
.project-card:hover,
.project-card:focus-within,
.note-card:hover,
.note-card:focus-within {
    border-color: rgba(255, 31, 207, 0.44);
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.4),
        0 0 16px var(--neon-magenta-soft),
        0 0 24px var(--neon-cyan-soft),
        inset 0 0 18px rgba(255, 255, 255, 0.02);
}

.card-label {
    color: var(--accent-alt);
    margin-bottom: 12px;
}

.service-card h4,
.site-card h4,
.note-card h4 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 10px;
}

.service-card p,
.editorial-card p,
.note-card p,
.site-card p,
.project-summary,
.contact-details,
.footer-copy p {
    line-height: 1.7;
}

.site-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.site-card {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 22px;
    text-decoration: none;
}

.site-card-dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    background: var(--accent-alt);
    box-shadow: 0 0 12px rgba(244, 163, 255, 0.8);
}

.site-card span:last-child,
.project-count,
.note-category {
    color: var(--accent-warm);
}

.site-card span:last-child {
    display: inline-block;
    margin-top: 12px;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 26px;
}

.sticky-heading {
    position: sticky;
    top: 110px;
    align-self: start;
}

.project-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.project-badge {
    font-family: "Fraunces", serif;
    font-size: 1.4rem;
}

.project-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.project-list li+li {
    margin-top: 10px;
}

.project-list a {
    display: inline-flex;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(163, 181, 212, 0.12);
    text-decoration: none;
    transition: color 180ms ease;
    overflow-wrap: anywhere;
}

.project-count {
    white-space: nowrap;
}

.project-list a:hover,
.note-card a:hover,
.contact-links a:hover,
.footer-meta a:hover {
    color: var(--accent);
}

.theme-public {
    border-color: rgba(134, 247, 211, 0.24);
}

.theme-private {
    border-color: rgba(244, 163, 255, 0.22);
}

.theme-development {
    border-color: rgba(255, 211, 138, 0.22);
}

.editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-block,
.hero-panel,
.site-footer {
    width: 100%;
}

.section-inner {
    width: min(1120px, calc(100vw - 48px));
    margin: 0 auto;
}

.landing-gradient {
    background: linear-gradient(180deg, #08090d 0%, #07090d 100%);
}

.content-gradient {
    background: linear-gradient(180deg, #08090d 0%, #07090d 100%);
}

.plasma-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #05070b;
    border-radius: 0;
}

/* Canvas injected by JS sits at z-index 0 */
.plasma-panel>.plasma-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.plasma-panel>.section-inner {
    position: relative;
    z-index: 2;
}

.plasma-panel>.section-inner>* {
    position: relative;
    z-index: 2;
}

.mini-heading {
    margin: 24px 0 10px;
}

.two-col-copy {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.long-copy {
    margin: 0;
    color: #d4d0c9;
    line-height: 1.65;
    font-size: 1.05rem;
}

.parallax-image {
    min-height: 380px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.pineapple-image {
    background-image: url("https://topshelf.tech/wp-content/uploads/2022/02/Laptop-with-Pineapple-and-Plant-2250x1500-80percent.webp");
}

.coding-image {
    background-image: url("https://topshelf.tech/wp-content/uploads/2022/02/Development-Coding-scaled-80percent.webp");
}

.lines-image {
    background-image: url("https://topshelf.tech/wp-content/uploads/2022/02/Pink-with-White-Lines-80percent-2000x1200.webp");
}

.editorial-copy {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.35;
}

.notes-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 22px;
}

.note-card a {
    text-decoration: none;
}

.contact-panel {
    max-width: 680px;
}

.contact-panel h3 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.contact-location {
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.footer-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
    color: var(--muted);
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.modal-shell.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 10, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.project-modal {
    position: relative;
    width: min(760px, 100%);
    max-height: min(90vh, 920px);
    overflow: auto;
    padding: 30px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.98), rgba(12, 13, 16, 0.96));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.modal-close span {
    font-size: 1.8rem;
    line-height: 1;
    transform: rotate(45deg);
}

.modal-copy h2 {
    margin: 6px 0 0;
    font-family: "Fraunces", serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.modal-copy p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.project-request-form {
    margin-top: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.form-grid span {
    color: var(--text);
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(163, 181, 212, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: rgba(242, 239, 232, 0.42);
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: rgba(134, 247, 211, 0.62);
    box-shadow: 0 0 0 4px rgba(134, 247, 211, 0.08);
}

.form-grid-full {
    grid-column: 1 / -1;
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.form-status {
    min-height: 1.5rem;
    margin: 8px 0 0;
    color: var(--muted);
}

.form-status-inline {
    min-height: 0;
    margin-top: 18px;
}

.form-status-success {
    color: #d7ffec;
}

.form-status-error {
    color: #ffd0b6;
}

.form-status-pending {
    color: var(--accent-warm);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.82);
        opacity: 0.65;
    }
}

@keyframes plasma-drift-a {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-6rem, 4rem, 0) scale(1.12);
    }
}

@keyframes plasma-drift-b {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(5rem, -3rem, 0) scale(1.15);
    }
}

@keyframes plasma-drift-c {
    from {
        transform: translate3d(-2rem, 0, 0) scale(0.96);
    }

    to {
        transform: translate3d(3rem, 3rem, 0) scale(1.08);
    }
}

@keyframes plasma-drift-d {
    from {
        transform: translate3d(0, -2rem, 0) scale(0.94);
    }

    to {
        transform: translate3d(-2rem, 3rem, 0) scale(1.08);
    }
}

@keyframes tile-plasma-shift {
    from {
        transform: scale(1.04) translate3d(-1.5%, -1.2%, 0);
    }

    to {
        transform: scale(1.07) translate3d(1.8%, 1.4%, 0);
    }
}

/* panel-plasma-drift keyframes removed — canvas handles animation */

@media (max-width: 1080px) {

    .hero-panel,
    .split-layout,
    .notes-layout,
    .service-grid,
    .site-grid,
    .project-columns,
    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .sticky-heading {
        position: static;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .two-col-copy {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-meta {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 820px) {
    .page-shell {
        width: 100vw;
        padding-top: 0;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0;
        padding: 18px;
    }

    .site-header.is-condensed {
        top: 0;
        padding: 14px 16px;
        border-radius: 22px;
        transform: translateY(-4px);
    }

    .site-nav {
        gap: 12px 16px;
    }

    .hero-panel,
    .section-block,
    .contact-panel,
    .site-footer {
        padding: 22px;
        border-radius: 0;
    }

    .section-inner {
        width: calc(100vw - 28px);
    }

    .parallax-image {
        min-height: 240px;
        background-attachment: scroll;
    }

    .hero-title {
        max-width: 100%;
    }

    .project-modal {
        padding: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@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;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .service-card::before,
    .site-card::before,
    .project-card::before,
    .note-card::before {
        animation: none;
    }

    .parallax-image {
        background-attachment: scroll;
    }
}