:root {
    --color-bg: #050505;
    --color-surface: #0d0d0e;
    --color-surface-alt: #151515;
    --color-border: rgba(255, 255, 255, 0.12);
    --color-text: #f3efe8;
    --color-text-muted: #a7a5a0;
    --color-accent: #c83a3f;
    --color-accent-hover: #e6bd72;
    --accent-rgb: 200, 58, 63;
    --accent-hover-rgb: 230, 189, 114;
    --accent-deep-rgb: 45, 186, 168;
    --accent-soft-rgb: 234, 232, 222;
    --radius-sm: 0.5rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.5rem;
    --section-space: 6.5rem;
    --container-width: min(90vw, 74rem);
}

* {
    letter-spacing: 0 !important;
}

html {
    scroll-padding-top: 5.25rem;
}

body {
    min-width: 20rem;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 0.0625rem, transparent 0.0625rem),
        linear-gradient(180deg, rgba(255,255,255,0.025) 0.0625rem, transparent 0.0625rem),
        #050505;
    background-size: 5.5rem 5.5rem, 5.5rem 5.5rem, auto;
    color: var(--color-text);
    text-rendering: geometricPrecision;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(200,58,63,0.12), transparent 34%),
        linear-gradient(300deg, rgba(45,186,168,0.1), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 42%, rgba(255,255,255,0.02));
}

h1,
h2,
h3,
h4,
p,
a,
span,
strong,
label,
input,
textarea {
    overflow-wrap: break-word;
}

::selection {
    background: rgba(var(--accent-rgb), 0.42);
    color: #fff;
}

.container {
    width: var(--container-width);
}

.site-wrapper {
    position: relative;
    overflow: clip;
}

.site-main {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), transparent 9rem),
        linear-gradient(180deg, transparent, rgba(200,58,63,0.035) 48%, transparent 74%);
}

section {
    position: relative;
    isolation: isolate;
    border-top: 0.0625rem solid rgba(255,255,255,0.08);
}

.btn,
.nav-link,
.nav-cta,
.nav-toggle,
.hero-actions .btn,
.nw-actions .btn,
.footer-signals span,
.services-signals span,
.services-band-points span,
.studio-signals span,
.contact-points span,
.nw-card-state {
    border-radius: 0.5rem !important;
}

.btn,
.hero-actions .btn,
.nw-actions .btn {
    min-height: 3.15rem;
    border: 0.0625rem solid rgba(255,255,255,0.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        rgba(10,10,10,0.7);
    color: var(--color-text);
    box-shadow: none;
    transform: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.btn-primary,
.hero-actions .btn-primary,
.nw-actions .btn-primary {
    border-color: rgba(var(--accent-rgb), 0.8);
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.92), rgba(115, 20, 28, 0.92));
    color: #fff;
}

.btn-secondary,
.hero-actions .btn-secondary,
.nw-actions .btn-secondary {
    border-color: rgba(255,255,255,0.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02)),
        rgba(255,255,255,0.018);
}

.btn:hover,
.hero-actions .btn:hover,
.nw-actions .btn:hover {
    transform: translateY(-0.125rem);
    border-color: rgba(var(--accent-hover-rgb), 0.85);
}

.btn:focus-visible,
.brand:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
.nav-toggle:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 0.125rem solid rgba(var(--accent-hover-rgb), 0.78);
    outline-offset: 0.1875rem;
    box-shadow: none !important;
}

.hero-atmosphere,
.hero-glow,
.hero-particles,
.nw-atmosphere,
.nw-glow,
.projects-heading-block::before,
.services-heading::before,
.studio-heading::before,
.contact-content::before,
.studio-manifesto-note::before {
    display: none !important;
}

.hero-noise,
.nw-noise {
    opacity: 0.12;
    mix-blend-mode: screen;
}

.hero-grid-lines,
.nw-grid-lines {
    opacity: 0.22;
    background:
        linear-gradient(rgba(255,255,255,0.045) 0.0625rem, transparent 0.0625rem),
        linear-gradient(90deg, rgba(255,255,255,0.045) 0.0625rem, transparent 0.0625rem) !important;
    background-size: 4rem 4rem !important;
    mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent) !important;
}

/* Navbar */
.site-header {
    background: rgba(5, 5, 5, 0.82);
    border-bottom-color: rgba(255,255,255,0.1);
}

.site-header.is-scrolled {
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.36);
}

.navbar {
    min-height: 4.75rem;
}

.brand-mark {
    border-radius: 0.5rem;
    border-color: rgba(var(--accent-rgb), 0.58);
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb),0.38), rgba(255,255,255,0.035)),
        #111;
}

.brand-mark::after {
    display: none;
}

.brand-text {
    color: #fff8ee;
}

.brand-meta {
    color: rgba(243,239,232,0.52);
}

.nav-menu {
    gap: 0.35rem;
}

.nav-link,
.nav-cta {
    min-height: 2.65rem;
    color: rgba(243,239,232,0.7);
}

.nav-link::before,
.nav-link::after,
.nav-cta::after {
    display: none;
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-current="true"] {
    color: #fff;
    background: rgba(255,255,255,0.075);
}

.nav-cta {
    border-color: rgba(var(--accent-rgb), 0.58);
    background: rgba(var(--accent-rgb), 0.18);
}

.nav-cta:hover {
    background: rgba(var(--accent-rgb), 0.28);
}

/* Hero */
.hero-section {
    min-height: 82svh;
    padding: 5.75rem 0 4.5rem;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, #050505 0%, rgba(5,5,5,0.86) 28%, rgba(5,5,5,0.18) 58%, #050505 100%),
        #050505;
}

.hero-bg {
    opacity: 0.78;
    filter: saturate(0.88) contrast(1.08);
    transform: translate3d(calc(var(--hero-parallax-x) * 0.25), calc(var(--hero-parallax-y) * 0.25), 0) scale(1.04);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5,5,5,0.96) 0%, rgba(5,5,5,0.72) 33%, rgba(5,5,5,0.14) 56%, rgba(5,5,5,0.88) 100%),
        linear-gradient(180deg, rgba(5,5,5,0.72), rgba(5,5,5,0.14) 45%, rgba(5,5,5,0.86)) !important;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.72fr);
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 59rem;
}

.hero-content::before,
.nw-content::before {
    width: 5.5rem;
    background: linear-gradient(90deg, rgba(var(--accent-rgb),0.92), rgba(var(--accent-hover-rgb),0.85));
}

.eyebrow,
.nw-eyebrow,
.services-eyebrow,
.studio-eyebrow,
.projects-eyebrow,
.contact-eyebrow,
.card-label,
.side-note-label,
.nw-card-label,
.nw-feature-label,
.service-label,
.service-number,
.studio-value-label,
.studio-value-number,
.project-type,
.project-label,
.footer-kicker,
.services-kicker,
.projects-kicker,
.studio-aside-label,
.studio-manifesto-label,
.studio-note-label,
.projects-footer-label,
.services-rail-label,
.services-band-label {
    color: rgba(243,239,232,0.68) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 12.5ch;
    color: #fff8ee;
    font-size: 4.8rem !important;
    line-height: 0.96;
}

.hero-content h1 span,
.contact-title span {
    color: #e6bd72;
}

.hero-text {
    max-width: 42rem;
    color: rgba(243,239,232,0.74);
    font-size: 1.05rem;
    line-height: 1.78;
}

.hero-actions,
.nw-actions {
    gap: 0.8rem;
}

.hero-panel {
    perspective: none;
}

.hero-card,
.nw-card,
.nw-feature-card,
.service-card,
.studio-aside,
.studio-manifesto-copy,
.studio-manifesto-note,
.studio-value,
.project-card,
.contact-form,
.services-lower-band {
    border-radius: 0.5rem !important;
    border: 0.0625rem solid rgba(255,255,255,0.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018)),
        rgba(10,10,10,0.78);
    box-shadow:
        0 1.4rem 3.5rem rgba(0,0,0,0.24),
        inset 0 0 0 0.0625rem rgba(255,255,255,0.035);
    transform: none;
}

.hero-card {
    padding: 1.6rem;
    max-width: 27rem;
    margin-left: auto;
}

.hero-card::before,
.hero-card::after,
.nw-card::before,
.service-card::before,
.studio-value::before,
.studio-manifesto-note::after {
    border-radius: 0;
    background: linear-gradient(90deg, rgba(var(--accent-rgb),0.86), rgba(var(--accent-hover-rgb),0.68), transparent) !important;
}

.hero-card h2,
.nw-card h3,
.services-title,
.studio-title,
.projects-title,
.contact-title,
.nw-title {
    color: #fff8ee !important;
}

.hero-card h2 {
    font-size: 1.48rem !important;
    line-height: 1.16;
}

.hero-card-text,
.card-list-item p,
.side-note-text,
.nw-card-text,
.nw-card-item p,
.service-card p,
.studio-intro,
.studio-aside p:last-of-type,
.studio-manifesto-copy p:not(.studio-manifesto-label),
.studio-value > p,
.projects-intro,
.project-content p,
.projects-footer p:last-child,
.contact-text,
.services-intro,
.services-rail-copy {
    color: rgba(243,239,232,0.72) !important;
}

.list-dot,
.nw-dot {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 0.55rem;
    border-radius: 0.125rem;
    background: #e6bd72;
    box-shadow: none;
}

/* Nameless Wound */
.nw-section {
    padding: 6rem 0;
    background:
        linear-gradient(90deg, rgba(200,58,63,0.08), transparent 34%),
        linear-gradient(180deg, #070707, #050505);
}

.nw-bg,
.services-bg,
.studio-bg,
.projects-bg,
.contact-bg {
    opacity: 0.64;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 0.0625rem, transparent 0.0625rem),
        linear-gradient(180deg, rgba(255,255,255,0.03) 0.0625rem, transparent 0.0625rem) !important;
    background-size: 4.5rem 4.5rem !important;
}

.nw-overlay,
.services-overlay,
.studio-overlay,
.projects-overlay,
.contact-overlay {
    background:
        linear-gradient(120deg, rgba(200,58,63,0.12), transparent 38%),
        linear-gradient(300deg, rgba(45,186,168,0.09), transparent 36%),
        linear-gradient(180deg, rgba(5,5,5,0.64), rgba(5,5,5,0.92)) !important;
}

.nw-grid {
    grid-template-columns: minmax(22rem, 0.88fr) minmax(0, 1.02fr);
    gap: 4rem;
}

.nw-title {
    font-size: 4.6rem !important;
    line-height: 0.95;
}

.nw-subtitle {
    color: #e6bd72;
}

.nw-text {
    color: rgba(243,239,232,0.72);
}

.nw-visual::before {
    border-radius: 0.5rem;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb),0.18), transparent 44%),
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)) !important;
}

.nw-character {
    border-radius: 0.5rem;
    background:
        linear-gradient(120deg, transparent 0 18%, rgba(255,255,255,0.08) 18% 19%, transparent 19% 44%, rgba(200,58,63,0.36) 44% 46%, transparent 46%),
        linear-gradient(180deg, rgba(230,189,114,0.12), rgba(45,186,168,0.08)) !important;
}

.nw-feature-grid {
    gap: 0.75rem;
}

/* Service, Studio, Projects */
.services-section,
.studio-section,
.projects-section,
.contact-section {
    padding: 5.8rem 0;
    background: #050505;
}

.services-title,
.studio-title,
.projects-title,
.contact-title {
    font-size: 3.1rem !important;
    line-height: 1;
}

.services-header,
.studio-header,
.projects-header,
.contact-grid {
    gap: 3rem;
}

.services-grid,
.studio-values,
.projects-grid {
    gap: 1rem;
}

.service-card,
.studio-value,
.project-card {
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

.service-card:hover,
.studio-value:hover,
.project-card:hover {
    transform: translateY(-0.25rem);
    border-color: rgba(var(--accent-hover-rgb),0.42);
}

.service-card:nth-child(2),
.service-card:nth-child(3),
.studio-value:nth-child(2),
.studio-value:nth-child(3) {
    transform: none;
}

.service-card h3,
.studio-value h3,
.project-content h3,
.services-band-copy h3,
.studio-note-quote,
.studio-aside h3 {
    color: #fff8ee;
    font-size: 1.35rem !important;
    line-height: 1.18;
}

.service-note,
.studio-value-note,
.project-note {
    color: rgba(230,189,114,0.88);
}

.project-thumb {
    min-height: 11.5rem;
    background:
        linear-gradient(135deg, rgba(200,58,63,0.24), transparent 42%),
        linear-gradient(315deg, rgba(45,186,168,0.18), transparent 38%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 0.0625rem, transparent 0.0625rem 1rem),
        #101011 !important;
}

.project-thumb::after {
    background:
        linear-gradient(180deg, transparent, rgba(0,0,0,0.32)),
        linear-gradient(90deg, transparent 0 28%, rgba(255,255,255,0.12) 28% 28.4%, transparent 28.4% 100%);
}

.project-top {
    gap: 0.6rem;
}

.projects-footer {
    border-top-color: rgba(255,255,255,0.12);
}

.services-lower-band {
    align-items: center;
}

.services-band-points span,
.services-signals span,
.studio-signals span,
.footer-signals span,
.contact-points span {
    background: rgba(255,255,255,0.045);
    border-color: rgba(255,255,255,0.12);
}

/* Contact */
.contact-form-wrapper {
    max-width: 33rem;
}

.contact-form {
    padding: 1.35rem;
}

.form-group label {
    color: rgba(243,239,232,0.72);
}

.form-group input,
.form-group textarea {
    border-radius: 0.5rem;
    border-color: rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.045);
    color: #fff8ee;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    border-color: rgba(var(--accent-hover-rgb),0.74);
    background: rgba(255,255,255,0.065);
}

/* Footer */
.site-footer {
    background:
        linear-gradient(120deg, rgba(200,58,63,0.1), transparent 40%),
        linear-gradient(180deg, #050505, #080808);
}

.footer-brand h3 {
    color: #fff8ee;
    font-size: 1.5rem !important;
}

.footer-link {
    color: #e6bd72 !important;
}

@media (max-width: 80rem) {
    .hero-content h1 {
        font-size: 4rem !important;
    }

    .nw-title {
        font-size: 3.7rem !important;
    }

    .services-title,
    .studio-title,
    .projects-title,
    .contact-title {
        font-size: 2.7rem !important;
    }
}

@media (max-width: 64rem) {
    :root {
        --container-width: 92vw;
    }

    .hero-section {
        min-height: auto;
        padding: 5rem 0 4.25rem;
    }

    .hero-grid,
    .nw-grid,
    .services-header,
    .studio-header,
    .projects-header,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .hero-card {
        max-width: none;
        margin-left: 0;
    }

    .nw-visual {
        min-height: 26rem;
        order: 2;
    }

    .nw-content {
        order: 1;
    }

    .services-grid,
    .studio-values,
    .projects-grid,
    .nw-feature-grid {
        grid-template-columns: 1fr !important;
    }

    .services-lower-band,
    .studio-manifesto,
    .projects-footer,
    .services-rail {
        grid-template-columns: 1fr !important;
    }

    .nav-menu {
        border-radius: 0.5rem;
    }
}

@media (max-width: 48rem) {
    .hero-content h1 {
        font-size: 3rem !important;
        max-width: 100%;
    }

    .nw-title,
    .services-title,
    .studio-title,
    .projects-title,
    .contact-title {
        font-size: 2.35rem !important;
        max-width: 100%;
    }

    .hero-text,
    .nw-text,
    .contact-text,
    .services-intro,
    .projects-intro,
    .studio-intro {
        font-size: 0.96rem !important;
        line-height: 1.7;
    }

    .hero-actions,
    .nw-actions {
        align-items: stretch;
    }

    .btn,
    .hero-actions .btn,
    .nw-actions .btn {
        width: 100%;
    }

    .service-card,
    .studio-value,
    .project-card,
    .contact-form,
    .hero-card,
    .nw-card,
    .studio-manifesto-copy,
    .studio-manifesto-note,
    .services-lower-band {
        padding: 1.15rem;
    }
}

@media (max-width: 30rem) {
    .hero-content h1 {
        font-size: 2.45rem !important;
    }

    .nw-title,
    .services-title,
    .studio-title,
    .projects-title,
    .contact-title {
        font-size: 2rem !important;
    }

    .brand-text {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
