:root {
    --color-cream: #e6ddd0;
    --color-warm-white: #f3eee7;
    --color-sand: #b9a28e;
    --color-taupe: #75675d;
    --color-charcoal: #1c1a18;
    --color-clay: #a74f3f;
    --color-wood: #6e372c;
    --color-light-clay: #d29a88;
    --max-width: 1440px;
    --header-height: 80px;
    --serif: 'Cormorant Garamond', 'Songti SC', 'STSong', serif;
    --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--color-cream);
    color: var(--color-charcoal);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body { cursor: default; }
a { color: inherit; cursor: pointer; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; object-fit: cover; }

:focus-visible {
    outline: 1px solid var(--color-clay);
    outline-offset: 4px;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    opacity: .035;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    background: linear-gradient(180deg, rgba(230, 221, 208, .96), rgba(230, 221, 208, .72));
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    transition: background-color .7s ease, border-color .7s ease;
}

.site-header.is-scrolled {
    background: rgba(230, 221, 208, .98);
    border-bottom-color: rgba(117, 103, 93, .25);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: .75rem;
    color: var(--color-charcoal);
}

.brand-mark {
    color: var(--color-clay);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
    letter-spacing: .08em;
}

.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .03em; }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); }
.site-nav a { position: relative; padding: .4rem 0; font-size: .72rem; letter-spacing: .16em; }
.site-nav a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-clay);
    content: '';
    transition: width .7s cubic-bezier(.16, 1, .3, 1);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }

.section-band { padding: clamp(6rem, 12vw, 11rem) clamp(1.5rem, 7vw, 8rem); }
.hero {
    width: min(100%, var(--max-width));
    min-height: 100svh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 7vw, 8rem);
    align-items: center;
    padding: calc(var(--header-height) + clamp(3rem, 7vw, 7rem)) clamp(1.5rem, 7vw, 8rem) clamp(4rem, 8vw, 8rem);
}

.eyebrow, .section-kicker, .work-category, .work-number, .contact-row > span, .scroll-cue, .heading-note, .site-footer {
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow { margin: 0 0 2rem; color: var(--color-clay); font-size: .7rem; }
.hero-title { margin: 0; font-family: var(--serif); font-size: clamp(3.8rem, 8vw, 7.4rem); font-weight: 300; line-height: .88; letter-spacing: -.01em; }
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; transform: translateY(105%); animation: line-in 1.15s cubic-bezier(.16, 1, .3, 1) forwards; }
.hero-line:nth-child(1) > span { animation-delay: .35s; }
.hero-line:nth-child(2) > span { animation-delay: .53s; }
.hero-line:nth-child(3) > span { animation-delay: .71s; }
@keyframes line-in { to { transform: translateY(0); } }
.hero-lede { margin: 2.3rem 0 0; color: var(--color-taupe); font-size: clamp(.95rem, 1.4vw, 1.12rem); line-height: 1.9; }
.scroll-cue { display: inline-flex; align-items: center; gap: .9rem; margin-top: clamp(3rem, 8vw, 8rem); color: var(--color-taupe); font-size: .63rem; }
.scroll-line { width: 1px; height: 48px; background: var(--color-clay); animation: pulse-line 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes pulse-line { 0%, 100% { transform: scaleY(.45); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }
.hero-media { margin: 0; }
.hero-media img { height: min(75vh, 760px); min-height: 500px; box-shadow: 0 20px 45px rgba(28, 26, 24, .16); transform: translateY(var(--parallax-y, 0)); transition: transform .25s ease-out; }
figcaption { display: flex; justify-content: space-between; margin-top: .85rem; color: var(--color-taupe); font-size: .62rem; letter-spacing: .14em; }
figcaption span { color: var(--color-clay); font-family: var(--serif); font-size: 1.05rem; font-style: italic; letter-spacing: 0; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 9vw, 10rem); align-items: center; background: var(--color-warm-white); }
.about-portrait img { height: 70vh; min-height: 480px; filter: grayscale(1) contrast(1.05); }
.about-content { padding: 1rem 0; }
.section-kicker { margin: 0 0 1.4rem; color: var(--color-clay); font-size: .68rem; font-weight: 500; }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 300; line-height: .95; }
.about-copy { max-width: 37rem; margin-top: 2.8rem; color: var(--color-taupe); font-size: 1rem; }
.about-copy p { margin: 0 0 1.3rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--color-sand); }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat strong { font-family: var(--serif); font-size: 2.7rem; font-style: italic; font-weight: 300; line-height: 1; }
.stat span { color: var(--color-taupe); font-size: .65rem; letter-spacing: .12em; }

.philosophy { background: var(--color-cream); }
.section-heading { max-width: 50rem; }
.philosophy .section-title { max-width: 19ch; }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 5rem; }
.principle { min-height: 24rem; padding: 2.2rem 2rem; border: 1px solid var(--color-sand); background: rgba(243, 238, 231, .58); transition: border-color .9s ease, box-shadow .9s ease, transform .9s ease; }
.principle:hover { border-color: var(--color-clay); box-shadow: 0 18px 40px rgba(110, 55, 44, .12); transform: translateY(-4px); }
.principle-number { color: var(--color-clay); font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.principle h3 { margin: 3.7rem 0 1rem; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; }
.principle p { margin: 0; color: var(--color-taupe); font-size: .92rem; line-height: 1.85; }

.works { background: var(--color-warm-white); }
.works-heading { margin: 0 auto; text-align: center; }
.heading-note { max-width: 35rem; margin: 1.5rem auto 0; color: var(--color-taupe); font-size: .63rem; line-height: 1.8; letter-spacing: .08em; text-transform: none; }
.work-list { display: flex; flex-direction: column; gap: clamp(7rem, 13vw, 12rem); margin-top: clamp(5rem, 10vw, 9rem); }
.work-item { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.work-item--reverse { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.work-item--reverse .work-image { order: 2; }
.work-item--reverse .work-meta { order: 1; }
.work-image { overflow: hidden; }
.work-image img { height: 70vh; min-height: 460px; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.work-image:hover img { transform: scale(1.035); }
.work-meta { max-width: 28rem; }
.work-number { display: block; color: var(--color-clay); font-family: var(--serif); font-size: 1.3rem; font-style: italic; letter-spacing: .04em; text-transform: none; }
.work-meta h3 { margin: 1.5rem 0 .7rem; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; line-height: .95; }
.work-category { margin: 0; color: var(--color-taupe); font-size: .61rem; line-height: 1.6; }
.work-description { max-width: 25rem; margin: 2rem 0 0; color: var(--color-taupe); font-size: .97rem; line-height: 1.85; }

.contact { background: var(--color-cream); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr 210px; gap: clamp(2.5rem, 8vw, 8rem); align-items: end; margin-top: 5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.35rem; }
.contact-row { display: flex; flex-direction: column; gap: .35rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--color-sand); }
.contact-row > span { color: var(--color-taupe); font-size: .6rem; }
.contact-row a, .contact-row strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.contact-row a { transition: color .5s ease; }
.contact-row a:hover, .contact-row a:focus-visible { color: var(--color-wood); }
.contact-note { max-width: 28rem; margin: 0; color: var(--color-taupe); font-size: .95rem; line-height: 1.9; }
.contact-qr { width: 210px; margin: 0; padding: .65rem; border: 1px solid var(--color-sand); background: var(--color-warm-white); box-shadow: 12px 12px 0 rgba(110, 55, 44, .12); }
.contact-qr img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.contact-qr figcaption { display: block; margin: .65rem 0 0; color: var(--color-taupe); font-size: .56rem; letter-spacing: .14em; text-align: center; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1.5rem, 7vw, 8rem); background: var(--color-charcoal); color: var(--color-sand); font-size: .61rem; }
.footer-tagline { font-family: var(--serif); font-size: .95rem; font-style: italic; letter-spacing: .03em; text-transform: none; }

.reveal-text { opacity: 0; transform: translateY(30px); transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.reveal-text.is-visible { opacity: 1; transform: translateY(0); }
.reveal-text:nth-child(2) { transition-delay: .18s; }
.reveal-text:nth-child(3) { transition-delay: .36s; }
.media-scatter { --scatter-x: 0px; --scatter-y: 0px; --scatter-opacity: 1; transform: translate3d(var(--scatter-x), var(--scatter-y), 0); opacity: var(--scatter-opacity); will-change: transform, opacity; }
.media-scatter.reveal-text { transform: translate3d(var(--scatter-x), calc(30px + var(--scatter-y)), 0); }
.media-scatter.reveal-text.is-visible { transform: translate3d(var(--scatter-x), var(--scatter-y), 0); }

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--header-height) + 4rem); }
    .hero-media img { height: min(70vh, 680px); }
    .about, .work-item, .work-item--reverse { grid-template-columns: 1fr; }
    .work-item--reverse .work-image, .work-item--reverse .work-meta { order: initial; }
    .about-portrait img { height: min(70vh, 650px); }
    .philosophy-grid { grid-template-columns: 1fr; }
    .principle { min-height: auto; }
    .contact-grid { grid-template-columns: 1fr; align-items: start; }
    .contact-qr { width: 180px; }
    .scroll-cue { display: none; }
}

@media (max-width: 640px) {
    :root { --header-height: 70px; }
    .site-header { padding: 0 1.25rem; }
    .brand { gap: .5rem; }
    .brand-name { font-size: 1rem; }
    .site-nav { gap: 1.25rem; }
    .site-nav a { font-size: .62rem; letter-spacing: .1em; }
    .section-band { padding: 5rem 1.5rem; }
    .hero { gap: 3rem; padding: calc(var(--header-height) + 3.5rem) 1.5rem 4rem; }
    .hero-title { font-size: clamp(3.6rem, 18vw, 5.6rem); }
    .hero-media img, .about-portrait img, .work-image img { min-height: 0; height: 62vh; }
    .about-copy { margin-top: 2rem; font-size: .95rem; }
    .stats { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
    .stat { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .stat strong { font-size: 2.3rem; }
    .philosophy-grid { margin-top: 3.5rem; }
    .principle { padding: 1.75rem 1.5rem; }
    .principle h3 { margin-top: 2.5rem; }
    .work-list { gap: 6rem; margin-top: 4rem; }
    .work-meta h3 { font-size: 2.7rem; }
    .contact-grid { gap: 3rem; margin-top: 3.5rem; }
    .contact-row a, .contact-row strong { font-size: 1.25rem; }
    .contact-qr { width: 160px; }
    .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal-text { opacity: 1; transform: none; }
}
