/* PWA–X — restrained, gallery-like. Warm paper, ink, one bronze accent. */

:root {
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --ink: #1d1c1a;
  --ink-soft: #5d5953;
  --line: #d6cfc4;
  --bronze: #8a6d4b;

  --tone-stone: linear-gradient(160deg, #d9d3c9 0%, #bdb5a8 100%);
  --tone-sand: linear-gradient(160deg, #e2d6c3 0%, #c7b49a 100%);
  --tone-charcoal: linear-gradient(160deg, #57534d 0%, #2b2926 100%);
  --tone-olive: linear-gradient(160deg, #bfbca8 0%, #8f8b74 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: .005em; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-weight: 400;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease);
}
.site-header.is-solid {
  background: rgba(244, 241, 236, .94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  padding-top: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-main { font-family: var(--serif); font-size: 28px; letter-spacing: .14em; font-weight: 400; }
.wm-dash { color: var(--bronze); }
.site-header:not(.is-solid) .wm-dash { color: currentColor; }
.wm-sub { font-size: 9px; letter-spacing: .32em; text-transform: uppercase; margin-top: 8px; opacity: .8; }
.nav { display: flex; gap: 40px; }
.nav a {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 28px; height: 18px; position: relative; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:first-child { top: 5px; }
.menu-toggle span:last-child { top: 13px; }
.menu-open .menu-toggle span:first-child { top: 9px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 9px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.mobile-menu a { font-family: var(--serif); font-size: 40px; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.menu-open .site-header { color: var(--ink); background: transparent; border-color: transparent; backdrop-filter: none; }

/* ---------- Image frames (photo or tone fallback) ---------- */
.img-frame {
  position: relative; width: 100%; height: 100%;
  background: var(--tone-stone); background-size: cover; background-position: center;
  overflow: hidden;
}
.img-frame[data-tone="sand"] { background-image: var(--tone-sand); }
.img-frame[data-tone="charcoal"] { background-image: var(--tone-charcoal); }
.img-frame[data-tone="olive"] { background-image: var(--tone-olive); }
.img-frame.has-photo { background-image: var(--photo) !important; }
.img-frame:not(.has-photo)::after {
  /* faint architectural line drawing for empty frames */
  content: ""; position: absolute; inset: 18% 22%;
  border: 1px solid rgba(255,255,255,.35);
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)) 0 62% / 100% 1px no-repeat;
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #2b2926; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.8s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide .img-frame { transform: scale(1.06); transition: transform 8s linear; }
.hero-slide.is-active .img-frame { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.hero-caption {
  position: absolute; left: var(--gutter); bottom: 40px; z-index: 2; color: #fff;
  display: flex; align-items: baseline; gap: 22px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}
.hero-title { font-family: var(--serif); font-size: 22px; letter-spacing: .06em; text-transform: none; }
.hero-place { opacity: .8; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; width: 1px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Intro ---------- */
.intro { padding: clamp(110px, 16vw, 220px) var(--gutter); max-width: 1180px; margin: 0 auto; text-align: center; }
.statement { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.18; }

/* ---------- Work ---------- */
.work { padding: 0 var(--gutter) clamp(90px, 12vw, 160px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 48px; }
.section-head .eyebrow { margin: 0; }
.filters { display: flex; gap: 28px; flex-wrap: wrap; }
.filter { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.filter:hover, .filter.is-active { color: var(--ink); border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px) clamp(16px, 2.4vw, 40px); }
.work-item { grid-column: span 6; cursor: pointer; transition: opacity .5s var(--ease); }
.work-item:nth-child(3n+1) { grid-column: 1 / span 7; }
.work-item:nth-child(3n+2) { grid-column: 9 / span 4; margin-top: 18vw; }
.work-item:nth-child(3n) { grid-column: 3 / span 6; }
.work-item.is-hidden { display: none; }
.work-grid.is-filtered .work-item { grid-column: span 6 !important; margin-top: 0 !important; }
.work-media { aspect-ratio: 4 / 5; overflow: hidden; }
.work-item:nth-child(3n+1) .work-media { aspect-ratio: 5 / 4; }
.work-media .img-frame { transition: transform 1.4s var(--ease); }
.work-item:hover .work-media .img-frame { transform: scale(1.04); }
.work-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.work-caption h3 { font-size: 24px; line-height: 1.2; }
.work-caption p { margin: 4px 0 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.work-caption .yr { font-size: 11px; letter-spacing: .2em; color: var(--ink-soft); white-space: nowrap; padding-top: 6px; }

/* ---------- Practice ---------- */
.practice { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding: clamp(90px, 12vw, 160px) var(--gutter); background: var(--paper-2); }
.practice-image { aspect-ratio: 3 / 4; }
.practice-image .img-frame { background-position: center 25%; }
.practice-text { max-width: 560px; }
.practice-text h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; margin-bottom: 32px; }
.practice-text p { color: var(--ink-soft); margin: 0 0 18px; }
.signature { font-family: var(--serif); font-size: 22px; color: var(--ink) !important; margin-top: 36px !important; }
.signature span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Approach ---------- */
.approach { padding: clamp(90px, 12vw, 160px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 72px); }
.pillar { border-top: 1px solid var(--ink); padding-top: 28px; }
.pillar .num { font-family: var(--serif); font-size: 18px; color: var(--bronze); }
.pillar h3 { font-size: 34px; margin: 14px 0 16px; }
.pillar p { color: var(--ink-soft); margin: 0; }

.interlude { height: 78vh; min-height: 380px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 110px); padding: clamp(90px, 12vw, 160px) var(--gutter); }
.services-head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; position: sticky; top: 120px; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: grid; grid-template-columns: 70px 1fr; padding: 30px 0; border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list span { font-size: 11px; letter-spacing: .2em; color: var(--bronze); padding-top: 10px; }
.service-list h3 { font-size: 28px; margin-bottom: 6px; }
.service-list p { margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(90px, 12vw, 160px) var(--gutter); }
.contact .eyebrow { color: #a49d92; }
.contact-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); max-width: 1320px; margin: 0 auto; }
.contact-text h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; margin-bottom: 28px; }
.contact-text > p { color: #bdb6ab; max-width: 440px; }
.contact-details { margin: 0; align-self: end; display: grid; gap: 22px; }
.contact-details div { display: grid; grid-template-columns: 140px 1fr; }
.contact-details dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #a49d92; padding-top: 4px; }
.contact-details dd { margin: 0; }
.contact-details a { border-bottom: 1px solid rgba(244,241,236,.3); transition: border-color .3s; }
.contact-details a:hover { border-color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 40px var(--gutter); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.footer-mark { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; color: var(--ink); text-transform: none; }
.footer-meta { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- Project overlay ---------- */
.project-view {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  display: grid; grid-template-columns: 7fr 4fr;
  opacity: 0; pointer-events: none; transition: opacity .6s var(--ease);
}
.project-view.is-open { opacity: 1; pointer-events: auto; }
.pv-close { position: absolute; top: 26px; right: var(--gutter); z-index: 2; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.pv-media { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.pv-media .img-frame { aspect-ratio: 3 / 2; height: auto; flex-shrink: 0; }
.pv-info { padding: 110px var(--gutter) 48px clamp(24px, 3vw, 48px); overflow-y: auto; display: flex; flex-direction: column; }
.pv-title { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.08; }
.pv-place { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin: 12px 0 32px; }
.pv-desc { color: var(--ink-soft); margin: 0 0 36px; }
.pv-meta { margin: 0; border-top: 1px solid var(--line); }
.pv-meta div { display: grid; grid-template-columns: 100px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-meta dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
.pv-meta dd { margin: 0; }
.pv-nav { display: flex; justify-content: space-between; margin-top: auto; padding-top: 40px; }
.pv-nav button { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.pv-nav button:hover { border-color: var(--ink); }
body.no-scroll { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item, .work-item:nth-child(n) { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .work-media, .work-item:nth-child(n) .work-media { aspect-ratio: 4 / 3; }
  .practice, .services, .contact-inner { grid-template-columns: 1fr; }
  .practice-image { aspect-ratio: 4 / 3; }
  .services-head h2 { position: static; }
  .pillars { grid-template-columns: 1fr; gap: 48px; }
  .project-view { grid-template-columns: 1fr; overflow-y: auto; display: block; }
  .pv-media { overflow: visible; padding: 70px 0 0; }
  .pv-info { padding: 36px var(--gutter) 48px; }
  .hero-caption { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .wm-sub { display: none; }
  .contact-details div { grid-template-columns: 1fr; gap: 2px; }
  .filters { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
