.interior-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.interior-page main {
  flex: 1;
}

.page-hero {
  padding: clamp(64px, 9vw, 108px) 0 clamp(58px, 8vw, 88px);
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 140, 136, 0.16), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, #f2f8f7 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 880px !important;
  margin-left: max(20px, calc((100% - 1120px) / 2)) !important;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 22px;
  padding: 0;
  font-size: clamp(2.65rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.interior-section {
  padding: clamp(64px, 8vw, 92px) 0;
}

.page-section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.page-section-heading h2 {
  max-width: 700px;
}

.page-section-heading > p:last-child {
  max-width: 680px;
  margin: 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(23, 49, 58, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: rgba(45, 140, 136, 0.48);
  box-shadow: 0 18px 44px rgba(23, 49, 58, 0.11);
  transform: translateY(-3px);
}

.project-card:focus-within {
  border-color: var(--teal);
}

.project-image {
  display: block;
  overflow: hidden;
  background: var(--teal-soft);
}

.project-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 280ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-content {
  min-height: 265px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.project-content h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.project-content h3 a {
  color: var(--ink);
  text-decoration: none;
}

.project-content h3 a:hover {
  color: var(--teal-dark);
}

.project-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.article-list {
  display: grid;
  gap: 22px;
}

.article-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(23, 49, 58, 0.06);
}

.article-card > img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.article-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 4vw, 38px);
}

.article-content h3 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.18;
}

.article-content p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.reference-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 32px;
  padding: clamp(28px, 5vw, 44px);
  background: var(--teal-soft);
  border: 1px solid #cfe4e1;
  border-radius: 20px;
}

.reference-card > div {
  max-width: 690px;
}

.reference-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.reference-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reference-card .button {
  flex: 0 0 auto;
}

.library-group + .library-group {
  margin-top: clamp(52px, 7vw, 76px);
  padding-top: clamp(48px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.library-group-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.library-group-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
}

.library-group-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.library-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(23, 49, 58, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.library-card:hover {
  border-color: rgba(45, 140, 136, 0.48);
  box-shadow: 0 15px 36px rgba(23, 49, 58, 0.09);
  transform: translateY(-2px);
}

.library-card:focus-within {
  border-color: var(--teal);
}

.library-card h3 {
  margin: 0 0 11px;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.22;
}

.library-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.library-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.library-card-footer .text-link {
  flex: 0 0 auto;
  padding-top: 0;
}

.library-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.library-reference {
  padding: clamp(30px, 5vw, 46px);
  background: var(--teal-soft);
  border: 1px solid #cfe4e1;
  border-radius: 22px;
}

.library-reference .library-group-heading {
  margin-bottom: 26px;
}

.library-reference .library-card {
  background: rgba(255, 253, 249, 0.88);
}

.cta-band {
  padding: 46px 0;
  background: var(--teal-soft);
  border-top: 1px solid #d5e8e5;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-inner .eyebrow {
  margin-bottom: 9px;
}

.cta-inner h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.cta-inner .button {
  flex: 0 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: start;
}

.contact-copy {
  padding-top: 12px;
}

.contact-copy h2 {
  margin-bottom: 18px;
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.contact-detail {
  margin-top: 32px;
  padding: 24px;
  background: var(--teal-soft);
  border: 1px solid #d4e8e5;
  border-radius: 16px;
}

.contact-detail h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.contact-detail ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact-detail li + li {
  margin-top: 5px;
}

.contact-alt {
  margin-top: 25px;
  font-size: 0.95rem;
}

.contact-alt a {
  font-weight: 700;
}

.form-card {
  padding: clamp(26px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 28px;
}

.form-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #bfd1ce;
  border-radius: 9px;
  font: inherit;
  line-height: 1.45;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input {
  min-height: 48px;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: #8dacaa;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 140, 136, 0.12);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.form-actions .button {
  flex: 0 0 auto;
  font: inherit;
  cursor: pointer;
}

.form-actions .button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-status.is-success {
  color: #236c52;
}

.form-status.is-error {
  color: #9c342d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .project-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1.38fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 48px 0 54px;
  }

  .page-hero-inner {
    margin: 0 auto !important;
  }

  .page-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.65rem);
  }

  .interior-section {
    padding: 56px 0;
  }

  .project-content {
    min-height: 0;
    padding: 22px;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card > img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .article-content {
    padding: 24px;
  }

  .library-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .library-reference {
    padding: 24px 20px;
  }

  .reference-card,
  .cta-inner,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-card .button,
  .cta-inner .button,
  .form-actions .button {
    width: 100%;
  }

  .form-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .library-card,
  .project-image img {
    transition: none;
  }

  .project-card:hover,
  .library-card:hover,
  .project-card:hover .project-image img {
    transform: none;
  }
}
