@layer reset, base, components, sections, responsive;

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    body,
    h1,
    h2,
    h3,
    p,
    ol {
        margin: 0;
    }

    ol {
        padding: 0;
        list-style: none;
    }

    img {
        display: block;
        max-width: 100%;
    }

    button,
    a {
        color: inherit;
    }

    button {
        font: inherit;
    }
}

@layer base {
    :root {
        --ink: #07101c;
        --ink-soft: #0b1928;
        --ink-blue: #0b2239;
        --blue-mid: #12395f;
        --blue-light: #2a6192;
        --paper: #e9e7e1;
        --paper-soft: #d2d0ca;
        --muted: #969994;
        --line: rgb(233 231 225 / 16%);
        --line-light: rgb(9 11 14 / 15%);
        --champagne: #c2aa7a;
        --champagne-light: #dfcfaf;
        --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
        --sans: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
        --shell: min(100% - 2rem, 82rem);
    }

    html {
        background: var(--ink);
        color-scheme: dark;
    }

    body {
        min-width: 20rem;
        overflow-x: hidden;
        background:
            radial-gradient(circle at 80% 5%, rgb(42 97 146 / 23%), transparent 30rem),
            radial-gradient(circle at 8% 42%, rgb(18 57 95 / 14%), transparent 34rem),
            var(--ink);
        color: var(--paper);
        font-family: var(--sans);
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.65;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    ::selection {
        background: var(--champagne);
        color: var(--ink);
    }

    a {
        text-decoration: none;
    }

    :focus-visible {
        outline: 2px solid var(--champagne-light);
        outline-offset: 5px;
    }

    h1,
    h2,
    h3 {
        font-weight: 400;
        line-height: 1.04;
        text-wrap: balance;
    }

    h1,
    h2 {
        font-family: var(--serif);
        letter-spacing: -0.035em;
    }

    h1 em,
    h2 em {
        color: var(--champagne-light);
        font-weight: 400;
    }

    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .section {
        position: relative;
        padding-block: 20px;
    }

    .section-shell {
        width: var(--shell);
        margin-inline: auto;
    }

    .section-label,
    .eyebrow {
        color: var(--champagne);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.19em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .section-label::before,
    .eyebrow::before {
        display: inline-block;
        width: 1.75rem;
        height: 1px;
        margin-right: 0.7rem;
        background: currentColor;
        content: "";
        vertical-align: 0.25em;
    }

    .js .reveal {
        opacity: 0;
        transform: translateY(1.5rem);
        transition:
            opacity 800ms cubic-bezier(0.2, 0.65, 0.3, 1),
            transform 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
    }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

@layer components {
    .site-header {
        position: fixed;
        z-index: 100;
        top: 0;
        right: 0;
        left: 0;
        border-bottom: 1px solid transparent;
        transition:
            background-color 250ms ease,
            border-color 250ms ease,
            backdrop-filter 250ms ease;
    }

    .site-header.is-scrolled {
        border-color: var(--line);
        background: rgb(7 16 28 / 86%);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }

    .header-inner {
        display: flex;
        width: var(--shell);
        min-height: 5.5rem;
        margin-inline: auto;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .brand {
        z-index: 2;
        display: inline-flex;
        align-items: baseline;
        gap: 0.55rem;
        line-height: 1;
        white-space: nowrap;
    }

    .brand-first {
        font-family: var(--serif);
        font-size: 1.7rem;
        letter-spacing: -0.045em;
    }

    .header-tagline {
        margin-left: auto;
        color: rgb(239 235 225 / 68%);
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.14em;
        line-height: 1.4;
        text-align: right;
        text-transform: uppercase;
    }

    .button {
        display: inline-flex;
        min-height: 3.35rem;
        padding: 0.85rem 1.2rem;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
        border: 1px solid transparent;
        font-size: 0.73rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        line-height: 1.3;
        text-align: center;
        text-transform: uppercase;
        transition:
            background-color 220ms ease,
            border-color 220ms ease,
            color 220ms ease,
            transform 220ms ease;
    }

    .button:hover {
        transform: translateY(-2px);
    }

    .button-primary {
        background: var(--champagne-light);
        color: var(--ink);
    }

    .button-primary:hover {
        background: transparent;
        border-color: var(--champagne-light);
        color: var(--paper);
    }

    .text-link {
        display: inline-flex;
        align-items: center;
        gap: 0.8rem;
        border-bottom: 1px solid rgb(194 170 122 / 60%);
        color: var(--paper);
        font-size: 0.74rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        line-height: 2.2;
        text-transform: uppercase;
        transition:
            border-color 200ms ease,
            color 200ms ease,
            gap 200ms ease;
    }

    .text-link:hover {
        gap: 1.15rem;
        border-color: var(--champagne);
        color: var(--champagne-light);
    }
}

@layer sections {
    .hero {
        position: relative;
        display: grid;
        min-height: clamp(42rem, 88svh, 54rem);
        overflow: hidden;
        align-content: end;
        border-bottom: 1px solid var(--line);
        background:
            linear-gradient(110deg, rgb(7 16 28 / 10%), rgb(7 16 28 / 62%)),
            radial-gradient(circle at 78% 44%, rgb(42 97 146 / 39%), transparent 28rem),
            radial-gradient(circle at 20% 85%, rgb(18 57 95 / 22%), transparent 30rem),
            var(--ink);
    }

    .hero::before {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
            linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
        background-size: 5rem 5rem;
        content: "";
        mask-image: linear-gradient(to right, transparent, black 55%, transparent);
        pointer-events: none;
    }

    .hero-aura {
        position: absolute;
        top: 9%;
        right: -11rem;
        width: min(50vw, 42rem);
        aspect-ratio: 1;
        border: 1px solid rgb(194 170 122 / 18%);
        border-radius: 50%;
        box-shadow:
            0 0 0 5rem rgb(194 170 122 / 2.5%),
            0 0 0 10rem rgb(194 170 122 / 1.5%);
    }

    .hero-inner {
        position: relative;
        z-index: 1;
        display: grid;
        width: var(--shell);
        margin-inline: auto;
        padding-top: 8rem;
        padding-bottom: clamp(2.5rem, 5vh, 4rem);
        grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
        align-items: center;
        gap: clamp(3rem, 6vw, 6rem);
    }

    .eyebrow {
        margin-bottom: 1.5rem;
    }

    .eyebrow span::before {
        content: " · ";
    }

    .hero h1 {
        max-width: 13ch;
        font-size: clamp(3.25rem, 7.4vw, 7.1rem);
    }

    .hero h1 em {
        display: block;
        font-size: 0.95em;
    }

    .hero-intro {
        margin-top: clamp(1.75rem, 4vw, 3rem);
        color: var(--paper-soft);
        font-family: var(--serif);
        font-size: clamp(1.18rem, 1.8vw, 1.45rem);
        line-height: 1.5;
    }

    .hero-actions {
        display: flex;
        margin-top: 2.35rem;
        align-items: center;
        gap: 2rem;
    }

    .hero-project {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        max-width: 32rem;
        overflow: hidden;
        justify-self: end;
        border: 1px solid rgb(233 231 225 / 24%);
        background: rgb(7 20 33 / 72%);
        box-shadow: 0 2rem 5rem rgb(0 0 0 / 28%);
        transition:
            border-color 250ms ease,
            transform 250ms ease,
            box-shadow 250ms ease;
    }

    .hero-project:hover {
        border-color: rgb(223 207 175 / 55%);
        box-shadow: 0 2.5rem 6rem rgb(0 0 0 / 36%);
        transform: translateY(-0.25rem);
    }

    .hero-project-heading,
    .hero-project-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .hero-project-heading {
        min-height: 3.2rem;
        padding-inline: 1rem;
        border-bottom: 1px solid var(--line);
        color: var(--champagne-light);
        font-size: 0.64rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    .hero-project-image {
        display: block;
        aspect-ratio: 1.55;
        overflow: hidden;
        background: #e9e7e1;
    }

    .hero-project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        transition:
            filter 500ms ease,
            scale 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
    }

    .hero-project:hover .hero-project-image img {
        filter: saturate(1.08);
        scale: 1.02;
    }

    .hero-project-meta {
        min-height: 4.5rem;
        padding: 0.9rem 1rem;
    }

    .hero-project-meta strong {
        flex-shrink: 0;
        font-family: var(--serif);
        font-size: 1.45rem;
        font-weight: 400;
        white-space: nowrap;
    }

    .hero-project-meta > span {
        color: var(--muted);
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        text-align: right;
        text-transform: uppercase;
    }

    .hero-footer {
        position: relative;
        z-index: 1;
        display: grid;
        width: var(--shell);
        margin-inline: auto;
        padding-block: 1.15rem;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid var(--line);
        color: var(--muted);
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .hero-footer span:nth-child(2) {
        text-align: center;
    }

    .hero-footer span:last-child {
        text-align: right;
    }

    .featured-project {
        overflow: hidden;
        background:
            radial-gradient(circle at 90% 15%, rgb(42 97 146 / 38%), transparent 32rem),
            radial-gradient(circle at 8% 80%, rgb(18 57 95 / 24%), transparent 28rem),
            #071421;
    }

    .project-heading {
        display: grid;
        margin-bottom: clamp(3rem, 7vw, 5.5rem);
        grid-template-columns: 0.42fr 1.58fr;
        gap: clamp(2rem, 7vw, 8rem);
    }

    .project-name {
        margin-top: 1.25rem;
        color: var(--paper);
        font-family: var(--serif);
        font-size: clamp(1.6rem, 2.7vw, 2.5rem);
    }

    .project-heading h2 {
        max-width: 18ch;
        font-size: clamp(2.7rem, 5.8vw, 5.6rem);
    }

    .project-intro {
        max-width: 42rem;
        margin-top: 2rem;
        margin-left: auto;
        color: var(--paper-soft);
        font-size: clamp(1rem, 1.4vw, 1.15rem);
    }

    .project-preview {
        position: relative;
        display: block;
        border: 1px solid rgb(233 231 225 / 25%);
        background: #f7f5f1;
        box-shadow: 0 2.5rem 6rem rgb(0 0 0 / 35%);
    }

    .project-browser {
        display: grid;
        height: 3.4rem;
        padding-inline: 1.25rem;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        border-bottom: 1px solid rgb(9 11 14 / 13%);
        background: #efede8;
        color: #4c4e4e;
        font-size: 0.6rem;
        font-style: normal;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .project-browser > span:last-child {
        justify-self: end;
    }

    .project-browser-dots {
        display: flex;
        gap: 0.38rem;
    }

    .project-browser-dots i {
        display: block;
        width: 0.45rem;
        aspect-ratio: 1;
        border-radius: 50%;
        background: #b8b6b0;
    }

    .project-image {
        display: block;
        overflow: hidden;
    }

    .project-image img {
        width: 100%;
        height: auto;
        transition:
            scale 900ms cubic-bezier(0.2, 0.65, 0.3, 1),
            filter 500ms ease;
    }

    .project-preview:hover .project-image img {
        filter: saturate(1.08);
        scale: 1.012;
    }

    .project-visit {
        position: absolute;
        right: 1.5rem;
        bottom: 1.5rem;
        display: inline-flex;
        min-height: 3.4rem;
        padding: 0.9rem 1.2rem;
        align-items: center;
        gap: 1.4rem;
        background: var(--ink);
        color: var(--paper);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        transition:
            background-color 220ms ease,
            color 220ms ease,
            gap 220ms ease;
    }

    .project-preview:hover .project-visit {
        gap: 1.8rem;
        background: var(--champagne-light);
        color: var(--ink);
    }

    .project-details {
        display: grid;
        padding-top: 2.5rem;
        grid-template-columns: 0.75fr 1.25fr;
        gap: clamp(3rem, 8vw, 8rem);
    }

    .project-summary {
        max-width: 33rem;
        color: var(--paper-soft);
        font-family: var(--serif);
        font-size: clamp(1.25rem, 2vw, 1.6rem);
        line-height: 1.45;
    }

    .project-facts {
        display: grid;
        margin: 0;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid var(--line);
    }

    .project-facts > div {
        padding: 1.25rem 1rem 0;
        border-left: 1px solid var(--line);
    }

    .project-facts dt {
        margin-bottom: 0.65rem;
        color: var(--champagne);
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    .project-facts dd {
        margin: 0;
        color: var(--paper);
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }

    .expertises {
        background:
            radial-gradient(circle at 15% 30%, rgb(26 70 111 / 16%), transparent 29rem),
            #091623;
    }

    .section-heading {
        display: grid;
        margin-bottom: clamp(3rem, 7vw, 6rem);
        grid-template-columns: 1.25fr 0.75fr;
        align-items: end;
        gap: 4rem;
    }

    .section-heading h2,
    .services-intro h2,
    .about-copy h2 {
        max-width: 18ch;
        margin-top: 1rem;
        font-size: clamp(2.5rem, 5vw, 4.8rem);
    }

    .section-heading > p {
        max-width: 30rem;
        color: var(--muted);
    }

    .sector-list {
        border-top: 1px solid var(--line);
    }

    .sector-item {
        position: relative;
        display: grid;
        min-height: 10.5rem;
        padding: 1.8rem 0;
        overflow: hidden;
        grid-template-columns: 0.22fr 1fr auto;
        align-items: center;
        gap: 2rem;
        border-bottom: 1px solid var(--line);
        transition:
            color 300ms ease,
            padding 300ms ease;
    }

    .sector-item::before {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgb(194 170 122 / 8%), transparent 70%);
        content: "";
        opacity: 0;
        transition: opacity 300ms ease;
    }

    .sector-item:hover {
        padding-inline: 1.25rem;
    }

    .sector-item:hover::before {
        opacity: 1;
    }

    .sector-number,
    .sector-mark {
        color: var(--champagne);
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    .sector-item h3 {
        margin-bottom: 0.7rem;
        font-family: var(--serif);
        font-size: clamp(2rem, 4vw, 3.6rem);
    }

    .sector-item div p {
        max-width: 38rem;
        color: var(--muted);
    }

    .sector-mark {
        font-family: var(--serif);
        font-size: clamp(3rem, 6vw, 6rem);
        opacity: 0.16;
        transition: opacity 300ms ease;
    }

    .sector-item:hover .sector-mark {
        opacity: 0.5;
    }

    .services {
        background:
            linear-gradient(135deg, rgb(42 97 146 / 6%), transparent 42%),
            #e6e9e9;
        color: var(--ink);
    }

    .services-grid {
        display: grid;
        grid-template-columns: 0.82fr 1.18fr;
        gap: clamp(4rem, 10vw, 9rem);
    }

    .services-intro {
        position: sticky;
        top: 8rem;
        align-self: start;
    }

    .services-intro .section-label {
        color: #745f39;
    }

    .services-intro h2 {
        max-width: 12ch;
    }

    .services-intro > p:last-child {
        max-width: 31rem;
        margin-top: 2rem;
        color: #555855;
    }

    .service-list li {
        display: grid;
        min-height: 7.5rem;
        padding: 1.25rem 0;
        grid-template-columns: 4rem 1fr;
        align-items: start;
        gap: 1rem;
        border-bottom: 1px solid var(--line-light);
    }

    .service-list li:last-child {
        border-bottom: none !important;
    }

    .service-list > li > span {
        color: #806a42;
        font-size: 0.68rem;
        letter-spacing: 0.15em;
    }

    .service-list h3 {
        margin-bottom: 0.4rem;
        font-size: clamp(1.35rem, 2vw, 1.8rem);
    }

    .service-list p {
        max-width: 32rem;
        color: #5a5c59;
    }

    .approach {
        overflow: hidden;
        background:
            radial-gradient(circle at 80% 30%, rgb(42 97 146 / 42%), transparent 31rem),
            radial-gradient(circle at 10% 90%, rgb(17 57 94 / 28%), transparent 30rem),
            var(--ink-blue);
    }

    .approach::after {
        position: absolute;
        top: 4rem;
        right: -17rem;
        width: 39rem;
        aspect-ratio: 1;
        border: 1px solid rgb(194 170 122 / 15%);
        border-radius: 50%;
        content: "";
    }

    .section-heading-light {
        position: relative;
        z-index: 1;
    }

    .approach-steps {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .approach-steps li {
        min-height: 20rem;
        padding: 2rem clamp(1.5rem, 3vw, 3rem) 2.5rem;
    }

    .approach-steps li + li {
        border-left: 1px solid var(--line);
    }

    .step-number {
        display: block;
        margin-bottom: 5rem;
        color: var(--champagne);
        font-size: 0.66rem;
        letter-spacing: 0.16em;
    }

    .approach-steps h3 {
        margin-bottom: 1rem;
        font-family: var(--serif);
        font-size: clamp(2rem, 3vw, 3rem);
    }

    .approach-steps p {
        max-width: 24rem;
        color: var(--paper-soft);
    }

    .about {
        background:
            radial-gradient(circle at 18% 50%, rgb(28 76 117 / 24%), transparent 30rem),
            #081522;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 0.72fr 1.28fr;
        align-items: center;
        gap: clamp(3rem, 10vw, 10rem);
    }

    .about-portrait {
        position: relative;
        width: min(100%, 27rem);
        aspect-ratio: 3 / 4;
        margin: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        background: var(--ink-soft);
    }

    .about-portrait::before {
        position: absolute;
        z-index: 1;
        inset: 1.25rem;
        border: 1px solid rgb(194 170 122 / 15%);
        content: "";
        pointer-events: none;
    }

    .about-portrait::after {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 48%, rgb(7 16 28 / 38%) 100%);
        content: "";
        pointer-events: none;
    }

    .about-portrait img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-portrait figcaption {
        position: absolute;
        z-index: 2;
        right: 2.2rem;
        bottom: 2.2rem;
        padding: 0.65rem 0.8rem;
        background: rgb(7 16 28 / 68%);
        color: var(--paper-soft);
        font-size: 0.63rem;
        letter-spacing: 0.15em;
        line-height: 1.6;
        text-align: right;
        text-transform: uppercase;
    }

    .about-copy > p:not(.section-label) {
        max-width: 39rem;
        margin-top: 1.5rem;
        color: var(--muted);
    }

    .about-copy .text-link {
        margin-top: 2.25rem;
    }

    .contact {
        overflow: hidden;
        border-top: 1px solid var(--line);
        background:
            radial-gradient(circle at 50% 50%, rgb(42 97 146 / 28%), transparent 32rem),
            #092038;
        text-align: center;
    }

    .contact::before {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, transparent 49.9%, rgb(255 255 255 / 4%) 50%, transparent 50.1%);
        content: "";
    }

    .contact-orbit {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(72vw, 57rem);
        aspect-ratio: 1;
        border: 1px solid rgb(194 170 122 / 14%);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        box-shadow:
            0 0 0 7rem rgb(194 170 122 / 2%),
            0 0 0 14rem rgb(194 170 122 / 1%);
    }

    .contact-inner {
        position: relative;
        z-index: 1;
        display: flex;
        min-height: 38rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contact h2 {
        margin-top: 1.5rem;
        font-size: clamp(3.2rem, 7.5vw, 7rem);
    }

    .contact-copy {
        max-width: 35rem;
        margin-top: 1.8rem;
        color: var(--paper-soft);
        font-family: var(--serif);
        font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    }

    .contact-email {
        display: inline-flex;
        margin-top: 2.4rem;
        padding-bottom: 0.4rem;
        align-items: center;
        gap: 1rem;
        border-bottom: 1px solid var(--champagne);
        font-size: clamp(1rem, 2vw, 1.4rem);
        transition:
            color 220ms ease,
            gap 220ms ease;
    }

    .contact-email:hover {
        gap: 1.4rem;
        color: var(--champagne-light);
    }

    .contact-note {
        margin-top: 1rem;
        color: var(--muted);
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .site-footer {
        background:
            linear-gradient(90deg, rgb(18 57 95 / 14%), transparent 45%),
            var(--ink);
        color: var(--muted);
    }

    .footer-inner {
        display: grid;
        width: var(--shell);
        min-height: 11rem;
        margin-inline: auto;
        padding-block: 2.5rem;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1rem 3rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .footer-brand {
        color: var(--paper);
        font-family: var(--serif);
        font-size: 1.35rem;
        letter-spacing: 0;
        text-transform: none;
    }

    .footer-links {
        display: flex;
        grid-row: 1 / span 2;
        grid-column: 2;
        gap: 2rem;
    }

    .footer-links a {
        color: var(--paper-soft);
        transition: color 200ms ease;
    }

    .footer-links a:hover {
        color: var(--champagne-light);
    }

    .copyright {
        align-self: start;
    }
}

@layer responsive {
    @media (max-width: 70rem) {
        .hero-inner {
            grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
            gap: 3rem;
        }

        .hero h1 {
            font-size: clamp(3.25rem, 7vw, 5.5rem);
        }

        .hero-project {
            max-width: 29rem;
        }
    }

    @media (max-width: 56rem) {
        :root {
            --shell: min(100% - 2.5rem, 46rem);
        }

        .hero {
            min-height: auto;
        }

        .hero-inner {
            min-height: 0;
            padding-top: 8rem;
            padding-bottom: 3rem;
            grid-template-columns: 1fr;
            align-content: start;
            gap: 3rem;
        }

        .hero-copy {
            position: relative;
            z-index: 2;
        }

        .hero-project {
            width: 100%;
            max-width: 46rem;
            justify-self: start;
        }

        .hero-footer {
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem;
        }

        .hero-footer span:nth-child(2) {
            text-align: right;
        }

        .hero-footer span:last-child {
            display: none;
        }

    .section-heading,
    .services-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

        .section-heading {
            gap: 2rem;
        }

        .services-intro {
            position: static;
        }

        .hero h1,
        .section-heading h2,
        .services-intro h2,
        .about-copy h2 {
            max-width: none;
            text-wrap: wrap;
        }

        .about-portrait {
            width: min(80%, 23rem);
            max-width: 23rem;
            margin-inline: auto;
        }
    }

    @media (max-width: 40rem) {
        :root {
            --shell: calc(100% - 2rem);
        }

        .header-inner {
            min-height: 4.8rem;
        }

        .brand-first {
            font-size: 1.52rem;
        }

        .header-inner {
            gap: 1rem;
        }

        .header-tagline {
            max-width: 11rem;
            font-size: 0.5rem;
            letter-spacing: 0.09em;
            line-height: 1.35;
        }

        .hero-inner {
            min-height: 0;
            padding-top: 7rem;
            padding-bottom: 2.5rem;
        }

        .hero h1 {
            font-size: clamp(3rem, 15vw, 4.5rem);
        }

        .hero-intro {
            margin-top: 1.6rem;
            font-size: 1.12rem;
        }

        .hero-actions {
            margin-top: 2rem;
            flex-direction: column;
            align-items: flex-start;
            gap: 1.2rem;
        }

        .button {
            width: 100%;
        }

        .hero-footer {
            display: none;
        }

        .section-heading h2,
        .services-intro h2,
        .about-copy h2 {
            font-size: clamp(2rem, 9vw, 2.45rem);
        }

        .hero-project-heading {
            min-height: 2.85rem;
            padding-inline: 0.85rem;
        }

        .hero-project-image {
            aspect-ratio: 1.42;
        }

        .hero-project-meta {
            min-height: 0;
            padding: 0.85rem;
            align-items: flex-start;
            flex-direction: column;
        }

        .hero-project-meta > span {
            text-align: left;
        }

        .service-list li {
            min-height: 0;
            padding-block: 1.1rem;
            grid-template-columns: 2.5rem 1fr;
        }

        .about-grid {
            gap: 3rem;
        }

        .about-portrait {
            width: 80%;
        }

        .contact-inner {
            min-height: 34rem;
        }

        .contact h2 {
            font-size: clamp(3rem, 15vw, 4.25rem);
        }

        .contact-email {
            max-width: 100%;
            font-size: 0.96rem;
            overflow-wrap: anywhere;
        }

        .footer-inner {
            padding-block: 3rem;
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .footer-links {
            margin-block: 1rem;
            grid-row: auto;
            grid-column: auto;
            flex-wrap: wrap;
        }
    }

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

    @media print {
        .site-header,
        .hero-project,
        .hero-footer {
            display: none;
        }

        body,
        .hero,
        .about,
        .contact {
            background: #fff;
            color: #000;
        }

    }
}
