.brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 188px;
  height: auto;
}

.brand-tagline {
  width: 100%;
  color: #514a47;
  font-size: .56rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .24em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-brand {
  width: fit-content;
}

.footer-brand img {
  display: block;
  width: 196px;
  height: auto;
}

@media (max-width: 560px) {
  .brand img {
    width: 138px;
  }

  .brand {
    gap: 2px;
  }

  .brand-tagline {
    width: 100%;
    font-size: .46rem;
    letter-spacing: .18em;
  }
}

.categories {
  padding: 110px 0;
  background: #f4f2f1;
}

.categories-head,
.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 55px;
}

.categories h2,
.blog-preview h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 4.4vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 0;
}

.categories h2 span,
.blog-preview h2 span {
  color: var(--red);
  font-style: italic;
}

.category-list {
  border-top: 1px solid #cfc8c4;
}

.category-list article {
  display: grid;
  grid-template-columns: 60px 1fr 190px;
  gap: 35px;
  padding: 38px 0;
  border-bottom: 1px solid #cfc8c4;
  align-items: start;
}

.category-list article > span,
.post-meta {
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.category-list h3,
.post-grid h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  margin: 0 0 10px;
}

.category-list p {
  max-width: 720px;
  color: #625d5a;
  margin: 0 0 16px;
}

.category-list ul {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

.category-list li::before {
  content: "•";
  color: var(--red);
  margin-right: 8px;
}

.category-list article > a,
.text-link,
.post-grid a,
.articles article > a {
  color: var(--red);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-preview {
  padding: 110px 0;
  background: #fff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.post-grid article {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.post-grid article > p:not(.post-meta) {
  color: #696260;
  font-size: .92rem;
}

.post-grid article > a {
  margin-top: auto;
}

.blog-hero {
  padding: 110px 0 90px;
  background: #171515;
  color: #fff;
}

.blog-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 0;
}

.blog-hero h1 em {
  color: var(--red);
}

.blog-hero > .wrap > p:last-child {
  max-width: 650px;
  color: #c7c0bd;
  font-size: 1.05rem;
  margin-top: 28px;
}

.articles {
  padding: 100px 0;
  display: grid;
  gap: 90px;
}

.articles article {
  max-width: 850px;
  scroll-margin-top: 100px;
}

.articles h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
  margin: 14px 0 28px;
}

.articles h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  margin-top: 32px;
}

.articles p,
.articles li {
  color: #5f5957;
}

.articles article + article {
  border-top: 1px solid var(--line);
  padding-top: 80px;
}

.blog-contact {
  margin-top: 0;
}

@media (max-width: 900px) {
  .categories,
  .blog-preview {
    padding: 80px 0;
  }
  .category-list article {
    grid-template-columns: 42px 1fr;
  }
  .category-list article > a {
    grid-column: 2;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .categories-head,
  .blog-head {
    display: block;
  }
  .blog-head .text-link {
    display: inline-block;
    margin-top: 22px;
  }
  .category-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-list article > a {
    grid-column: 1;
  }
  .category-list ul {
    display: block;
  }
  .blog-hero {
    padding: 75px 0 65px;
  }
  .articles {
    padding: 70px 0;
    gap: 65px;
  }
}

/* Contact form */
.contact-grid {
  align-items: start;
}

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

.contact-intro {
  max-width: 500px;
  margin: 28px 0 18px;
  color: rgba(255, 255, 255, .82);
}

.contact-copy .contact-options {
  margin-top: 28px;
}

.contact-form {
  padding: 42px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(58, 2, 20, .2);
}

.form-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-form h3 {
  margin: 0 0 30px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.08;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field > span {
  color: #5d5653;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8d1ce;
  border-radius: 0;
  background: #f8f6f5;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-field input,
.form-field select {
  min-height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 125px;
  padding: 13px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 26, 76, .1);
}

.form-field textarea::placeholder {
  color: #99908c;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0;
  color: #625b58;
  font-size: .78rem;
  line-height: 1.45;
}

.form-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.form-submit {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  background: var(--red);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.form-submit:hover {
  background: #a9123d;
  transform: translateY(-2px);
}

.form-submit span {
  font-size: 1.3rem;
}

.form-note {
  margin: 13px 0 0;
  color: #817976;
  font-size: .7rem;
  line-height: 1.5;
}

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

/* Form confirmation */
.thanks-page {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 90px 0;
  background: #f4f2f1;
}

.thanks-card {
  max-width: 880px;
  padding: 80px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 20, 23, .1);
}

.thanks-card h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.thanks-card h1 em {
  color: var(--red);
  font-weight: 600;
}

.thanks-card > p:not(.section-kicker) {
  max-width: 610px;
  margin: 28px 0 34px;
  color: #625b58;
  font-size: 1.04rem;
}

.thanks-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn.outline-dark {
  border: 1px solid #bdb5b1;
  color: var(--ink);
}

.btn.outline-dark:hover {
  border-color: var(--ink);
}

@media (max-width: 900px) {
  .contact-form {
    padding: 36px;
  }

  .thanks-page {
    min-height: calc(100vh - 72px);
  }
}

@media (max-width: 560px) {
  .contact-intro {
    margin-top: 22px;
  }

  .contact-form {
    padding: 26px 20px;
  }

  .contact-form h3 {
    margin-bottom: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .thanks-page {
    padding: 55px 0;
  }

  .thanks-card {
    width: calc(100% - 32px);
    padding: 48px 24px;
  }

  .thanks-actions {
    display: grid;
  }
}

/* Portfolio preview and realizacje */
.topbar nav a[aria-current="page"] {
  color: var(--red);
}

.portfolio-preview {
  padding: 120px 0;
  background: #fff;
}

.portfolio-preview-head,
.gallery-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.portfolio-preview h2,
.gallery-head h2,
.portfolio-cta h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 4.4vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.portfolio-preview h2 span,
.gallery-head h2 span,
.portfolio-cta h2 span {
  color: var(--red);
  font-style: italic;
  font-weight: 600;
}

.portfolio-preview-head > div:last-child > p,
.gallery-head > p {
  max-width: 480px;
  margin: 0 0 20px;
  color: #625d5a;
}

.portfolio-mosaic {
  display: grid;
  grid-template-columns: 1.35fr .65fr .65fr;
  grid-template-rows: 270px 270px;
  gap: 14px;
}

.portfolio-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #ded9d6;
}

.portfolio-tile-large {
  grid-row: 1 / 3;
}

.portfolio-tile-wide {
  grid-column: 2 / 4;
}

.portfolio-tile::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(12, 10, 10, .74));
  pointer-events: none;
}

.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.portfolio-tile:hover img {
  transform: scale(1.035);
}

.portfolio-tile > span {
  position: absolute;
  z-index: 1;
  left: 25px;
  right: 25px;
  bottom: 22px;
  display: grid;
  color: #fff;
}

.portfolio-tile small {
  margin-bottom: 3px;
  color: #f18ba8;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.portfolio-tile strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.portfolio-hero {
  padding: 88px 0;
  overflow: hidden;
  background: #171515;
  color: #fff;
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 82px;
  align-items: center;
}

.portfolio-hero-copy h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 5.3vw, 5.2rem);
  line-height: 1.01;
  letter-spacing: -.04em;
}

.portfolio-hero-copy h1 em {
  color: var(--red);
  font-weight: 600;
}

.portfolio-hero-copy > p:not(.section-kicker) {
  max-width: 520px;
  margin: 28px 0 34px;
  color: #c6bfbc;
  font-size: 1rem;
}

.portfolio-hero-image {
  height: 610px;
  position: relative;
}

.portfolio-hero-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 24px;
  right: -24px;
  bottom: -24px;
  left: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}

.portfolio-hero-image img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  object-fit: cover;
}

.portfolio-gallery {
  padding: 120px 0 130px;
  background: #f4f2f1;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 46px;
}

.portfolio-filters button {
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid #cfc8c4;
  background: transparent;
  color: #4f4947;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.portfolio-filters button:focus-visible,
.portfolio-tile:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(201, 26, 76, .35);
  outline-offset: 3px;
}

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

.project-card {
  min-width: 0;
}

.project-card[hidden] {
  display: none;
}

.project-card-wide {
  grid-column: 1 / -1;
}

.project-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ded9d6;
}

.project-card-wide .project-image {
  aspect-ratio: 16 / 8.6;
}

.project-card-tall .project-image {
  aspect-ratio: 4 / 5;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

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

.project-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr);
  gap: 12px 30px;
  padding-top: 22px;
  border-top: 3px solid var(--red);
}

.project-caption p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.project-caption h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.12;
}

.project-caption span {
  color: #68615e;
  font-size: .88rem;
  line-height: 1.55;
}

.portfolio-cta {
  padding: 90px 0;
  background: var(--red);
  color: #fff;
}

.portfolio-cta > .wrap {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
}

.portfolio-cta h2 span {
  color: #211a1c;
}

.btn.light-button {
  flex: 0 0 auto;
  background: #fff;
  color: var(--ink);
}

.btn.light-button:hover {
  background: #211a1c;
  color: #fff;
}

@media (max-width: 900px) {
  .portfolio-preview,
  .portfolio-gallery {
    padding: 80px 0;
  }

  .portfolio-preview-head,
  .gallery-head,
  .portfolio-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .portfolio-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 410px 260px 300px;
  }

  .portfolio-tile-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .portfolio-tile-wide {
    grid-column: 1 / -1;
  }

  .portfolio-hero {
    padding: 76px 0 94px;
  }

  .portfolio-hero-image {
    height: min(620px, 72vw);
  }

  .portfolio-hero-copy > p:not(.section-kicker) {
    max-width: 650px;
  }

  .portfolio-cta > .wrap {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .portfolio-preview,
  .portfolio-gallery {
    padding: 68px 0;
  }

  .portfolio-preview-head,
  .gallery-head {
    margin-bottom: 34px;
  }

  .portfolio-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 390px 320px 320px 260px;
  }

  .portfolio-tile-large,
  .portfolio-tile-wide {
    grid-column: auto;
  }

  .portfolio-tile > span {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .portfolio-hero {
    padding: 60px 0 70px;
  }

  .portfolio-hero-copy h1 {
    font-size: 2.8rem;
  }

  .portfolio-hero-image {
    height: 410px;
  }

  .portfolio-hero-image::before {
    top: 12px;
    right: -12px;
    bottom: -12px;
    left: 12px;
  }

  .portfolio-filters {
    gap: 7px;
    margin-bottom: 36px;
  }

  .portfolio-filters button {
    min-height: 40px;
    padding: 0 12px;
    font-size: .7rem;
  }

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

  .project-card-wide {
    grid-column: auto;
  }

  .project-card-wide .project-image,
  .project-image {
    aspect-ratio: 4 / 3;
  }

  .project-card-tall .project-image {
    aspect-ratio: 4 / 5;
  }

  .project-caption {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 18px;
  }

  .project-caption p {
    grid-column: auto;
  }

  .portfolio-cta {
    padding: 68px 0;
  }
}

/* FAQ */
.faq-section {
  padding: 115px 0;
  background: #f4f2f1;
}

.faq-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 105px;
  align-items: start;
}

.faq-intro h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 4.4vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.faq-intro h2 span {
  color: var(--red);
  font-style: italic;
  font-weight: 600;
}

.faq-intro > p:not(.section-kicker) {
  max-width: 440px;
  margin: 28px 0 24px;
  color: #625d5a;
}

.faq-more {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.faq-list {
  border-top: 1px solid #cbc4c0;
}

.faq-list details {
  border-bottom: 1px solid #cbc4c0;
}

.faq-list summary {
  position: relative;
  padding: 25px 55px 25px 0;
  list-style: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 1px solid #bbb3af;
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: Manrope, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.faq-list summary:focus-visible {
  outline: 3px solid rgba(201, 26, 76, .25);
  outline-offset: 4px;
}

.faq-list details p {
  max-width: 650px;
  margin: -3px 55px 27px 0;
  color: #625d5a;
  font-size: .94rem;
}

@media (max-width: 900px) {
  .faq-section {
    padding: 80px 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-intro > p:not(.section-kicker) {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .faq-section {
    padding: 68px 0;
  }

  .faq-grid {
    gap: 38px;
  }

  .faq-list summary {
    padding: 21px 48px 21px 0;
    font-size: 1.18rem;
  }

  .faq-list summary::after {
    right: 0;
    width: 30px;
    height: 30px;
  }

  .faq-list details p {
    margin: -2px 0 23px;
    font-size: .9rem;
  }
}

/* Expanded navigation: Blog, FAQ and material guide remain separate pages. */
@media (min-width: 1121px) {
  .topbar {
    gap: 24px;
  }

  .topbar nav {
    gap: 16px;
    font-size: .8rem;
  }

  .header-phone {
    padding-left: 20px;
  }
}

@media (max-width: 1120px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
  }

  .topbar nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 25px;
    background: #fff;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 18px 35px rgba(25, 18, 20, .1);
  }

  .topbar nav.open {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid #bbb;
    background: none;
    font: inherit;
    font-size: .8rem;
  }
}

/* Stronger navigation and compact contact details in the header */
.header-contact {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  transition: color .2s ease;
}

.header-contact a:hover {
  color: var(--red);
}

.header-contact svg,
.contact-launcher svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-contact .header-phone {
  display: flex;
  padding-left: 0;
  border-left: 0;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
}

.header-email {
  color: #645d5a;
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.2;
}

@media (min-width: 1121px) {
  .topbar {
    height: 88px;
    gap: 21px;
  }

  .topbar nav {
    gap: 16px;
    font-size: .9rem;
    font-weight: 750;
  }

  .topbar nav a {
    position: relative;
    padding: 31px 0 29px;
    line-height: 1;
    white-space: nowrap;
  }

  .topbar nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 23px;
    left: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
  }

  .topbar nav a:hover::after,
  .topbar nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

@media (max-width: 1120px) {
  .header-contact {
    display: none;
  }

  .topbar nav {
    gap: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  .topbar nav a {
    padding: 11px 0;
    border-bottom: 1px solid #eee9e6;
  }

  .menu-toggle {
    border-color: #8e8581;
    font-size: .86rem;
    font-weight: 750;
  }
}

/* Show the complete corrected RTV installation without a panoramic crop. */
.project-card-full .project-image {
  aspect-ratio: 8 / 5;
}

.project-card-full .project-image img {
  object-fit: cover;
  object-position: center;
}

/* Floating quick-contact form */
.contact-launcher {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 38px rgba(78, 3, 26, .28);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-launcher:hover {
  background: #a9123d;
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(78, 3, 26, .34);
}

.contact-launcher:focus-visible,
.contact-dialog-close:focus-visible {
  outline: 3px solid rgba(201, 26, 76, .34);
  outline-offset: 3px;
}

.contact-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(90vh, 760px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(18, 10, 12, .32);
}

.contact-dialog::backdrop {
  background: rgba(15, 11, 12, .72);
  backdrop-filter: blur(3px);
}

.contact-dialog-inner {
  position: relative;
  padding: 42px;
}

.contact-dialog-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d9d2cf;
  background: #fff;
  color: #3b3533;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog h2 {
  max-width: 430px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -.025em;
}

.contact-dialog-lead {
  max-width: 450px;
  margin: 16px 0 26px;
  color: #6b6461;
  font-size: .92rem;
}

.quick-contact-fields {
  display: grid;
  gap: 15px;
}

.quick-contact-form .form-field textarea {
  min-height: 105px;
}

.quick-contact-form .form-consent {
  margin: 18px 0;
}

@media (max-width: 560px) {
  .contact-launcher {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 0 17px;
    font-size: .75rem;
  }

  .contact-dialog {
    width: calc(100% - 22px);
    max-height: calc(100vh - 22px);
  }

  .contact-dialog-inner {
    padding: 34px 20px 24px;
  }

  .contact-dialog h2 {
    padding-right: 28px;
    font-size: 1.9rem;
  }

  .contact-dialog-lead {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-launcher,
  .topbar nav a::after {
    transition: none;
  }
}
