:root {
    color-scheme: light;
    --page-bg: #f3f0e8;
    --primary-text: #20231f;
    --surface-bg: #e9e6dc;
    --muted-text: #62655e;
    --header-bg: rgba(243, 240, 232, .95);
    --contact-bg: #283b34;
    --accent-color: #bd573e;
    --line-color: rgba(32, 35, 31, .2);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', Arial, sans-serif;
    --transition: 220ms ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --page-bg: #171b19;
        --primary-text: #eeeae1;
        --surface-bg: #202723;
        --muted-text: #c1c5bd;
        --header-bg: rgba(23, 27, 25, .95);
        --contact-bg: #293b34;
        --accent-color: #e18168;
        --line-color: rgba(238, 234, 225, .22);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--page-bg); color: var(--primary-text); font: 16px/1.65 var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition), background-color var(--transition), transform var(--transition); }
a:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: -5rem; left: 1rem; padding: .7rem 1rem; background: var(--primary-text); color: var(--page-bg); }
.skip-link:focus { top: 1rem; }
.header { position: absolute; z-index: 5; inset: 0 0 auto; background: var(--header-bg); }
.nav { min-height: 76px; max-width: 1440px; padding: 0 6vw; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.logo span { color: var(--accent-color); }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.nav-links a:hover, .footer a:hover { color: var(--accent-color); }
.nav-contact { border-bottom: 1px solid var(--accent-color); padding-bottom: .3rem; }
.nav-contact span { color: var(--accent-color); }
.hero { position: relative; min-height: min(850px, 100svh); min-height: max(680px, 100svh); display: flex; align-items: center; overflow: hidden; color: #fff; background: #343936; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 48%; }
.hero-shade { background: linear-gradient(90deg, rgba(16, 22, 20, .77), rgba(16, 22, 20, .25) 75%), linear-gradient(0deg, rgba(16, 22, 20, .32), transparent 42%); }
.hero-content { position: relative; max-width: 900px; padding: 10rem 8vw 8rem; animation: arrive .8s ease-out both; }
.eyebrow { margin: 0 0 1.25rem; color: var(--accent-color); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { color: #f0b29f; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.035em; }
.hero h1 { margin: 0 0 1.5rem; font-size: clamp(3rem, 6.3vw, 6.3rem); line-height: 1.05; }
.hero h1 em, .about h2 em { font-weight: 500; }
.hero-intro { max-width: 520px; margin-bottom: 2rem; color: rgba(255,255,255,.88); font-size: 1.12rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 1.4rem; padding: .9rem 1.2rem; border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: .82rem; font-weight: 600; }
.btn-primary span { color: #f0b29f; }
.btn-primary:hover { background: #fff; color: #20231f; }
.hero-index { position: absolute; right: 6vw; bottom: 2rem; margin: 0; color: rgba(255,255,255,.8); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.section-wrap { width: min(1280px, 100%); padding: 7rem 6vw; margin: auto; }
.section-heading { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-heading h2, .about h2, .contact h2 { margin-bottom: 1rem; font-size: clamp(2.3rem, 4.3vw, 4rem); line-height: 1.12; }
.section-heading > p:last-child { color: var(--muted-text); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 2rem; align-items: start; }
.gallery-item { min-width: 0; margin: 0; }
.gallery-item:nth-child(even) { margin-top: 5rem; }
.gallery-item img { width: 100%; height: clamp(290px, 37vw, 510px); object-fit: cover; background: var(--surface-bg); }
.gallery-wide img { height: clamp(340px, 47vw, 620px); }
.gallery-item:nth-child(3) img { object-position: center 35%; }
.gallery-item figcaption { display: grid; grid-template-columns: 1fr; padding-top: 1rem; }
.series-number { color: var(--accent-color); font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
.caption-title { margin-top: .25rem; font: 500 1.4rem/1.3 var(--font-heading); }
.caption-context { margin-top: .2rem; color: var(--muted-text); font-size: .82rem; }
.editorial-note { margin: 3rem 0 0; color: var(--muted-text); font-size: .76rem; text-align: center; }
.about { background: var(--surface-bg); }
.about-inner { position: relative; display: grid; grid-template-columns: .55fr 1.45fr; gap: 2rem; align-items: start; }
.about-inner > .eyebrow { padding-top: .7rem; }
.about-copy { max-width: 760px; }
.about h2 { margin-bottom: 2rem; }
.about-copy p { max-width: 690px; color: var(--muted-text); font-size: 1.05rem; }
.about-mark { position: absolute; right: 6vw; bottom: 5rem; color: var(--accent-color); font-size: .7rem; line-height: 1.4; letter-spacing: .14em; text-align: right; }
.services .section-heading { margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-color); }
.service-card { padding: 1.8rem 1.5rem 1rem 0; }
.service-card + .service-card { padding-left: 1.5rem; border-left: 1px solid var(--line-color); }
.service-card > span { color: var(--accent-color); font-size: .7rem; letter-spacing: .12em; }
.service-card h3 { margin: 1rem 0 .7rem; font: 600 1.3rem/1.3 var(--font-heading); }
.service-card p { margin: 0; color: var(--muted-text); font-size: .9rem; }
.contact { padding: 6rem 6vw; background: var(--contact-bg); color: #f4f0e8; text-align: center; }
.contact .eyebrow { color: #f0b29f; }
.contact h2 { max-width: 800px; margin: 0 auto 2rem; }
.contact .btn-primary { border-color: rgba(255,255,255,.55); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 6vw; color: var(--muted-text); font-size: .72rem; }
.footer p { margin: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 700px) {
    html { scroll-padding-top: 1rem; }
    .nav { min-height: auto; padding: 1rem 5vw; align-items: flex-start; flex-direction: column; gap: .7rem; }
    .nav-links { width: 100%; justify-content: space-between; gap: .5rem; font-size: .76rem; }
    .hero { min-height: 720px; min-height: 100svh; }
    .hero-image { object-position: 58% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(16, 22, 20, .68), rgba(16, 22, 20, .16)), linear-gradient(0deg, rgba(16, 22, 20, .4), transparent 65%); }
    .hero-content { padding: 11rem 7vw 7rem; }
    .hero h1 { font-size: clamp(2.9rem, 12vw, 4.5rem); }
    .hero-intro { font-size: 1rem; }
    .hero-index { right: 7vw; bottom: 1.2rem; }
    .section-wrap { padding: 5rem 7vw; }
    .section-heading { margin-bottom: 2.5rem; }
    .gallery { grid-template-columns: 1fr; gap: 2.5rem; }
    .gallery-item:nth-child(even) { margin-top: 0; }
    .gallery-item img, .gallery-wide img { height: auto; max-height: 520px; aspect-ratio: 4 / 3; }
    .about-inner { grid-template-columns: 1fr; gap: .5rem; }
    .about-mark { right: 7vw; bottom: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card, .service-card + .service-card { padding: 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--line-color); }
    .footer { flex-wrap: wrap; padding: 1.5rem 7vw; }
    .footer p { order: 3; width: 100%; }
}
