:root {
  --cream: #f4eddf;
  --cream-deep: #e7dcc9;
  --ink: #171410;
  --brown: #4b3326;
  --gold: #a77b3e;
  --gold-pale: #d8bd8a;
  --line: rgba(23,20,16,.2);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem,4vw,4.75rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: clamp(.95rem,.25vw + .9rem,1.08rem); line-height: 1.55; overflow-x: hidden; }
body.viewer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--cream); background: var(--brown); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; transform: translateY(-200%); padding: .7rem 1rem; color: var(--cream); background: var(--ink); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 40; inset: 0 0 auto; min-height: 4.7rem; padding: 1rem var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; transition: background .25s ease,color .25s ease; }
.site-header.is-scrolled { background: color-mix(in srgb,var(--cream) 91%,transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.signature { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 1.2rem; }
.site-nav { display: flex; gap: clamp(1.1rem,2.5vw,2.8rem); align-items: center; }
.site-nav a,.language-switch,.menu-button { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 -.35rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .22s ease; }
.site-nav a:hover::after,.site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.language-switch { justify-self: end; display: flex; gap: .35rem; align-items: center; }
.language-switch button { padding: .2rem; border: 0; background: none; opacity: .42; cursor: pointer; }
.language-switch button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: .28rem; }
.menu-button { display: none; border: 0; background: none; cursor: pointer; }
.page-progress { position: absolute; inset: auto 0 0; height: 2px; overflow: hidden; }
.page-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.hero { min-height: 100svh; padding: 7rem var(--gutter) 2.5rem; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(18rem,.65fr); grid-template-rows: 1fr auto; gap: 2rem clamp(2rem,7vw,8rem); position: relative; align-items: center; }
.hero-title { position: relative; z-index: 2; }
.hero-title > p,.section-label { margin: 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 1.1rem 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(4.6rem,9vw,10.6rem); line-height: .79; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-left: clamp(1rem,6vw,6rem); white-space: nowrap; color: var(--brown); }
.hero-image { align-self: end; margin: 0; position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--cream-deep); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0; transform: scale(1.015); transition: opacity 1s ease,transform 5.5s cubic-bezier(.2,.75,.2,1); }
.hero-image img.is-active { opacity: 1; transform: scale(1); }
.hero-image-controls { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; display: flex; gap: .35rem; padding: .35rem; background: color-mix(in srgb,var(--cream) 88%,transparent); backdrop-filter: blur(8px); }
.hero-image-controls button { width: 2rem; height: 1.8rem; padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; font-size: .58rem; letter-spacing: .06em; cursor: pointer; opacity: .45; }
.hero-image-controls button[aria-pressed="true"] { border-color: currentColor; opacity: 1; }
.hero-intro { grid-column: 1; max-width: 39rem; display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.hero-intro p { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem,2.4vw,3rem); line-height: 1.08; }
.hero-intro a { flex: 0 0 auto; display: flex; gap: 1.3rem; padding-bottom: .35rem; border-bottom: 1px solid currentColor; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.manifesto { min-height: 85svh; padding: clamp(7rem,12vw,13rem) var(--gutter); display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem,8vw,10rem); align-content: center; align-items: end; border-top: 1px solid var(--line); }
.manifesto h2 { max-width: 15ch; margin: 0; font-family: var(--serif); font-size: clamp(3.5rem,7.5vw,9rem); font-weight: 400; line-height: .94; letter-spacing: -.025em; }
.manifesto-note { max-width: 35rem; margin: 0; font-size: clamp(1rem,1.2vw,1.35rem); }

.projects { color: var(--cream); background: var(--ink); position: relative; }
.projects-header { min-height: 52svh; padding: clamp(6rem,10vw,10rem) var(--gutter) 5rem; display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem,8vw,10rem); align-items: end; }
.projects-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(4rem,8.5vw,9.5rem); font-weight: 400; line-height: .85; }
.projects-header > p:last-child { margin: 0 .75rem .75rem 0; max-width: 26rem; }
.project-rail { position: sticky; z-index: 15; top: 4.7rem; display: flex; gap: .25rem; padding: .75rem var(--gutter); overflow-x: auto; color: var(--cream); background: rgba(23,20,16,.94); backdrop-filter: blur(14px); border-block: 1px solid rgba(244,237,223,.18); scrollbar-width: none; }
.project-rail::-webkit-scrollbar { display: none; }
.project-rail button { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border: 1px solid rgba(244,237,223,.28); border-radius: 50%; color: inherit; background: none; font-size: .65rem; cursor: pointer; transition: background .2s ease,color .2s ease,transform .2s ease; }
.project-rail button:hover,.project-rail button[aria-current="true"] { color: var(--ink); background: var(--gold-pale); border-color: var(--gold-pale); transform: translateY(-2px); }
.project-sequence { padding: 0 var(--gutter) clamp(7rem,12vw,12rem); }
.chapter-title { min-height: 34svh; padding: clamp(5rem,8vw,9rem) 0 4rem; display: flex; align-items: end; border-bottom: 1px solid rgba(244,237,223,.25); }
.chapter-title h3 { max-width: 14ch; margin: 0; font-family: var(--serif); font-size: clamp(3rem,6vw,7rem); font-weight: 400; line-height: .93; }
.project-row { min-height: min(86svh,58rem); display: grid; grid-template-columns: .38fr .72fr .9fr; gap: clamp(1.5rem,4vw,5rem); align-items: center; padding: clamp(4rem,7vw,7rem) 0; border-bottom: 1px solid rgba(244,237,223,.22); scroll-margin-top: 9rem; }
.project-row.has-break { margin-top: clamp(5rem,10vw,10rem); border-top: 1px solid rgba(244,237,223,.42); }
.project-row.is-reversed { grid-template-columns: .38fr .9fr .72fr; }
.project-row.is-reversed .project-copy { order: 3; }
.project-row.is-reversed .project-art { order: 2; }
.project-number { align-self: start; padding-top: .35rem; color: var(--gold-pale); font-size: .68rem; letter-spacing: .1em; }
.project-copy h3 { margin: .7rem 0 1.2rem; font-family: var(--serif); font-size: clamp(3rem,5.5vw,6.7rem); font-weight: 400; line-height: .86; letter-spacing: -.02em; }
.project-category { margin: 0; color: var(--gold-pale); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.project-description { max-width: 34rem; margin: 0; font-size: clamp(1rem,1.2vw,1.32rem); }
.project-open { margin-top: 2.2rem; padding: 0 0 .35rem; display: inline-flex; gap: 1.1rem; border: 0; border-bottom: 1px solid currentColor; color: inherit; background: none; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.project-open span:last-child { transition: transform .2s ease; }
.project-open:hover span:last-child { transform: translate(3px,-3px); }
.project-art { margin: 0; min-height: 31rem; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--mount,#332a23); cursor: pointer; }
.project-art::after { content: ""; position: absolute; inset: 1rem; border: 1px solid rgba(216,189,138,.28); pointer-events: none; }
.project-art img { width: auto; height: auto; max-width: min(78%,var(--native-w,78%)); max-height: 35rem; object-fit: contain; box-shadow: 0 1.2rem 3.5rem rgba(0,0,0,.34); transition: transform .7s cubic-bezier(.2,.75,.2,1),opacity .25s ease; }
.project-art.is-large-source img { width: 100%; max-width: 100%; height: 100%; max-height: none; object-fit: cover; box-shadow: none; }
.project-art:hover img { transform: scale(1.025); }
.project-art figcaption { position: absolute; z-index: 2; inset: auto 1.2rem 1rem auto; padding: .35rem .55rem; color: var(--ink); background: var(--cream); font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; }

.process { padding: clamp(7rem,12vw,13rem) var(--gutter); display: grid; grid-template-columns: .64fr 1.36fr; gap: clamp(3rem,7vw,9rem); align-items: start; }
.process-copy { position: sticky; top: 7rem; }
.process h2,.about h2 { margin: 1.4rem 0 2rem; font-family: var(--serif); font-size: clamp(3.5rem,6.5vw,7.5rem); font-weight: 400; line-height: .9; }
.process-copy > p:last-child { max-width: 33rem; }
.process-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1rem,3vw,3rem); align-items: start; }
.process-strip figure { margin: 0; }
.process-strip figure:nth-child(2) { margin-top: 8rem; }
.process-strip figure:nth-child(3) { grid-column: 1/-1; width: 70%; margin: 2rem 0 0 auto; }
.process-strip img { width: 100%; min-height: 18rem; max-height: 36rem; object-fit: contain; background: var(--cream-deep); }
.process-strip figure:nth-child(3) img { object-fit: cover; }
.process-strip figcaption { margin-top: .65rem; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }

.about { padding: clamp(7rem,12vw,13rem) var(--gutter); display: grid; grid-template-columns: minmax(18rem,.75fr) 1.25fr; gap: clamp(3rem,10vw,12rem); align-items: center; border-top: 1px solid var(--line); }
.about-image { margin: 0; position: relative; }
.about-image::before { content: ""; position: absolute; z-index: -1; inset: 1rem -1rem -1rem 1rem; background: var(--gold); }
.about-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.about-copy > p:not(.section-label) { max-width: 43rem; font-size: clamp(1.05rem,1.15vw,1.32rem); }

.contact { padding: clamp(7rem,11vw,12rem) var(--gutter); color: var(--cream); background: var(--brown); }
.contact h2 { margin: 1rem 0; font-family: var(--serif); font-size: clamp(6rem,17vw,19rem); font-weight: 400; line-height: .75; letter-spacing: -.04em; }
.contact > p:not(.section-label) { max-width: 39rem; font-size: clamp(1.1rem,1.4vw,1.5rem); }
.contact-links { margin-top: clamp(4rem,8vw,8rem); border-top: 1px solid rgba(244,237,223,.35); }
.contact-links a { display: grid; grid-template-columns: .35fr 1fr auto; gap: 2rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid rgba(244,237,223,.35); }
.contact-links span { font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.contact-links strong { font-family: var(--serif); font-size: clamp(1.4rem,2.5vw,3rem); font-weight: 400; }
.contact-links i { font-style: normal; font-size: 1.4rem; transition: transform .2s ease; }
.contact-links a:hover i { transform: translate(4px,-4px); }
footer { padding: 1.2rem var(--gutter); display: flex; justify-content: space-between; gap: 2rem; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }

.project-viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: var(--cream); overscroll-behavior: contain; }
.project-viewer::backdrop { background: rgba(0,0,0,.7); }
.viewer-bar { position: sticky; z-index: 5; top: 0; min-height: 4.7rem; padding: .8rem var(--gutter); display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.5rem; align-items: center; background: color-mix(in srgb,var(--cream) 92%,transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.viewer-bar button { border: 0; background: none; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.viewer-bar > span { justify-self: center; font-size: .68rem; }
.viewer-close { margin-left: 2rem; }
.viewer-content { padding: clamp(3rem,7vw,7rem) var(--gutter) 8rem; }
.viewer-heading { display: grid; grid-template-columns: .35fr 1fr .65fr; gap: 2rem; align-items: end; margin-bottom: clamp(3rem,7vw,7rem); }
.viewer-heading > p:first-child { margin: 0; color: var(--brown); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.viewer-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(4.5rem,10vw,12rem); font-weight: 400; line-height: .78; letter-spacing: -.04em; }
.viewer-heading > p:last-child { margin: 0; font-size: clamp(1.05rem,1.3vw,1.4rem); }
.viewer-gallery { display: flex; gap: 1rem; overflow-x: auto; padding: clamp(1rem,3vw,3rem); color: var(--cream); background: var(--ink); scroll-snap-type: x mandatory; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.viewer-gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.viewer-gallery figure { flex: 0 0 min(72vw,52rem); min-height: min(72svh,45rem); margin: 0; display: grid; place-items: center; position: relative; background: #211d19; scroll-snap-align: center; }
.viewer-gallery img { width: auto; height: auto; max-width: min(90%,var(--native-w,90%)); max-height: 65svh; object-fit: contain; }
.viewer-gallery figure.is-large-source img { width: 100%; height: 100%; max-width: 100%; max-height: min(72svh,45rem); object-fit: contain; }
.viewer-gallery video { width: 100%; height: 100%; max-height: min(72svh,45rem); background: #0b0a09; object-fit: contain; }
.viewer-gallery .viewer-video { background: #0b0a09; }
.viewer-gallery figcaption { position: absolute; right: 1rem; bottom: 1rem; font-size: .62rem; letter-spacing: .08em; }
.viewer-story { margin-top: clamp(4rem,8vw,8rem); display: grid; grid-template-columns: .6fr 1fr; gap: clamp(2rem,8vw,10rem); }
.viewer-story p { margin: 0; max-width: 43rem; font-size: clamp(1.05rem,1.25vw,1.42rem); }
.viewer-story p:first-child { font-family: var(--serif); font-size: clamp(2rem,3.3vw,4rem); line-height: 1.05; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease,transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .menu-button { display: flex; gap: .55rem; align-items: center; }
  .menu-button i,.menu-button i::after { width: 1.1rem; height: 1px; display: block; background: currentColor; content: ""; transition: transform .2s ease; }
  .menu-button i::after { transform: translateY(.32rem); }
  .site-nav { position: fixed; inset: 4.7rem 0 auto; padding: 2rem var(--gutter); display: none; flex-direction: column; align-items: flex-start; color: var(--ink); background: var(--cream); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 8rem; }
  .hero h1 span:last-child { margin-left: 0; white-space: normal; }
  .hero-image { width: min(76%,32rem); justify-self: end; }
  .hero-intro { grid-column: 1; }
  .manifesto,.projects-header,.chapter-title,.project-row,.project-row.is-reversed,.process,.about,.viewer-heading { grid-template-columns: 1fr; }
  .manifesto-note { grid-column: 1; }
  .projects-header { align-content: end; }
  .project-row,.project-row.is-reversed { min-height: 0; }
  .project-row.is-reversed .project-copy,.project-row.is-reversed .project-art { order: initial; }
  .project-number { align-self: auto; }
  .project-art { min-height: 30rem; }
  .process-copy { position: static; }
  .about-image { width: min(78%,32rem); }
  .viewer-story { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { gap: 1rem; }
  .signature { width: 2.25rem; height: 2.25rem; }
  .menu-button span { display: none; }
  .hero h1 { font-size: clamp(4.2rem,21vw,7rem); }
  .hero-intro { display: block; }
  .hero-intro a { margin-top: 2rem; width: fit-content; }
  .manifesto h2 { font-size: clamp(3.2rem,14vw,5rem); }
  .projects-header { min-height: 55svh; }
  .projects-header h2 { font-size: clamp(4rem,18vw,6rem); }
  .project-row { padding-block: 4.5rem; }
  .project-copy h3 { font-size: clamp(3.2rem,16vw,5rem); }
  .project-art { min-height: 25rem; }
  .project-art img { max-width: min(82%,var(--native-w,82%)); }
  .process-strip { grid-template-columns: 1fr; }
  .process-strip figure:nth-child(2),.process-strip figure:nth-child(3) { width: 100%; margin: 0; grid-column: auto; }
  .contact h2 { font-size: clamp(6rem,30vw,10rem); }
  .contact-links a { grid-template-columns: 1fr auto; gap: .5rem; }
  .contact-links a span { grid-column: 1/-1; }
  footer { flex-direction: column; }
  .viewer-bar { grid-template-columns: 1fr auto 1fr; gap: .5rem; }
  .viewer-bar > span { display: none; }
  .viewer-bar button span { display: none; }
  .viewer-close { margin: 0; justify-self: end; }
  .viewer-heading h2 { font-size: clamp(4rem,20vw,7rem); }
  .viewer-gallery figure { flex-basis: 88vw; min-height: 68svh; }
}

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