/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

:root {
    --hero-shift: -15vw;
    --content-start: 52vw;
    --bg: #ffffff;
    --fg: #000000;
    --muted: rgba(0, 0, 0, 0.12);
    --accent: rgba(0, 0, 0, 0.92);
    --spot-x: 50vw;
    --spot-y: 40vh;
    --bg-shift-x1: 0px;
    --bg-shift-y1: 0px;
    --bg-shift-x2: 0px;
    --bg-shift-y2: 0px;
    --bg-shift-x3: 0px;
    --bg-shift-y3: 0px;
    --bg-gradient: radial-gradient(1200px 900px at calc(12% + var(--bg-shift-x1)) calc(18% + var(--bg-shift-y1)), rgba(0, 0, 0, 0.08), transparent 60%),
        radial-gradient(900px 700px at calc(88% + var(--bg-shift-x2)) calc(28% + var(--bg-shift-y2)), rgba(0, 0, 0, 0.06), transparent 55%),
        radial-gradient(1000px 800px at calc(55% + var(--bg-shift-x3)) calc(105% + var(--bg-shift-y3)), rgba(0, 0, 0, 0.05), transparent 60%);
    --scroll-track: rgba(0, 0, 0, 0.06);
    --scroll-thumb: rgba(0, 0, 0, 0.35);
    --scroll-thumb-hover: rgba(0, 0, 0, 0.55);
}

body.theme-dark {
    --bg: #000000;
    --fg: #ffffff;
    --muted: rgba(255, 255, 255, 0.18);
    --accent: rgba(255, 255, 255, 0.92);
    --bg-gradient: radial-gradient(1200px 900px at calc(12% + var(--bg-shift-x1)) calc(18% + var(--bg-shift-y1)), rgba(255, 255, 255, 0.14), transparent 62%),
        radial-gradient(900px 700px at calc(88% + var(--bg-shift-x2)) calc(28% + var(--bg-shift-y2)), rgba(255, 255, 255, 0.10), transparent 56%),
        radial-gradient(1000px 800px at calc(55% + var(--bg-shift-x3)) calc(105% + var(--bg-shift-y3)), rgba(255, 255, 255, 0.08), transparent 62%);
    --scroll-track: rgba(255, 255, 255, 0.08);
    --scroll-thumb: rgba(255, 255, 255, 0.35);
    --scroll-thumb-hover: rgba(255, 255, 255, 0.6);
    color-scheme: dark;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--fg);
    line-height: 1.4;
    overflow-x: hidden; /* Prevent horizontal scroll due to oversized SVG */
    isolation: isolate;
    transition: background-color 240ms ease, color 240ms ease;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(920px circle at var(--spot-x) var(--spot-y), rgba(0, 0, 0, 0.22), transparent 64%);
    mix-blend-mode: multiply;
    opacity: 0.85;
}

body.theme-dark::before {
    background: radial-gradient(920px circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.24), transparent 64%);
    mix-blend-mode: screen;
    opacity: 0.72;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23n)' opacity='.40'/%3E%3C/svg%3E");
    background-size: 260px 260px;
    mix-blend-mode: overlay;
    opacity: 0.06;
}

body.theme-dark::after {
    opacity: 0.09;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--scroll-track);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border-radius: 999px;
    border: 3px solid var(--scroll-track);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-thumb-hover);
}

main {
    position: relative;
    z-index: 2;
    padding-left: calc(var(--content-start) + var(--hero-shift));
    padding-right: 5vw;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: normal; /* Ensure visibility over elements if they overlap, though design is clean black/white */
    color: var(--fg);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.logo {
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-toggle {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: opacity 0.3s ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.logo-toggle:hover {
    opacity: 0.6;
}

.logo-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    opacity: 0.8;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}

.logo-toggle:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.logo-toggle:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 101;
}

.menu-toggle svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.site-header nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-header nav a {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: opacity 0.3s ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.external-icon {
    width: 0.95em;
    height: 0.95em;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;
    transform: translateY(-0.03em);
}

.site-header nav a:hover {
    opacity: 0.6;
}

.site-header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.3rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    opacity: 0.75;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}

.site-header nav a:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.site-nav {
    position: static;
    border: 0;
    background: none;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

body.nav-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Hero Section */
.hero {
    height: 100svh;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-visual {
    position: fixed;
    left: -4vw;
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--content-start) + var(--hero-shift));
    height: 100svh;
    padding: 4svh 2vw;
    z-index: 1;
    opacity: var(--hero-visual-opacity, 0.1);
    transition: opacity 620ms ease;
    pointer-events: none;
}

.hero-visual svg {
    width: 100%;
    height: 100%;
    fill: var(--fg);
    display: block;
    transform: translateX(-18%) scale(2.3);
    transform-origin: 50% 50%;
}

@media (min-width: 1025px) {
    .hero {
        width: 100vw;
        margin-left: calc(-1 * (var(--content-start) + var(--hero-shift)));
        margin-right: -5vw;
    }
}

.hero-visual svg path {
    will-change: transform;
    transform-box: fill-box;
    transform-origin: center;
}

.hero-text {
    margin-left: 0;
    z-index: 2;
    padding-right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (min-width: 1025px) {
    .hero-text {
        justify-content: flex-start;
        padding-left: 3rem;
    }
}

.hero-text h1 {
    font-size: clamp(44px, 5.4vw, 96px); /* Responsive large text */
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

#changing-word {
    display: inline-block;
    min-width: 12ch; /* Reserve space to prevent layout shifts */
    text-align: left;
}

/* Blur Effect Class */
.blur-effect {
    filter: blur(4px);
    opacity: 0.8;
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(10px);
    transition: opacity 820ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 820ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Content Sections */
.content-section {
    min-height: auto;
    padding: 3.5rem 0;
    display: flex;
    align-items: flex-start;
    border-top: 0;
    scroll-margin-top: 7.5rem;
}

.container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(160px, 12vw) minmax(0, 1fr);
    column-gap: 3rem;
    row-gap: 0.75rem;
}

.content-section h2 {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.content-section p {
    font-size: 1.6rem;
    font-weight: 300;
    max-width: 80ch;
    letter-spacing: 0.01em;
}

.content-section .container > :not(h2) {
    grid-column: 2;
}

.copy {
    grid-column: 2;
}

.copy p + p {
    margin-top: 1.25rem;
}

.contact-copy {
    max-width: 62ch;
}

.contact-link {
    display: inline-block;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-link:hover {
    opacity: 0.65;
    transform: translateY(-1px);
}

.contact-link:hover {
    opacity: 0.65;
    transform: translateY(-1px);
}

.services-list {
    grid-column: 2;
    width: 100%;
    max-width: 62ch;
    border-top: 0;
    margin-top: 0.75rem;
}

.services-intro {
    max-width: 62ch;
    margin-bottom: 2.25rem;
}

.services-intro p {
    font-size: 1.45rem;
}

.engagement-modes {
    max-width: 62ch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.engagement-modes .mode,
.process-steps .step {
    border-top: 1px solid var(--muted);
    padding-top: 0.9rem;
}

.engagement-modes h3,
.services-exclusions h3,
.process-steps h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.engagement-modes p,
.process-steps p {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    max-width: none;
}

.services-exclusions {
    max-width: 62ch;
    margin-top: 2.75rem;
}

.services-exclusions ul {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.6rem;
}

.services-exclusions li {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    opacity: 0.85;
    position: relative;
    padding-left: 1.1rem;
}

.services-exclusions li::before {
    content: '·';
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.6;
}

.services-cta {
    max-width: 62ch;
    margin-top: 2.25rem;
    padding-top: 0;
    border-top: 0;
}

.services-cta p {
    font-size: 1.35rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.cta-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta-link:hover {
    opacity: 0.65;
    transform: translateY(-1px);
}

.services-list details {
    border-bottom: 1px solid var(--muted);
    padding: 0.9rem 0.25rem;
}

.services-list summary {
    cursor: pointer;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    list-style: none;
}

.services-list summary::-webkit-details-marker {
    display: none;
}

.services-list summary::after {
    content: '+';
    flex: 0 0 auto;
    opacity: 0.7;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}

.services-list details[open] summary::after {
    transform: rotate(45deg);
    opacity: 1;
}

.service-body {
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: height 520ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: height, opacity, transform;
}

.services-list details[open] .service-body {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    padding-left: 0.6rem;
    padding-right: 0.25rem;
    margin-top: 0.35rem;
    height: auto;
    opacity: 1;
    transform: translateY(0);
}

.services-list details[data-closing="true"] .service-body {
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
}

.service-body p {
    font-size: 1.2rem;
    line-height: 1.55;
    max-width: none;
    display: grid;
    grid-template-columns: 9ch minmax(0, 1fr);
    column-gap: 2.1rem;
    align-items: start;
}

.service-body p + p {
    margin-top: 1.25rem;
}

.service-body .label {
    display: block;
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    transform: none;
}

.service-body .value {
    display: block;
}

.process-steps {
    max-width: 62ch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 1025px) {
    #services.content-section {
        padding-bottom: 2.6rem;
    }

    #process.content-section {
        padding-top: 2.6rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .blur-effect {
        filter: none;
        opacity: 0.5; /* Simple fade instead of blur */
        transition: opacity 0.2s;
    }

    body::before,
    body::after {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    :root {
        --hero-shift: 0vw;
        --content-start: 0vw;
    }

    body {
        background-attachment: scroll;
    }

    main {
        padding-left: 0;
        padding-right: 0;
    }

    .site-header {
        position: absolute;
        padding: 1.25rem 1.5rem;
    }

    .logo {
        white-space: nowrap;
        font-size: 1.05rem;
    }

    .menu-toggle {
        display: inline-flex;
        width: 3rem;
        height: 3rem;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1.5rem;
        right: 1.5rem;
        border: 1px solid var(--muted);
        background: var(--bg);
        padding: 1rem;
        z-index: 102;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    body.nav-open .site-nav {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-header nav ul {
        display: grid;
        gap: 1rem;
    }

    .site-header nav a {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-text {
        padding: 0 1.5rem;
    }

    .hero-text h1 {
        font-size: clamp(34px, 9.5vw, 56px);
        letter-spacing: 0.04em;
        white-space: normal;
        text-wrap: balance;
        max-width: 22ch;
    }

    #changing-word {
        min-width: 0;
    }

    .content-section {
        padding: 3rem 1.5rem;
        justify-content: flex-start;
    }

    .container {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 1rem;
    }

    .content-section .container > :not(h2),
    .copy {
        grid-column: 1;
    }

    .content-section h2 {
        margin-bottom: 1rem;
    }

    .content-section p {
        font-size: 1.2rem;
        line-height: 1.55;
        max-width: none;
    }

    .copy p + p {
        margin-top: 0.9rem;
    }

    .services-list {
        max-width: none;
    }

    .engagement-modes,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .engagement-modes .mode,
    .process-steps .step,
    .services-cta {
        border-top: 0;
        padding-top: 0;
    }

    .services-exclusions li {
        padding-left: 0;
    }

    .services-exclusions li::before {
        content: '';
    }

    .service-body {
        display: block;
    }

    .service-body p {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 0.5rem;
    }

    .service-body .label {
        display: block;
        min-width: 0;
        margin-bottom: 0;
        transform: none;
    }
}

@media (max-width: 380px) {
    .site-header {
        padding: 1rem 1.1rem;
    }

    .hero-text h1 {
        font-size: clamp(30px, 10vw, 48px);
        letter-spacing: 0.045em;
    }
}