:root {
  --ink: #161918;
  --charcoal: #202523;
  --paper: #f7f4ee;
  --white: #fff;
  --stone: #c7b9a3;
  --orange: #f37000;
  --muted: #646b68;
  --line: rgba(22, 25, 24, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; color: var(--ink); background: var(--white); }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 92px; padding: 0 clamp(1.25rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--paper); border-top: 4px solid var(--orange); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; letter-spacing: .06em; }
.brand-logo { width: 154px; height: 80px; object-fit: contain; }
.header-branding { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.brand-name { max-width: 255px; font-size: .78rem; font-weight: 700; line-height: 1.35; letter-spacing: .12em; }
.brand-phone { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--line); font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.brand-phone:hover { color: var(--orange); }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { font-size: .83rem; text-decoration: none; }
.nav-cta { padding: .75rem 1rem; color: var(--white); background: var(--ink); border-left: 4px solid var(--orange); }

.eyebrow { margin: 0 0 1.1rem; color: rgba(255,255,255,.7); font-size: .7rem; font-weight: 700; letter-spacing: .2em; }
.eyebrow-dark { color: var(--orange); }
h1, h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.02; letter-spacing: -.04em; }
h1 { max-width: 720px; font-size: clamp(3.3rem, 7vw, 7.8rem); }
h2 { font-size: clamp(2.4rem, 5vw, 5.2rem); }

.hero { position: relative; min-height: calc(100vh - 92px); display: grid; grid-template-columns: 1.15fr .85fr; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-image { position: relative; min-height: 650px; margin: 0; overflow: hidden; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.2), transparent 48%); pointer-events: none; }
.hero-image img { height: calc(100% + 40px); margin-top: -20px; object-fit: cover; transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.025); will-change: transform; }
.hero-copy { padding: clamp(4rem, 8vw, 9rem) clamp(2rem, 7vw, 7rem); align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--orange); }
.hero-copy .eyebrow { color: var(--orange); }
.hero-intro { max-width: 610px; margin: 2rem 0; color: rgba(255,255,255,.68); font-size: clamp(1rem, 1.25vw, 1.2rem); }
.text-link { align-self: flex-start; display: inline-flex; gap: 1rem; padding-bottom: .35rem; border-bottom: 2px solid var(--orange); text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.image-index { position: absolute; left: 2rem; bottom: 1.5rem; margin: 0; font-size: .7rem; letter-spacing: .14em; }
.image-index span { opacity: .4; }

.project-story { padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 8vw, 8rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.story-heading h2 { max-width: 820px; }
.story-copy > p { max-width: 580px; margin: .2rem 0 2.5rem; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.project-facts { margin: 0; }
.project-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.project-facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-facts dd { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery-section { padding: 0 clamp(1rem, 4vw, 4rem) clamp(7rem, 12vw, 12rem); }
.gallery-heading { margin-bottom: 3rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.gallery-heading h2 { font-size: clamp(2.6rem, 5vw, 5.4rem); }
.gallery-heading > p { max-width: 300px; margin: 0 0 .6rem; color: var(--muted); text-align: right; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 28vw; gap: .85rem; }
.project-image { position: relative; grid-column: span 4; min-height: 320px; padding: 0; overflow: hidden; border: 0; color: var(--white); background: #d9d4cb; cursor: zoom-in; text-align: left; }
.project-image.image-wide { grid-column: span 8; }
.project-image.image-tall { grid-row: span 2; }
.project-image img { height: 100%; object-fit: cover; transform: translate3d(0, 0, 0) scale(1.001); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.project-image::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(7,10,9,.72)); opacity: .82; }
.project-image::after { transition: opacity .6s ease; }
.project-image > span { position: absolute; z-index: 2; left: 1.25rem; right: 1.25rem; bottom: 1rem; padding-left: .8rem; border-left: 3px solid var(--orange); transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-image b, .project-image i { display: block; }
.project-image b { font: 400 1.35rem Georgia, serif; }
.project-image i { margin-top: .15rem; opacity: .7; font-size: .68rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.project-image:nth-child(3n+1) { --hover-x: 1%; --hover-y: -.5%; }
.project-image:nth-child(3n+2) { --hover-x: -1%; --hover-y: .5%; }
.project-image:nth-child(3n) { --hover-x: .5%; --hover-y: -1%; }
.project-image:hover img, .project-image:focus-visible img { transform: translate3d(var(--hover-x), var(--hover-y), 0) scale(1.065); filter: saturate(1.04) contrast(1.02); }
.project-image:hover::after, .project-image:focus-visible::after { opacity: .95; }
.project-image:hover > span, .project-image:focus-visible > span { transform: translateY(-.35rem); }
.project-image:focus-visible { outline: 3px solid var(--stone); outline-offset: 3px; }
.gallery-quote { grid-column: span 4; margin: 0; padding: clamp(2rem, 4vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); background: var(--charcoal); }
.gallery-quote p { margin: 0; font: 400 clamp(2rem, 3.5vw, 4rem)/1.08 Georgia, serif; letter-spacing: -.03em; }
.gallery-quote span { color: rgba(255,255,255,.5); font-size: .65rem; letter-spacing: .14em; }

.cta { padding: clamp(6rem, 13vw, 12rem) 1.5rem; color: var(--paper); background: var(--ink); text-align: center; }
.cta h2 { max-width: 950px; margin: 0 auto 2.5rem; }
.button { display: inline-flex; padding: 1rem 1.4rem; color: var(--ink); background: var(--paper); border-left: 5px solid var(--orange); text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }

footer { padding: 2.2rem clamp(1.25rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); font-size: .72rem; }
.footer-brand .brand-logo { width: 124px; height: auto; }
footer p { color: var(--muted); }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--white); background: rgba(10,12,11,.97); }
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox figure { width: 100%; max-width: 1400px; margin: auto; padding: 2rem 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; opacity: 1; transform: scale(1); transition: opacity .28s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
.lightbox img.is-switching { opacity: 0; transform: scale(.992); }
.lightbox figcaption { padding-top: 1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.lightbox figcaption span { color: rgba(255,255,255,.5); font-size: .7rem; letter-spacing: .14em; }
.lightbox h2 { font-size: clamp(1.5rem, 3vw, 2.8rem); letter-spacing: -.02em; text-align: right; }
.lightbox-close, .lightbox-nav { border: 0; color: var(--white); background: transparent; cursor: pointer; }
.lightbox-close { position: fixed; z-index: 2; top: 1rem; right: 1rem; width: 48px; height: 48px; font-size: 2rem; }
.lightbox-nav { width: 100%; height: 120px; font: 300 3rem Georgia, serif; }
.lightbox-nav:hover, .lightbox-close:hover { color: var(--stone); }

/* Motion is deliberately restrained so the photography stays in control. */
.motion-ready .site-header { animation: headerEnter .7s cubic-bezier(.2,.7,.2,1) both; }
.motion-ready .hero-image { animation: imageReveal 1.1s cubic-bezier(.2,.7,.2,1) both; }
.motion-ready .hero-image img { animation: heroDrift 16s ease-in-out infinite alternate; }
.motion-ready .hero-copy > * { opacity: 0; animation: heroRise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.motion-ready .hero-copy > :nth-child(1) { animation-delay: .25s; }
.motion-ready .hero-copy > :nth-child(2) { animation-delay: .38s; }
.motion-ready .hero-copy > :nth-child(3) { animation-delay: .52s; }
.motion-ready .hero-copy > :nth-child(4) { animation-delay: .64s; }
.motion-ready .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.lightbox[open] { animation: lightboxFade .25s ease both; }
.lightbox[open] figure { animation: lightboxRise .4s cubic-bezier(.2,.7,.2,1) both; }

@keyframes headerEnter { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes imageReveal { from { opacity: 0; clip-path: inset(0 12% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes heroDrift { from { transform: translate3d(-.6%, var(--hero-shift, 0), 0) scale(1.045); } to { transform: translate3d(.6%, var(--hero-shift, 0), 0) scale(1.025); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightboxRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 980px) {
  .brand-name { display: none; }
  .brand-phone { padding-left: 0; border-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 64vh; }
  .hero-copy { padding: 5rem clamp(1.25rem, 7vw, 5rem); border-top: 4px solid var(--orange); border-left: 0; }
  .image-index { top: calc(64vh - 2.5rem); bottom: auto; }
  .project-story { grid-template-columns: 1fr; }
  .project-grid { grid-auto-rows: 46vw; }
  .project-image, .gallery-quote { grid-column: span 6; }
  .project-image.image-wide { grid-column: span 12; }
  .gallery-quote { min-height: 420px; }
}

@media (max-width: 650px) {
  .site-header { min-height: 76px; padding: .45rem 1rem; gap: .75rem; }
  .header-branding { width: 100%; gap: .65rem; }
  .brand { gap: .55rem; }
  .brand-logo { width: 82px; height: auto; }
  .brand-name { display: block; max-width: 128px; font-size: .55rem; line-height: 1.35; letter-spacing: .08em; }
  .brand-phone { margin-left: auto; font-size: .68rem; letter-spacing: .02em; }
  nav { display: none; }
  .hero { min-height: auto; }
  .hero-image { min-height: 58vh; }
  .hero-copy { padding: 4rem 1.25rem 5rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .image-index { display: none; }
  .project-story { padding-top: 5rem; }
  .gallery-heading { align-items: start; flex-direction: column; }
  .gallery-heading > p { text-align: left; }
  .project-grid { display: block; }
  .project-image { width: 100%; height: 68vw; min-height: 330px; margin-bottom: .75rem; }
  .project-image.image-tall { height: 130vw; max-height: 720px; }
  .gallery-quote { min-height: 360px; margin-bottom: .75rem; }
  footer { align-items: flex-start; flex-direction: column; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lightbox figure { padding: 4rem 0 2rem; }
  .lightbox img { max-height: 70vh; }
  .lightbox figcaption { align-items: flex-start; flex-direction: column; padding: 1rem .25rem 0; }
  .lightbox h2 { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .motion-ready .site-header,
  .motion-ready .hero-image,
  .motion-ready .hero-image img,
  .motion-ready .hero-copy > *,
  .motion-ready .lightbox[open],
  .motion-ready .lightbox[open] figure { animation: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .hero-image img { height: 100%; margin-top: 0; transform: none; }
}
