:root {
    color-scheme: light;
    --bg: #f2f0e9;
    --ink: #111110;
    --muted: #55544f;
    --line: #d3d0c8;
    --font-body: 'DM Sans', Arial, sans-serif;
    --font-heading: 'Manrope', Arial, sans-serif;
    --gutter: clamp(24px, 6.3vw, 100px);
    --container: 1600px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body, h1, h2, h3, p {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

img, svg {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 14px 20px;
    background: var(--ink);
    color: white;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header, main, .site-footer {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 2;
    min-height: clamp(52px, 5.84vw, 84px);
    padding: clamp(12px, 1.4vw, 20px) var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    width: fit-content;
}

.brand-logo {
    width: clamp(85px, 9.3vw, 134px);
    height: auto;
    filter: brightness(0);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(15px, 1.8vw, 28px);
    font-size: 11px;
}

.main-nav a {
    padding-block: 10px;
    transition: opacity .2s ease;
}

.main-nav a:hover {
    opacity: .6;
}

.primary-button {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #252524;
    border-radius: 100px;
    padding: 14px 24px;
    background: #080808;
    color: #fff;
    font-size: clamp(10px, .9vw, 13px);
    line-height: 1.2;
    box-shadow: inset 0 1px 2px #ffffff20;
    transition: background .2s ease, transform .2s ease;
}

.primary-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.header-contact {
    justify-self: end;
    padding: 11px 18px;
    white-space: nowrap;
    font-size: 11px;
}

.eyebrow {
    display: block;
    margin-bottom: clamp(12px, 1.25vw, 18px);
    font-size: clamp(8px, .7vw, 10px);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 3px;
}

.device-experience {
    position: relative;
    isolation: isolate;
}

.experience-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.4fr);
    min-height: clamp(310px, 40vw, 640px);
    padding-left: var(--gutter);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    align-self: center;
    min-width: 0;
    padding-block: clamp(22px, 2.8vw, 40px) clamp(30px, 4.5vw, 65px);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(27px, 3.65vw, 58px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.055em;
    word-spacing: .08em;
}

.hero h1 > span,
.hero h1 strong {
    display: block;
}

.hero h1 strong {
    margin-top: .12em;
    font-weight: 700;
}

.hero-description {
    max-width: 400px;
    margin-block: clamp(18px, 1.8vw, 26px);
    color: #343430;
    font-size: clamp(11px, 1.15vw, 16px);
    line-height: 1.55;
}

.hero-visual {
    position: relative;
    min-width: 0;
    min-height: 100%;
    background: radial-gradient(ellipse at 60% 65%, #d2cfc740, transparent 70%);
}

.scene-status {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-content: center;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.scene-status[hidden] {
    display: none;
}

.scene-caption {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 12px;
    border: 1px solid #d3d0c8;
    border-radius: 20px;
    padding: 5px 8px;
    background: #f2f0e9ed;
    color: #55544f;
    font-size: 8px;
    letter-spacing: 1.5px;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.9vw, 60px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.06em;
    word-spacing: .06em;
}

.services-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
    background: linear-gradient(110deg, #c4c0b9, #eeece5 46%, var(--bg));
}

.phone-scene {
    position: relative;
    min-height: clamp(320px, 35.4vw, 550px);
    overflow: hidden;
    background: radial-gradient(ellipse at 22% 25%, #f9f8f2, transparent 50%),
        linear-gradient(130deg, #5b5954 0%, #b6b2aa 35%, transparent 65%);
}

.stone {
    position: absolute;
    background: #3c3b38 url('../assets/images/stone-texture.svg') center / 420px;
    box-shadow: inset -50px -30px 70px #0009, inset 20px 10px 60px #fff2;
}

.services-content {
    min-width: 0;
    align-self: center;
    padding: clamp(30px, 3.5vw, 50px) var(--gutter) clamp(30px, 3.5vw, 50px) 35px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-block: clamp(22px, 2.5vw, 36px) clamp(18px, 2.1vw, 30px);
}

.service-card {
    min-width: 0;
    padding-inline: 16px;
    border-left: 1px solid #c9c6bf;
}

.service-card:first-child {
    padding-left: 0;
    border-left: 0;
}

.service-card:last-child {
    padding-right: 0;
}

.service-card summary {
    position: relative;
    list-style: none;
    cursor: pointer;
}

.service-card summary::-webkit-details-marker {
    display: none;
}

.service-card summary::after {
    content: '+';
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.service-card details[open] summary::after {
    content: '-';
}

.service-card summary:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.service-icon {
    width: 32px;
    height: 32px;
    margin-bottom: clamp(10px, 1.25vw, 18px);
}

.service-card h3 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.service-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.services-note {
    font-size: 14px;
    line-height: 1.6;
}

.process-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    overflow: hidden;
    background: #080808;
    color: #f5f4ef;
}

.process-content {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 3.6vw, 52px) 25px clamp(28px, 3.3vw, 48px) var(--gutter);
}

.process-section .eyebrow {
    color: #d2d0cb;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    margin: clamp(22px, 2.2vw, 32px) 0 0;
    padding: 0;
}

.process-steps li {
    position: relative;
}

.process-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 1px;
    background: #777;
    top: 47px;
    right: -14px;
}

.process-steps span {
    display: block;
    margin-bottom: 10px;
    color: #aaa8a2;
    font-size: clamp(20px, 1.95vw, 28px);
    font-weight: 400;
    letter-spacing: -1px;
}

.process-steps h3 {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

.process-art {
    position: relative;
    overflow: hidden;
    min-height: clamp(215px, 23.6vw, 380px);
    perspective: 1000px;
    background: linear-gradient(125deg, #080808 15%, #393733 55%, #080808 90%);
}

.stone-process {
    width: 120%;
    height: 85%;
    bottom: -35%;
    right: -10%;
    transform: rotate(-24deg);
    background-color: #b6b3ab;
    background-blend-mode: screen;
}

.glass-plaque {
    display: grid;
    place-items: center;
    position: absolute;
    width: clamp(140px, 14.2vw, 205px);
    height: clamp(150px, 15.6vw, 225px);
    top: clamp(20px, 2.8vw, 40px);
    left: 24%;
    border: 2px solid #c0beb8;
    border-right: 6px solid #e8e7e2;
    border-bottom: 5px solid #adada9;
    border-radius: 5px;
    background: linear-gradient(125deg, #ffffff30, #ffffff05 35%, #ffffff15 65%, #ffffff50), #181818a6;
    box-shadow: inset 0 0 0 3px #ffffff20, 20px 30px 35px #0006;
    transform: rotate(-22deg) rotateY(-22deg);
}

.glass-plaque img {
    width: 61%;
    height: auto;
}

.projects-section {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 2fr);
    gap: 45px;
    padding: 48px var(--gutter);
}

.projects-heading h2 {
    font-size: clamp(30px, 2.9vw, 44px);
}

.projects-heading > p {
    max-width: 350px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.projects-heading .demo-notice {
    color: var(--muted);
    font-size: 11px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    gap: 28px;
    min-width: 0;
}

.project-card {
    display: block;
    min-width: 0;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.48;
    border: 1px solid #c3c0b9;
    border-radius: 6px;
    background: #dddad3;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    transform: scale(1.05) rotate(-3deg) translate(3%, 2%);
    transition: transform .3s ease;
}

.project-card:nth-child(2) .project-image img {
    transform: scale(1.03);
}

.project-card:nth-child(3) .project-image img {
    transform: scale(1.08) rotate(2deg);
}

.project-card:hover .project-image img {
    transform: scale(1.12);
}

.project-image > span {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid #c9c6bf;
    border-radius: 20px;
    padding: 4px 8px;
    background: #f9f8f2;
    font-size: 8px;
    letter-spacing: 1px;
}

.project-card h3 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
}

.project-card p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    margin-inline: var(--gutter);
    border-top: 1px solid var(--line);
    padding-block: 32px;
}

.intro-section h2 {
    max-width: 450px;
    font-size: 28px;
}

.intro-section .eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
}

.intro-section p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    background: linear-gradient(110deg, #e1ded6, #f0eee7);
}

.contact-art {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    perspective: 900px;
    background: linear-gradient(132deg, #080808 0 17%, #605e57 17% 50%, #d0cdc5);
}

.stone-contact {
    width: 85%;
    height: 60%;
    bottom: -36%;
    left: 18%;
    transform: rotate(13deg);
    background-color: #b6b3ab;
    background-blend-mode: screen;
}

.closed-laptop {
    position: absolute;
    width: 88%;
    height: 340px;
    top: -90px;
    left: 6%;
    border: 1px solid #b5b4af;
    border-radius: 15px;
    background: linear-gradient(125deg, #393939, #8b8b8b 18%, #d5d5d5 40%, #a1a1a1 49%, #e8e8e8 68%, #6f6f6f);
    transform: rotateX(56deg) rotateZ(25deg);
    box-shadow: 7px 10px 0 #656565, 8px 13px 0 #b8b8b8, 25px 55px 35px #0007;
}

.closed-laptop img {
    position: absolute;
    width: 24%;
    height: auto;
    left: 38%;
    top: 46%;
    filter: brightness(0);
    opacity: .8;
}

.laptop-edge {
    position: absolute;
    bottom: -12px;
    right: 8%;
    display: flex;
    gap: 12px;
}

.laptop-edge i {
    width: 24px;
    height: 5px;
    border-radius: 2px;
    background: #171815;
}

.contact-content {
    align-self: center;
    min-width: 0;
    padding: 45px var(--gutter) 45px 40px;
}

.contact-content .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
}

.contact-content h2 {
    font-size: clamp(30px, 3vw, 45px);
}

.contact-content p {
    max-width: 340px;
    margin-block: 18px 24px;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px var(--gutter);
    font-size: 10px;
    line-height: 1.6;
    color: var(--muted);
}

.site-footer .brand-logo {
    width: 100px;
}

@media (max-width: 1100px) {
    .site-header {
        gap: 20px;
        grid-template-columns: auto 1fr auto;
    }

    .brand-logo {
        width: clamp(85px, 9.3vw, 110px);
    }

    .main-nav {
        gap: 14px;
        font-size: 10px;
    }

    .hero .eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .services-content {
        padding-left: 24px;
    }

    .services-grid {
        gap: 12px 0;
    }

    .service-card {
        padding-inline: 10px;
    }

    .service-card h3 {
        font-size: clamp(9px, 1.05vw, 11px);
    }

    .service-card p {
        font-size: 9px;
    }

    .process-steps {
        gap: 22px;
    }

    .process-steps h3 {
        font-size: 10px;
    }

    .glass-plaque {
        left: 15%;
    }

    .projects-section {
        gap: 30px;
    }

    .projects-grid {
        gap: 18px;
    }
}

@media (max-width: 760px) {
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 12px 20px;
        padding-block: 18px 10px;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
        gap: 6px 12px;
    }

    .header-contact {
        padding: 10px 14px;
        font-size: 10px;
        gap: 8px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 0;
    }

    .hero-content {
        padding: 42px var(--gutter) 12px;
    }

    .hero h1 {
        font-size: clamp(28px, 7.8vw, 52px);
    }

    .hero-description {
        max-width: 360px;
        margin-block: 22px;
        font-size: 14px;
    }

    .hero-content .primary-button,
    .contact-content .primary-button {
        font-size: 13px;
    }

    .hero-visual {
        height: clamp(330px, 75vw, 500px);
    }

    .services-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-content {
        grid-row: 1;
        padding: 44px var(--gutter) 32px;
    }

    .services-grid {
        margin-block: 30px 24px;
    }

    .service-card p {
        font-size: 10px;
    }

    .service-card h3 {
        font-size: 13px;
    }

    .phone-scene {
        min-height: 450px;
    }

    .process-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-content {
        padding: 44px var(--gutter) 28px;
    }

    .process-steps h3 {
        font-size: 12px;
    }

    .process-art {
        min-height: 300px;
    }

    .glass-plaque {
        top: 40px;
        left: calc(50% - 90px);
        width: 180px;
        height: 200px;
    }

    .glass-plaque img {
        width: 110px;
    }

    .projects-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 44px var(--gutter);
    }

    .projects-heading h2 {
        font-size: 36px;
    }

    .projects-heading > p {
        max-width: 480px;
    }

    .projects-grid {
        gap: 14px;
    }

    .project-card h3 {
        font-size: 11px;
    }

    .project-card p {
        font-size: 9px;
        line-height: 1.5;
    }

    .intro-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-block: 30px;
    }

    .contact-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-art {
        min-height: 260px;
    }

    .contact-content {
        padding: 38px var(--gutter);
    }

    .site-footer {
        gap: 18px;
    }
}

@media (max-width: 440px) {
    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: center;
        font-size: 11px;
        gap: 4px 8px;
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 0;
    }

    .service-card:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .service-card h3 {
        font-size: 13px;
    }

    .service-card p {
        max-width: 150px;
        font-size: 11px;
    }

    .service-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 12px;
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .process-steps li:nth-child(2)::after {
        content: none;
    }

    .process-steps h3 {
        font-size: 13px;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .project-card h3 {
        font-size: 15px;
    }

    .project-card p {
        font-size: 11px;
    }

    .project-image {
        aspect-ratio: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    a, .project-image img {
        transition: none;
    }

    .primary-button:hover {
        transform: none;
    }
}
