/* =============================================================================
   Interior Pages — Editorial system aligned to home experiment
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f3ee;
  color: #0d0d0b;
}

.page-interior {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.im {
  flex: 1 0 auto;
  padding-top: 7.5rem;
}

.page-interior .hn__link--active {
  color: #0d0d0b;
}

.page-interior .hn__link--active::after {
  content: '';
  display: block;
  margin-top: 0.35rem;
  height: 1px;
  background: #b8a07a;
}

.ip {
  padding: 5rem 3rem 6rem;
}

.ip__inner {
  max-width: 900px;
  margin: 0 auto;
}

.ip__inner--wide {
  max-width: 1160px;
}

.ip__head {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #d8d4ca;
  padding-bottom: 1.8rem;
}

.ip__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: end;
}

.ip__label {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8880;
}

.ip__title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.ip__subtitle {
  margin: 1rem 0 0;
  max-width: 740px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #8a8880;
}

.ip__meta {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8880;
}

.ip__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.ip__stat {
  padding: 0.8rem 0.9rem;
  border: 1px solid #d8d4ca;
  background: #eceae3;
}

.ip__stat-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: #0d0d0b;
}

.ip__stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8880;
}

.ip__content {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #262621;
}

.ip__content > :first-child {
  margin-top: 0;
}

.ip__content h2,
.ip__content h3,
.ip__content h4 {
  margin-top: 2.8rem;
  margin-bottom: 0.85rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: #0d0d0b;
}

.ip__content h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.5rem);
  padding-top: 0;
}

.ip__content hr + h2 {
  margin-top: 0;
}

.ip__content h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.ip__content h4 {
  font-size: 1.1rem;
}

.ip__content p {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.ip__content a {
  color: #0d0d0b;
  text-decoration: none;
  border-bottom: 1px solid #b8a07a;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ip__content a:hover {
  color: #b8a07a;
  border-color: #b8a07a;
}

.ip__content ul,
.ip__content ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

.ip__content li {
  margin-bottom: 0.45rem;
}

.ip__content hr {
  border: 0;
  border-top: 1px solid #d8d4ca;
  margin: 2.25rem 0;
}

.ip__content strong {
  font-weight: 500;
  color: #0d0d0b;
}

.ip__content blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 1px solid #b8a07a;
  color: #5a5952;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
}

.ip__cta {
  margin-top: 3rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #d8d4ca;
  background: #eceae3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.ip__cta-text {
  margin: 0;
  font-size: 0.95rem;
  color: #5a5952;
}

.ip__cta-link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d0d0b;
  text-decoration: none;
  border-bottom: 1px solid #b8a07a;
}

.ip__cta-link:hover {
  color: #b8a07a;
}

.ip--site-cta {
  padding-top: 0;
  padding-bottom: 5.5rem;
  border-bottom: 0;
}

.ip--site-cta .ip__cta {
  position: relative;
  margin-top: 0;
  padding: 2.35rem 2.5rem;
  border: 1px solid #d8d4ca;
  background:
    radial-gradient(circle at top right, rgba(184, 160, 122, 0.1), transparent 30%),
    linear-gradient(135deg, #f3f0e8 0%, #ece6db 100%);
  align-items: center;
  overflow: hidden;
}

.ip--site-cta .ip__cta::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(13, 13, 11, 0.05);
  pointer-events: none;
}

.ip--site-cta .ip__cta-text {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #0d0d0b;
}

.ip--site-cta .ip__cta-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid #b8a07a;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ip--site-cta .ip__cta-link::after {
  content: '\2192';
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.ip--site-cta .ip__cta-link:hover {
  color: #8a6f47;
  border-color: #b8a07a;
  transform: translateY(-1px);
}

.ip--services .ip__content ul {
  background: #eceae3;
  border: 1px solid #d8d4ca;
  padding: 1rem 1rem 0.85rem 2rem;
}

.ip--faq .ip__content h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
}

.ip--faq .ip__content h3 + p,
.ip--faq .ip__content h3 + p + p,
.ip--faq .ip__content h3 + p + ul,
.ip--faq .ip__content h3 + p + p + ul {
  background: #eceae3;
  border: 1px solid #d8d4ca;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.95rem 1rem;
}

.ip--faq .ip__content h3 + p + p {
  border-top: 0;
}

.ip--faq .ip__content h3 + p + ul,
.ip--faq .ip__content h3 + p + p + ul {
  border-top: 0;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
}

.ip--faq .ip__content hr {
  margin: 1.4rem 0;
}

.ip__foot {
  margin-top: 2.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid #d8d4ca;
}

.ip__back {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8880;
  text-decoration: none;
  border-bottom: 1px solid #d8d4ca;
  padding-bottom: 0.25rem;
}

.ip__back:hover {
  color: #0d0d0b;
  border-color: #b8a07a;
}

.ip-post {
  display: grid;
  grid-template-columns: 220px minmax(0, 700px);
  gap: 3rem;
  justify-content: start;
}

.ip-post__meta {
  padding-top: 0.15rem;
}

.ip-post__meta .ip__meta {
  margin: 0;
}

.ip-post__main .ip__head {
  margin-top: 0;
}

.ip--post .ip__head {
  border-bottom: 0;
  padding-bottom: 0;
}

.ip-post__title-rule {
  margin-top: 1.05rem;
  border-top: 1px solid #d8d4ca;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid #d8d4ca;
  background: #f5f3ee;
  color: #5a5952;
  padding: 0.44rem 0.95rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover,
.filter-btn--active {
  background: #0d0d0b;
  border-color: #0d0d0b;
  color: #f5f3ee;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.3rem;
  row-gap: 2.2rem;
  margin-bottom: 0.75rem;
}

.ip--projects {
  padding-bottom: 12rem;
  overflow: hidden;
  margin-bottom: 100px;
  border-bottom: 0;
}

.project-card {
  background: #eceae3;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: none;
  border-color: #d8d4ca;
}

.project-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d8d4ca;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__image--placeholder::after {
  content: 'Photo';
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #8a8880;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card__body {
  padding: 1rem 0.95rem 1.15rem;
}

.project-card__type {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8a07a;
}

.project-card__title {
  margin: 0 0 0.35rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.2;
}

.project-card__title a {
  color: #0d0d0b;
  text-decoration: none;
}

.project-card__title a:hover {
  color: #b8a07a;
}

.project-card__location {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: #8a8880;
}

.project-card__description {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #5a5952;
}

.projects-empty,
.articles-empty {
  margin: 0;
  color: #8a8880;
}

.project-page {
  max-width: 980px;
}

.project-cover {
  margin: 0 0 1.8rem;
  background: #eceae3;
  border: 1px solid #d8d4ca;
}

.project-cover img {
  display: block;
  width: 100%;
  height: clamp(340px, 56vw, 620px);
  object-fit: cover;
}

.project-slider {
  margin-bottom: 2rem;
}

.project-slider__viewport {
  overflow: hidden;
  background: #eceae3;
}

.project-slider__track {
  display: flex;
  transition: transform 0.35s ease;
}

.project-slider__slide {
  min-width: 100%;
  margin: 0;
}

.project-slider__slide img {
  display: block;
  width: 100%;
  height: clamp(320px, 60vw, 560px);
  object-fit: cover;
}

.project-slider__controls {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.project-slider__btn {
  border: 1px solid #d8d4ca;
  background: #f5f3ee;
  color: #5a5952;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
}

.project-slider__btn:hover {
  border-color: #0d0d0b;
  color: #0d0d0b;
}

.project-slider__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.project-slider__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid #8a8880;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.project-slider__dot.is-active {
  background: #0d0d0b;
  border-color: #0d0d0b;
}

.project-page__body {
  max-width: 760px;
}

.project-gallery {
  margin-top: 2.4rem;
}

.project-gallery__title {
  margin: 0 0 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 400;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-gallery__item {
  margin: 0;
  border: 1px solid #d8d4ca;
  padding: 0;
  background: #eceae3;
  cursor: pointer;
}

.project-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-lightbox {
  width: min(96vw, 1200px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.project-lightbox::backdrop {
  background: rgba(13, 13, 11, 0.84);
}

.project-lightbox__frame {
  margin: 0;
  border: 1px solid #d8d4ca;
  background: #eceae3;
}

.project-lightbox__frame img {
  display: block;
  width: 100%;
  height: min(86vh, 900px);
  object-fit: contain;
  background: #11110f;
}

.project-lightbox__close,
.project-lightbox__nav {
  position: absolute;
  border: 1px solid #d8d4ca;
  background: #f5f3ee;
  color: #0d0d0b;
  cursor: pointer;
}

.project-lightbox__close {
  top: -2.4rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  font-size: 1.45rem;
  line-height: 1;
}

.project-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
}

.project-lightbox__nav--prev {
  left: -2.8rem;
}

.project-lightbox__nav--next {
  right: -2.8rem;
}

.article-feature {
  margin-bottom: 1.8rem;
  background: #eceae3;
  border: 1px solid #d8d4ca;
  padding: 1.6rem;
}

.article-feature__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8880;
}

.article-feature__title {
  margin: 0 0 0.55rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 400;
}

.article-feature__title a {
  color: #0d0d0b;
  text-decoration: none;
}

.article-feature__title a:hover {
  color: #b8a07a;
}

.article-feature__meta {
  margin: 0 0 0.75rem;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8880;
}

.article-feature__excerpt {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5a5952;
}

.article-feature__link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d0d0b;
  text-decoration: none;
  border-bottom: 1px solid #b8a07a;
}

.article-list {
  border-top: 1px solid #d8d4ca;
}

.article-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid #d8d4ca;
}

.article-item__date {
  padding-top: 0.28rem;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8880;
}

.article-item__title {
  margin: 0 0 0.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.article-item__title a {
  color: #0d0d0b;
  text-decoration: none;
}

.article-item__title a:hover {
  color: #b8a07a;
}

.article-item__excerpt {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: #5a5952;
  line-height: 1.7;
}

.article-item__link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8880;
  text-decoration: none;
  border-bottom: 1px solid #d8d4ca;
}

.article-item__link:hover {
  color: #0d0d0b;
  border-color: #b8a07a;
}

.contact-note {
  border: 1px solid #d8d4ca;
  background: #eceae3;
  padding: 1rem;
}

.contact-note__label {
  margin: 0 0 0.6rem;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8880;
}

.contact-note__list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #5a5952;
}

.contact-simple {
  max-width: 760px;
}

.contact-simple__body {
  margin-bottom: 2.1rem;
}

.contact-simple__details {
  border-top: 1px solid #d8d4ca;
}

.contact-detail {
  padding: 1rem 0;
  border-bottom: 1px solid #d8d4ca;
}

.contact-detail__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8880;
}

.contact-detail__value {
  font-size: 1.05rem;
  color: #0d0d0b;
  text-decoration: none;
}

a.contact-detail__value:hover {
  color: #b8a07a;
}

.error-page {
  padding: 6rem 3rem;
  text-align: center;
}

.error-page__code {
  margin: 0 0 0.4rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1;
}

.error-page__heading {
  margin: 0 0 0.8rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
}

.error-page p {
  margin: 0.35rem 0;
  color: #5a5952;
}

.error-page a {
  color: #0d0d0b;
  text-decoration: none;
  border-bottom: 1px solid #b8a07a;
}

@media (max-width: 980px) {
  .im {
    padding-top: 6rem;
  }

  .ip {
    padding: 4rem 1.4rem 5rem;
  }

  .ip__head--split {
    grid-template-columns: 1fr;
  }

  .ip__stats {
    max-width: 380px;
  }

  .ip-post {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .ip__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip--site-cta {
    padding-bottom: 4.5rem;
  }

  .ip--site-cta .ip__cta {
    padding: 1.9rem 1.8rem;
  }

  .ip--site-cta .ip__cta::before {
    inset: 0.75rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-lightbox__nav--prev {
    left: 0.4rem;
  }

  .project-lightbox__nav--next {
    right: 0.4rem;
  }

  .article-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .error-page {
    padding: 5rem 1.4rem;
  }
}

@media (max-width: 600px) {
  .ip--site-cta .ip__cta {
    padding: 1.6rem 1.3rem;
  }

  .ip--site-cta .ip__cta-text {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .ip--site-cta .ip__cta-link {
    width: auto;
    justify-content: flex-start;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
  }

  .ip__stats {
    grid-template-columns: 1fr;
  }
}
