:root {
    --ink: #12100d;
    --charcoal: #25221e;
    --stone: #6f6a61;
    --soft-stone: #948d82;
    --line: #ded8ce;
    --marble: #f7f6f2;
    --paper: #ffffff;
    --gold: #a9844b;
    --gold-dark: #7f6338;
    --error: #8b2e2e;
    --success: #2f6549;
    --warning: #85611f;
    --shadow: 0 22px 70px rgba(18, 16, 13, 0.08);
    --display: Georgia, "Times New Roman", serif;
    --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--body);
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.96), rgba(247, 246, 242, 0.92)),
        repeating-linear-gradient(122deg, rgba(36, 33, 29, 0.05) 0 1px, transparent 1px 74px),
        repeating-linear-gradient(34deg, rgba(169, 132, 75, 0.08) 0 1px, transparent 1px 118px),
        var(--marble);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    z-index: 1000;
    top: 16px;
    left: 16px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: var(--paper);
    background: var(--ink);
}

.section-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section-inner.narrow {
    width: min(820px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(222, 216, 206, 0.8);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    gap: 24px;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(222, 216, 206, 0.85);
    object-fit: cover;
}

.brand-name {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--stone);
    font-size: 0.92rem;
}

.main-nav a {
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--ink);
}

.nav-cta {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--gold);
    color: var(--ink);
}

.nav-toggle {
    position: relative;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    cursor: pointer;
}

.nav-toggle-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1px;
    margin-left: -9px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-line:nth-child(1) {
    transform: translateY(-6px);
}

.nav-toggle-line:nth-child(3) {
    transform: translateY(6px);
}

.nav-open .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg);
}

.nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg);
}

.marble-surface,
.marble-band {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.92), rgba(246, 244, 239, 0.92)),
        repeating-linear-gradient(128deg, rgba(18, 16, 13, 0.06) 0 1px, transparent 1px 86px),
        repeating-linear-gradient(46deg, rgba(169, 132, 75, 0.07) 0 1px, transparent 1px 140px);
}

.hero-section {
    min-height: calc(100vh - 124px);
    padding: 84px 0 76px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 64px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
}

h1 {
    max-width: 780px;
    font-size: clamp(3.1rem, 9vw, 6.4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

h3 {
    font-size: 1.35rem;
}

.hero-lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--stone);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

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

.button-primary:hover,
.button-primary:focus {
    background: var(--charcoal);
}

.button-secondary {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.68);
}

.hero-signature {
    display: flex;
    justify-content: flex-end;
}

.hero-signature img {
    width: min(100%, 256px);
    aspect-ratio: 1;
    border: 1px solid var(--line);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.method-section,
.services-section,
.criterion-section,
.contact-section,
.legal-content {
    padding: 92px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 48px;
}

.section-heading p:not(.eyebrow) {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--stone);
    font-size: 1.08rem;
}

.section-heading.compact {
    margin-bottom: 0;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
}

.method-step {
    min-height: 280px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.method-step span {
    display: block;
    margin-bottom: 42px;
    color: var(--gold);
    font-family: var(--display);
    font-size: 1.1rem;
}

.method-step p,
.service-list p,
.criterion-section p,
.contact-copy p,
.legal-content p {
    color: var(--stone);
}

.services-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
}

.service-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.service-list article {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.service-list p {
    max-width: 580px;
    margin: 12px 0 0;
}

.criterion-section {
    color: var(--paper);
    background:
        linear-gradient(120deg, rgba(18, 16, 13, 0.94), rgba(37, 34, 30, 0.96)),
        repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px);
}

.criterion-section h2,
.criterion-section .eyebrow {
    color: var(--paper);
}

.criterion-section .eyebrow {
    opacity: 0.78;
}

.criterion-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: end;
    gap: 72px;
}

.criterion-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 116px;
}

.contact-copy p:not(.eyebrow) {
    max-width: 440px;
    font-size: 1.08rem;
}

.contact-form {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    margin-bottom: 18px;
}

.field label,
.privacy-check {
    display: block;
    margin-bottom: 8px;
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 13px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(169, 132, 75, 0.15);
}

.field-error {
    margin: 7px 0 0;
    color: var(--error);
    font-size: 0.86rem;
}

.privacy-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 20px;
    color: var(--stone);
    font-weight: 500;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--ink);
}

.privacy-check a {
    color: var(--ink);
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.form-alert {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
}

.form-alert span {
    color: var(--stone);
}

.form-alert-success {
    color: var(--success);
}

.form-alert-warning {
    color: var(--warning);
}

.form-alert-error {
    color: var(--error);
}

.form-submit {
    width: 100%;
}

.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.legal-hero {
    padding: 88px 0 72px;
}

.legal-hero h1 {
    font-size: clamp(2.7rem, 7vw, 5rem);
}

.legal-hero p {
    max-width: 640px;
    color: var(--stone);
    font-size: 1.08rem;
}

.legal-content {
    background: var(--paper);
}

.legal-content h2 {
    margin-top: 34px;
    font-size: 1.7rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: var(--ink);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    min-height: 164px;
    margin: 0 auto;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-brand img {
    width: 88px;
    height: 88px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: cover;
}

.footer-brand p {
    margin: 0;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--paper);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        display: grid;
        gap: 0;
        padding: 18px 20px 24px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .nav-open .main-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-cta {
        display: inline-flex;
        width: max-content;
        margin-top: 14px;
        padding: 10px 16px;
        border-bottom: 1px solid var(--gold);
    }

    .hero-grid,
    .services-layout,
    .criterion-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 62px;
    }

    .hero-signature {
        justify-content: flex-start;
    }

    .hero-signature img {
        width: 170px;
    }

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

    .contact-copy {
        position: static;
    }
}

@media (max-width: 640px) {
    .section-inner,
    .section-inner.narrow {
        width: min(100% - 28px, 1120px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 0.96rem;
    }

    .hero-section,
    .method-section,
    .services-section,
    .criterion-section,
    .contact-section,
    .legal-content {
        padding: 64px 0;
    }

    h1 {
        font-size: clamp(2.55rem, 16vw, 4rem);
    }

    h2 {
        font-size: clamp(1.9rem, 11vw, 3rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .method-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .method-step {
        min-height: auto;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-inner,
    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }
}
