:root {
    color-scheme: light;
    --ink: #101615;
    --ink-soft: #33423f;
    --muted: #6f7a76;
    --paper: #f6f1e8;
    --paper-deep: #ebe3d5;
    --canvas: #fffdf7;
    --mist: #dfece5;
    --cypress: #164b43;
    --cypress-dark: #092f2b;
    --teal: #1f9d8c;
    --clay: #b85736;
    --blue: #263f68;
    --gold: #d9a83f;
    --line: rgba(16, 22, 21, 0.14);
    --line-strong: rgba(16, 22, 21, 0.24);
    --shadow: 0 24px 70px rgba(16, 22, 21, 0.16);
    --soft-shadow: 0 16px 42px rgba(16, 22, 21, 0.10);
    --max: 1180px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(90deg, rgba(16, 22, 21, 0.035) 1px, transparent 1px) 0 0 / 76px 76px,
        linear-gradient(180deg, #fbf7ef 0%, #f4efe5 46%, #f8f5ed 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-width: 320px;
}

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

a {
    color: inherit;
}

p {
    color: var(--ink-soft);
    font-size: 1.06rem;
    line-height: 1.72;
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 0.98;
    margin: 0;
}

h1,
h2 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-weight: 680;
}

h1 {
    font-size: 5.15rem;
    max-width: 1030px;
}

h2 {
    font-size: 3.35rem;
    max-width: 980px;
}

h3 {
    font-size: 1.42rem;
    line-height: 1.12;
}

.site-header {
    align-items: center;
    background: rgba(255, 253, 247, 0.88);
    border-bottom: 1px solid rgba(16, 22, 21, 0.10);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(210px, 0.8fr) auto minmax(170px, 0.8fr);
    padding: 16px clamp(20px, 4vw, 54px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
    width: fit-content;
}

.brand__mark {
    align-items: center;
    background:
        linear-gradient(135deg, var(--cypress-dark), var(--cypress) 54%, var(--clay));
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 28px rgba(9, 47, 43, 0.22);
    color: #fff;
    display: grid;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.98rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 3px;
}

.site-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(16, 22, 21, 0.10);
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    padding: 5px;
}

.site-nav a,
.header-call,
.button {
    border-radius: var(--radius);
    font-weight: 780;
    text-decoration: none;
}

.site-nav a {
    color: var(--ink-soft);
    font-size: 0.92rem;
    padding: 9px 11px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--ink);
    color: #fff;
}

.header-call {
    background: var(--ink);
    color: #fff;
    justify-self: end;
    padding: 12px 16px;
    white-space: nowrap;
}

.hero {
    background: var(--ink);
    display: grid;
    min-height: calc(100svh - 78px);
    overflow: hidden;
    place-items: stretch;
    position: relative;
}

.hero__media {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero::after {
    background:
        linear-gradient(90deg, rgba(8, 15, 14, 0.92) 0%, rgba(8, 15, 14, 0.78) 42%, rgba(8, 15, 14, 0.22) 100%),
        linear-gradient(180deg, rgba(8, 15, 14, 0.12), rgba(8, 15, 14, 0.86));
    content: "";
    inset: 0;
    position: absolute;
}

.hero__content {
    align-content: center;
    color: #fff;
    display: grid;
    gap: 26px;
    max-width: var(--max);
    padding: 104px clamp(20px, 5vw, 70px) 82px;
    position: relative;
    z-index: 1;
}

.hero__content h1,
.page-hero--image h1,
.cta-band h2 {
    color: #fff;
}

.hero__content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.28rem;
    max-width: 720px;
}

.hero-proof {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 18px 0 0;
    max-width: 820px;
    padding: 0;
}

.hero-proof li {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding-left: 16px;
}

.hero-proof strong,
.hero-proof span {
    display: block;
}

.hero-proof strong {
    color: #fff;
    font-size: 1.05rem;
}

.hero-proof span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
    line-height: 1.4;
    margin-top: 4px;
}

.eyebrow {
    color: var(--clay);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero--image .eyebrow,
.cta-band .eyebrow {
    color: var(--gold);
}

.button-row,
.cta-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    box-shadow: 0 12px 24px rgba(16, 22, 21, 0.12);
    transform: translateY(-1px);
}

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

.button--secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
}

.button--dark {
    background: var(--cypress-dark);
    color: #fff;
}

.button--light {
    background: #fff;
    color: var(--ink);
}

.button--outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.button--outline-dark {
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.section,
.page-hero,
.split-section {
    margin: 0 auto;
    max-width: var(--max);
    padding: 92px clamp(20px, 5vw, 70px);
}

.section-header {
    display: grid;
    gap: 16px;
    margin-bottom: 42px;
    max-width: 880px;
}

.section-header p {
    max-width: 760px;
}

.page-hero--image {
    background: var(--ink);
    color: #fff;
    margin: 0;
    max-width: none;
    min-height: 560px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.page-hero--image::after {
    background:
        linear-gradient(90deg, rgba(8, 15, 14, 0.90) 0%, rgba(8, 15, 14, 0.62) 46%, rgba(8, 15, 14, 0.18) 100%),
        linear-gradient(180deg, rgba(8, 15, 14, 0.18), rgba(8, 15, 14, 0.76));
    content: "";
    inset: 0;
    position: absolute;
}

.page-hero__media {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.page-hero__content {
    align-content: center;
    display: grid;
    gap: 22px;
    min-height: inherit;
    padding: 104px clamp(20px, 5vw, 70px) 88px;
    position: relative;
    z-index: 1;
}

.page-hero__content > * {
    max-width: var(--max);
}

.page-hero--image h1 {
    font-size: 4.45rem;
    max-width: 1010px;
}

.page-hero--image p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.24rem;
    max-width: 780px;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.service-panel,
.portfolio-card,
.contact-panel {
    background: rgba(255, 253, 247, 0.84);
    border: 1px solid rgba(16, 22, 21, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.card,
.service-panel,
.contact-panel {
    display: grid;
    gap: 16px;
    padding: 28px;
}

.card {
    position: relative;
}

.card::before,
.service-panel::before {
    background: linear-gradient(90deg, var(--clay), var(--gold));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.card strong,
.service-panel strong {
    color: var(--clay);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.grid--three > .card:nth-child(2),
.grid--three > .portfolio-card:nth-child(2),
.grid--three > .portfolio-card:nth-child(5) {
    transform: translateY(28px);
}

.grid--three > .card:nth-child(3),
.grid--three > .portfolio-card:nth-child(3),
.grid--three > .portfolio-card:nth-child(6) {
    transform: translateY(56px);
}

.band {
    background:
        linear-gradient(135deg, rgba(9, 47, 43, 0.96), rgba(22, 75, 67, 0.92)),
        var(--cypress-dark);
    color: #fff;
}

.band h2,
.band h3,
.band strong {
    color: #fff;
}

.band p,
.band li,
.band span {
    color: rgba(255, 255, 255, 0.76);
}

.band .card,
.band .service-panel {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.band--paper {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.54), rgba(235, 227, 213, 0.72));
}

.split-section {
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.check-list,
.plain-list,
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list {
    counter-reset: checks;
    display: grid;
    gap: 0;
}

.check-list li {
    border-top: 1px solid rgba(16, 22, 21, 0.13);
    color: var(--ink-soft);
    padding: 19px 0 19px 52px;
    position: relative;
}

.band .check-list li {
    border-color: rgba(255, 255, 255, 0.18);
}

.check-list li::before {
    align-items: center;
    background: var(--gold);
    color: var(--ink);
    content: counter(checks, decimal-leading-zero);
    counter-increment: checks;
    display: grid;
    font-size: 0.75rem;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 17px;
    width: 32px;
}

.plain-list {
    display: grid;
    gap: 12px;
}

.plain-list li {
    background: rgba(255, 253, 247, 0.82);
    border: 1px solid rgba(16, 22, 21, 0.12);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.process {
    counter-reset: step;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.process li {
    border-top: 1px solid rgba(16, 22, 21, 0.14);
    display: grid;
    gap: 9px;
    grid-template-columns: 72px minmax(0, 1fr);
    list-style: none;
    padding: 24px 0;
}

.process li::before {
    color: var(--clay);
    content: counter(step, decimal-leading-zero);
    counter-increment: step;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 2rem;
    line-height: 1;
}

.process li h3,
.process li p {
    grid-column: 2;
}

.service-panel {
    min-height: 270px;
    overflow: hidden;
    position: relative;
}

.service-panel:nth-child(2n) {
    background: rgba(255, 255, 255, 0.92);
}

.service-panel:nth-child(3n) {
    background: rgba(246, 241, 232, 0.9);
}

.portfolio-card {
    overflow: hidden;
}

.portfolio-card__preview,
.live-site-card__image,
.featured-work__image,
.timeline-card__thumb {
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.94) 0%, rgba(235, 227, 213, 0.72) 100%);
    display: block;
}

.portfolio-card__preview {
    border-bottom: 1px solid var(--line);
    padding: 20px;
}

.portfolio-card__preview:focus-visible,
.live-site-card__image:focus-visible,
.featured-work__image:focus-visible,
.timeline-card__thumb:focus-visible,
.text-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.portfolio-card__preview img,
.live-site-card__image img,
.featured-work img,
.timeline-card img {
    background: #fff;
    border: 1px solid rgba(16, 22, 21, 0.14);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(16, 22, 21, 0.10);
    display: block;
    height: auto;
    width: 100%;
}

.portfolio-card__body {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.tag {
    background: rgba(31, 157, 140, 0.13);
    border: 1px solid rgba(31, 157, 140, 0.20);
    border-radius: 999px;
    color: var(--cypress-dark);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 7px 11px;
    width: fit-content;
}

.case-study {
    display: grid;
    gap: 34px;
}

.case-study__intro {
    display: grid;
    gap: 18px;
    max-width: 980px;
}

.case-study__intro p {
    max-width: 850px;
}

.proof-strip {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-strip div {
    background: rgba(255, 253, 247, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    padding: 18px;
}

.proof-strip strong,
.timeline-card strong {
    color: var(--clay);
}

.proof-strip span,
.timeline-card span,
.source-note {
    color: var(--ink-soft);
    line-height: 1.55;
}

.live-site-grid {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-site-card {
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    display: grid;
    overflow: hidden;
}

.live-site-card__image {
    border-bottom: 1px solid var(--line);
    padding: 22px;
}

.live-site-card__body {
    display: grid;
    gap: 14px;
    padding: 26px;
}

.featured-work {
    align-items: start;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    margin: 34px 0 30px;
    overflow: hidden;
}

.featured-work__image {
    border-right: 1px solid var(--line);
    min-height: 0;
    padding: 28px;
}

.featured-work figcaption {
    align-content: start;
    display: grid;
    gap: 16px;
    padding: 42px;
}

.featured-work h3 {
    font-size: 2.25rem;
}

.timeline-grid {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}

.timeline-card {
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    margin: 0;
    overflow: hidden;
}

.timeline-card__thumb {
    border-bottom: 1px solid var(--line);
    padding: 14px;
}

.timeline-card figcaption {
    align-content: start;
    display: grid;
    gap: 8px;
    padding: 18px 18px 20px;
}

.timeline-card figcaption span {
    font-size: 0.95rem;
}

.text-link {
    color: var(--cypress-dark);
    font-weight: 900;
    text-decoration-color: var(--teal);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    width: fit-content;
}

.source-note {
    font-size: 0.94rem;
    margin-top: 18px;
    max-width: 760px;
}

.cta-band {
    background:
        linear-gradient(135deg, rgba(9, 47, 43, 0.98), rgba(16, 22, 21, 0.96));
    color: #fff;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 72px clamp(20px, 5vw, 70px);
    padding: 54px;
    position: relative;
}

.cta-band::before {
    background: var(--gold);
    content: "";
    height: 6px;
    left: 54px;
    position: absolute;
    right: 54px;
    top: 0;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 760px;
}

.cta-band h2 {
    margin: 10px 0 14px;
}

.contact-grid {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr 1fr;
}

.contact-link {
    color: var(--cypress-dark);
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 2.2rem;
    font-weight: 680;
    text-decoration-color: var(--teal);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.site-footer {
    align-items: start;
    background: var(--ink);
    color: #fff;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 42px clamp(20px, 5vw, 70px);
}

.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.70);
}

.site-footer a {
    color: #fff;
}

@media (max-width: 1040px) {
    .site-header {
        gap: 12px 16px;
        grid-template-columns: 1fr auto;
        justify-items: start;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-call {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-nav {
        flex-wrap: nowrap;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        width: 100%;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    h1 {
        font-size: 3.9rem;
    }

    h2,
    .page-hero--image h1 {
        font-size: 3.05rem;
    }

    .grid--three,
    .grid--two,
    .split-section,
    .contact-grid,
    .live-site-grid,
    .featured-work,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .proof-strip,
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-work__image {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .grid--three > .card:nth-child(n),
    .grid--three > .portfolio-card:nth-child(n) {
        transform: none;
    }

    .cta-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.72rem;
    }

    h2,
    .page-hero--image h1 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.22rem;
    }

    .site-header {
        padding: 12px 14px;
    }

    .header-call {
        font-size: 0;
        min-width: 58px;
        padding: 10px 12px;
    }

    .header-call::after {
        content: "Call";
        font-size: 0.88rem;
    }

    .site-nav {
        padding: 4px;
    }

    .site-nav a {
        font-size: 0.88rem;
        padding: 8px 9px;
    }

    .brand__mark {
        height: 38px;
        width: 38px;
    }

    .hero {
        min-height: auto;
    }

    .hero__content,
    .page-hero__content {
        min-height: auto;
        padding: 74px 18px 64px;
    }

    .hero__content p,
    .page-hero--image p:not(.eyebrow) {
        font-size: 1.08rem;
    }

    .hero-proof,
    .proof-strip,
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .button-row,
    .button {
        width: 100%;
    }

    .section,
    .page-hero,
    .split-section {
        padding: 64px 18px;
    }

    .card,
    .service-panel,
    .contact-panel,
    .portfolio-card__body,
    .live-site-card__body {
        padding: 22px;
    }

    .featured-work figcaption,
    .cta-band {
        padding: 28px;
    }

    .cta-band {
        margin: 42px 18px;
    }

    .cta-band::before {
        left: 28px;
        right: 28px;
    }

    .site-footer {
        flex-direction: column;
        padding: 34px 18px;
    }
}
