/* Public pages extend the cinematic home palette with readable editorial type. */
.eyebrow,
.service-index { font-size: 14px; }
.nav-location { font-size: 13px; }
.nav-links,
.nav-cta { font-size: 15px; }
.credentials { font-size: 16px; }
.service-row p { font-size: 16px; line-height: 1.5; }
.contact-shortcuts { font-size: 16px; }
.simple-footer { font-size: 15px; }

/* Shared navigation and footer. */
.nav-dropdown { position: relative; align-self: center; }
.nav-dropdown summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 12px 20px 12px 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.nav-dropdown[open] summary::after { transform: translateY(3px) rotate(225deg); }
.nav-dropdown summary:hover,
.nav-dropdown[open] summary { color: var(--accent); }
.nav-dropdown summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.nav-dropdown-panel {
  position: absolute;
  z-index: 12;
  top: 100%;
  right: -26px;
  min-width: 270px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 22px 45px rgba(64, 64, 64, .12);
}
.nav-links .nav-dropdown-panel a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 15px;
  line-height: 1.35;
}
.nav-links .nav-dropdown-panel a:last-child { border-bottom: 0; }
.nav-links .nav-dropdown-panel a:hover { padding-left: 5px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  padding-bottom: 30px;
  font-size: 15px;
}
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.inner-page footer { border-top: 1px solid var(--line); }
.inner-page main { min-height: 55vh; }

/* A restrained, photo-led opening for public WordPress content. */
.inner-hero { padding-top: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.inner-hero.has-image {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 110px);
}
.hero-copy { min-width: 0; }
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.breadcrumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.breadcrumbs a:hover { text-decoration-color: var(--accent); }
.breadcrumbs > span[aria-hidden="true"] { color: var(--accent); }
.hero-copy > .eyebrow { display: block; margin-top: 40px; color: var(--accent); }
.inner-title {
  color: var(--brand-gray);
  max-width: 24ch;
  margin-top: 16px;
  font: 400 clamp(32px, 3.2vw, 42px)/1.12 var(--editorial);
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.inner-summary {
  max-width: 55ch;
  margin-top: 24px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.58;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.hero-media { min-width: 0; margin: 0; }
.hero-media a { display: block; overflow: hidden; background: var(--light); }
.hero-media img {
  display: block;
  width: 100%;
  height: min(58svh, 520px);
  object-fit: cover;
  background: var(--light);
}
.hero-media figcaption,
.inner-hero-image figcaption,
.prose figcaption,
.media-gallery figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.type-post .inner-hero.has-image,
.type-project .inner-hero.has-image,
.type-plan .inner-hero.has-image { display: block; }
.type-post .inner-title { max-width: 28ch; font-size: clamp(32px, 3.2vw, 42px); }
.type-post .hero-copy,
.type-project .hero-copy,
.type-plan .hero-copy { max-width: 1120px; }
.type-post .hero-copy > .eyebrow,
.type-project .hero-copy > .eyebrow,
.type-plan .hero-copy > .eyebrow { margin-top: 40px; }
.type-post .hero-media,
.type-project .hero-media,
.type-plan .hero-media { margin-top: 36px; }
.type-post .hero-media img { height: min(67svh, 720px); }
.type-project .hero-media img { height: min(76svh, 840px); }
.type-plan .hero-media img {
  height: min(67svh, 670px);
  object-fit: contain;
}
.inner-hero:not(.has-image) .hero-copy { max-width: 1120px; }
.inner-hero-image { margin: 52px auto 0; }
.inner-hero-image img { display: block; max-width: 100%; max-height: 75svh; width: auto; height: auto; background: var(--light); }

/* The table of contents is optional and closed until requested. */
.inner-layout { display: block; padding-top: 72px; padding-bottom: 140px; }
.contents-nav,
.page-content { width: min(100%, 1120px); margin-inline: auto; }
.contents-nav { margin-bottom: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contents-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}
.contents-nav summary::-webkit-details-marker { display: none; }
.contents-nav summary::after { content: "+"; flex: 0 0 auto; font: 32px/1 var(--editorial); color: var(--accent); }
.contents-nav[open] summary::after { content: "−"; }
.contents-nav summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.contents-nav:not([open]) nav { display: none; }
.contents-nav nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  max-height: 55svh;
  overflow-y: auto;
  padding: 3px 0 25px;
  scrollbar-width: thin;
}
.contents-nav nav a {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contents-nav nav a:hover,
.contents-nav nav a[aria-current] { color: var(--accent); }
.page-content { min-width: 0; }

/* Long-form articles keep the reading measure narrow; images use the full column. */
.prose { min-width: 0; color: var(--ink); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.prose > * { max-width: 60ch; }
.prose > *:first-child { margin-top: 0; }
.prose :is(h2, h3, h4) { color: var(--ink); scroll-margin-top: 118px; text-wrap: balance; overflow-wrap: break-word; }
.prose h2 {
  max-width: 900px;
  margin-top: 2.1em;
  margin-bottom: .65em;
  border-top: 1px solid var(--line);
  padding-top: 27px;
  font: 400 clamp(26px, 2.5vw, 32px)/1.2 var(--editorial);
  letter-spacing: -.035em;
}
.prose h3 { margin-top: 2.2em; margin-bottom: .65em; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.prose h4 { margin-top: 1.8em; margin-bottom: .55em; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.prose :is(p, ul, ol, blockquote, table) { margin-top: 0; margin-bottom: 1.45em; }
.prose :is(ul, ol) { padding-left: 1.45em; }
.prose li { margin-bottom: .35em; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose :is(p, li, blockquote, th, td, a) { overflow-wrap: anywhere; }
.prose a:not(.gallery-item) { color: var(--link); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.prose a:not(.gallery-item):hover { color: var(--accent); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 30px;
  color: var(--ink);
  font: italic clamp(22px, 2.3vw, 28px)/1.42 var(--editorial);
}
.prose > figure,
.prose > .media-gallery,
.prose > table { max-width: 100%; }
.prose figure { margin: 56px 0 65px; }
.prose figure img,
.prose > img,
.prose a img { max-width: 100%; width: auto; height: auto; }
.prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.5;
}
.prose :is(th, td) { border-bottom: 1px solid var(--line); padding: 14px 23px 14px 0; text-align: left; vertical-align: top; }
.prose th { color: var(--ink); }
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  margin: 58px 0 70px;
}
.media-gallery:has(> .gallery-item:only-child) { grid-template-columns: 1fr; }
.type-project .media-gallery > .gallery-item:first-child:nth-last-child(n+3) { grid-column: 1 / -1; }
.gallery-item { display: block; min-width: 0; background: var(--light); cursor: zoom-in; }
.gallery-item img { display: block; width: 100%; transition: opacity .3s; }
.gallery-item:hover img { opacity: .86; }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Index cards and full public-content directory. */
.collection { padding-top: 105px; padding-bottom: 145px; }
.collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.collection-head h2,
.directory-section h2 { font: 400 clamp(28px, 2.7vw, 36px)/1.18 var(--editorial); letter-spacing: -.035em; }
.collection-head p { max-width: 47ch; color: var(--muted); font-size: 16px; line-height: 1.55; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 25px; }
.listing-card { display: flex; flex-direction: column; min-width: 0; }
.listing-card:first-child { grid-column: 1 / -1; }
.listing-cover { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--light); }
.listing-card:first-child .listing-cover { aspect-ratio: 16 / 7; }
.listing-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.listing-card:hover .listing-cover img { transform: scale(1.025); }
.listing-meta { display: block; margin-top: 24px; color: var(--accent); font-size: 14px; line-height: 1.4; }
.listing-card :is(h2, h3) { margin-top: 12px; font: 400 clamp(24px, 2.2vw, 28px)/1.18 var(--editorial); letter-spacing: -.025em; }
.listing-card p { max-width: 55ch; margin-top: 15px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.view-label { margin-top: auto; padding-top: 28px; font-size: 16px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.listing-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.directory-section { border-top: 1px solid var(--line); padding-top: 78px; padding-bottom: 105px; }
.directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 55px; margin-top: 37px; }
.directory-list a {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 21px 0;
  font-size: 19px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.directory-list a > span:last-child { flex: 0 0 auto; color: var(--accent); }
.directory-list a:hover { color: var(--accent); }

/* Contact and continuation. */
.contact-panel { margin: 25px auto 85px; padding: clamp(35px, 6vw, 85px); background: var(--accent); color: var(--paper); }
.contact-panel h2 { max-width: 22ch; font: 400 clamp(28px, 3vw, 38px)/1.18 var(--editorial); }
.contact-panel p { max-width: 53ch; margin-top: 25px; color: #eee9e6; font-size: 17px; line-height: 1.65; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 40px;
  border-top: 1px solid #8a6253;
  padding-top: 30px;
  font-size: 16px;
}
.contact-links a { min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: #c7ada2; text-underline-offset: 5px; }
.contact-links a:hover { color: #ffffff; }
.inner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 57px;
  padding-bottom: 95px;
}
.inner-cta h2 { max-width: 760px; font: 400 clamp(28px, 3vw, 38px)/1.18 var(--editorial); }
.inner-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  max-width: 290px;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  font-size: 16px;
  text-align: center;
  transition: background .25s, color .25s;
}
.inner-cta > a:hover { background: var(--ink); color: var(--paper); }

/* Native dialog retains full image proportions and keyboard controls. */
.media-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(96vw, 1500px);
  max-height: calc(100dvh - 28px);
  border: 0;
  padding: 52px 74px 34px;
  background: #1e1e1e;
  color: var(--paper);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.media-dialog::backdrop { background: rgba(30, 30, 30, .9); }
.media-dialog figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.media-dialog figure img { display: block; max-width: 100%; max-height: calc(100dvh - 145px); width: auto; height: auto; object-fit: contain; }
.media-dialog figcaption { max-width: 80ch; color: #e5e2df; font-size: 14px; line-height: 1.5; text-align: center; }
.media-dialog button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #888381;
  border-radius: 50%;
  background: #404040;
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
}
.media-dialog button:hover { background: #531d09; }
.media-dialog button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.media-close { top: 8px; right: 10px; }
.media-prev { top: 50%; left: 14px; transform: translateY(-50%); }
.media-next { top: 50%; right: 14px; transform: translateY(-50%); }

@keyframes content-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .inner-hero .hero-copy { animation: content-enter .72s ease both; }
  .inner-hero .hero-media { animation: content-enter .82s .12s ease both; }
}

@media (max-width: 1200px) {
  .nav-location { display: none; }
  .nav-links { gap: clamp(15px, 1.8vw, 30px); }
}
@media (max-width: 900px) {
  .mobile-menu {
    padding: 16px 32px max(30px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .menu-open .mobile-menu { display: block; }
  .mobile-menu a { display: block; padding: 13px 0; font-size: clamp(22px, 3vw, 27px); line-height: 1.25; overflow-wrap: anywhere; }
  .inner-hero { padding-top: 36px; padding-bottom: 64px; }
  .inner-hero.has-image { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy > .eyebrow { margin-top: 36px; }
  .hero-media img { height: min(55svh, 530px); }
  .type-post .hero-media,
  .type-project .hero-media,
  .type-plan .hero-media { margin-top: 40px; }
  .inner-layout { padding-top: 50px; padding-bottom: 100px; }
  .collection { padding-top: 78px; padding-bottom: 110px; }
  .collection-head { display: block; }
  .collection-head p { margin-top: 20px; }
}
@media (max-width: 600px) {
  .eyebrow,
  .service-index { font-size: 13px; }
  .credentials { font-size: 14px; }
  .service-row p { font-size: 14px; }
  .contact-shortcuts { font-size: 15px; }
  .simple-footer { font-size: 14px; }
  .footer-nav { gap: 4px 22px; font-size: 14px; }
  .footer-nav a { padding: 8px 0; }
  .inner-hero { padding-top: 29px; padding-bottom: 50px; }
  .breadcrumbs { font-size: 13px; }
  .hero-copy > .eyebrow,
  .type-post .hero-copy > .eyebrow,
  .type-project .hero-copy > .eyebrow,
  .type-plan .hero-copy > .eyebrow { margin-top: 30px; }
  .inner-title,
  .type-post .inner-title { margin-top: 14px; font-size: 30px; line-height: 1.15; }
  .inner-summary { margin-top: 20px; font-size: 16px; }
  .article-meta { margin-top: 24px; font-size: 14px; }
  .inner-hero.has-image { gap: 29px; }
  .hero-media img,
  .type-post .hero-media img,
  .type-project .hero-media img { height: min(52svh, 430px); }
  .type-plan .hero-media img { height: min(52svh, 430px); }
  .hero-media figcaption,
  .inner-hero-image figcaption,
  .prose figcaption,
  .media-gallery figcaption { font-size: 13px; }
  .inner-layout { padding-top: 32px; padding-bottom: 83px; }
  .contents-nav { margin-bottom: 50px; }
  .contents-nav summary { min-height: 62px; font-size: 16px; }
  .contents-nav nav { grid-template-columns: minmax(0, 1fr); }
  .contents-nav nav a { font-size: 15px; }
  .prose { font-size: 16px; line-height: 1.72; }
  .prose h2 { margin-top: 1.9em; padding-top: 22px; font-size: 26px; }
  .prose h3 { font-size: 24px; }
  .prose h4 { font-size: 20px; }
  .prose blockquote { padding-left: 20px; font-size: 26px; }
  .prose table { font-size: 15px; }
  .media-gallery { grid-template-columns: 1fr; gap: 13px; margin: 40px 0 50px; }
  .type-project .media-gallery > .gallery-item:first-child:nth-last-child(n+3) { grid-column: auto; }
  .collection { padding-top: 63px; padding-bottom: 90px; }
  .collection-head { margin-bottom: 34px; }
  .collection-head h2,
  .directory-section h2 { font-size: 26px; }
  .collection-head p { font-size: 16px; }
  .listing-grid { grid-template-columns: 1fr; gap: 48px; }
  .listing-card:first-child { grid-column: auto; }
  .listing-cover,
  .listing-card:first-child .listing-cover { aspect-ratio: 5 / 4; }
  .listing-meta { font-size: 13px; }
  .listing-card :is(h2, h3) { font-size: 24px; }
  .listing-card p { font-size: 16px; }
  .view-label { font-size: 15px; }
  .directory-list { grid-template-columns: 1fr; }
  .directory-list a { font-size: 17px; }
  .directory-section { padding-top: 59px; padding-bottom: 74px; }
  .contact-panel { margin-bottom: 54px; padding: 31px 24px; }
  .contact-panel h2 { font-size: 28px; }
  .contact-panel p { font-size: 16px; }
  .contact-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; font-size: 16px; }
  .inner-cta { display: block; padding-top: 37px; padding-bottom: 69px; }
  .inner-cta h2 { font-size: 28px; }
  .inner-cta > a { margin-top: 27px; }
  .media-dialog { width: 100vw; max-height: 100dvh; padding: 64px 16px 95px; }
  .media-dialog figure img { max-height: calc(100dvh - 195px); }
  .media-prev,
  .media-next { top: auto; bottom: 22px; transform: none; }
  .media-prev { left: calc(50% - 55px); }
  .media-next { right: calc(50% - 55px); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown summary::after,
  .listing-cover img,
  .gallery-item img,
  .inner-cta > a,
  .footer-nav a { transition: none; }
}
