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

:root {
  --bg: #d8dddf;
  --bg-soft: #e7ebed;
  --paper: rgba(248, 250, 251, 0.68);
  --ink: #1d2125;
  --ink-soft: #515960;
  --ink-muted: #6d757d;
  --line: rgba(29, 33, 37, 0.12);
  --line-strong: rgba(29, 33, 37, 0.24);
  --dark: #252b31;
  --dark-2: #1d2328;
  --light: #f7f5ef;
  --signal: #f2d13d;
  --signal-deep: #cfaf23;
  --container: 1200px;
  --space: 32px;
  --radius: 24px;
  --font-display: "Instrument Sans", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --shadow: 0 28px 60px rgba(24, 20, 17, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(242, 209, 61, 0.22), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(117, 131, 144, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.1)),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.14) 0.6px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.22) 0.6px, transparent 0.7px);
  background-position: 0 0, 12px 12px;
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container,
.nav-inner,
.hero-inner,
.section,
.footer-inner,
.blueprint-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.container,
.nav-inner,
.hero-inner,
.section,
.footer-inner,
.blueprint-strip-inner {
  padding-left: var(--space);
  padding-right: var(--space);
}

.section {
  padding-top: 9rem;
  padding-bottom: 9rem;
}

.section-tag,
.hero-kicker,
.spec-label,
.strip-index,
.measure-line,
.blueprint-corner,
.process-index,
.review-mark,
.contact-meta-card span,
.contact-form span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-tag {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.section-title,
.hero-title,
.hero-spec strong,
.process-card h3,
.blueprint-card h3,
.review-card strong,
.contact-meta-card strong {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 11ch;
  text-wrap: balance;
}

.section-title em,
.hero-title em {
  color: var(--signal);
  font-style: italic;
}

.section-intro,
.hero-body,
.hero-spec p,
.blueprint-card p,
.process-card p,
.review-card p,
.faq-item p,
.contact-meta-card p,
.contact-meta-card a,
.form-note,
.footer-brand p,
.footer-copy {
  color: var(--ink-soft);
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

.contact-options {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--signal);
  color: var(--dark);
  border-color: var(--signal);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 700;
}

.btn-outline-light {
  border-color: rgba(247, 245, 239, 0.3);
  color: var(--light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.btn-outline-light:hover {
  background: rgba(247, 245, 239, 0.05);
  border-color: rgba(247, 245, 239, 0.6);
}

.topbar {
  background: rgba(240, 244, 246, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(216, 221, 223, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-image {
  height: 204px;
  width: auto;
  margin-top: -20px;
  margin-bottom: -50px;
}

.footer-logo-image {
  height: 136px;
  width: auto;
}

.nav-links,
.footer-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
}

.nav-links a,
.footer-links a {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ink-soft);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--signal-deep);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 0.5rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(242, 209, 61, 0.08), transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(124, 137, 149, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(236, 241, 244, 0.72), rgba(216, 221, 223, 0.18));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 33, 37, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(29, 33, 37, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 20% 12%, rgba(242, 209, 61, 0.06), transparent 18%);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: end;
  gap: 3.5rem;
  min-height: 52rem;
  padding-top: 2rem;
  padding-bottom: 7rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
}

.hero-kicker::before {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: var(--signal-deep);
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  max-width: 6.2ch;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-title span {
  display: block;
  color: var(--dark);
}

.hero-body {
  max-width: 34rem;
  margin-top: 1.8rem;
  font-size: 1.1rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-panel {
  position: relative;
  min-width: 0;
}

.hero-image-frame,
.gallery-card,
.contact-form,
.contact-meta-card,
.review-card,
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-image-frame {
  position: relative;
  height: 42rem;
  min-height: 42rem;
  overflow: hidden;
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
}

.hero-image {
  width: 100%;
  height: calc(100% + 48px);
  object-fit: cover;
  transform: translateY(var(--parallax-offset, 0px)) scale(1.03);
  will-change: transform;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
}

.hero-specs-band {
  max-width: var(--container);
  margin: 0 auto;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  padding-left: var(--space);
  padding-right: var(--space);
}

.hero-spec {
  padding: 1.35rem;
  border-right: 1px solid rgba(242, 209, 61, 0.18);
  color: var(--light);
}

.hero-spec:last-child {
  border-right: 0;
}

.spec-label {
  color: rgba(242, 209, 61, 0.72);
}

.hero-spec strong {
  display: block;
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--signal);
}

.hero-spec p {
  margin-top: 0.8rem;
  color: rgba(247, 245, 239, 0.72);
}

.blueprint-strip {
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  border-top: 1px solid rgba(242, 209, 61, 0.12);
  border-bottom: 1px solid rgba(242, 209, 61, 0.12);
}

.blueprint-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-cell {
  min-height: 9rem;
  padding: 2rem var(--space);
  border-right: 1px solid rgba(242, 209, 61, 0.16);
}

.strip-cell:last-child {
  border-right: 0;
}

.strip-index {
  color: var(--signal);
}

.strip-cell p {
  max-width: 18rem;
  margin-top: 0.85rem;
  color: rgba(247, 245, 239, 0.84);
  font-size: 1.05rem;
}

.section-heading {
  max-width: var(--container);
  margin: 0 auto 3.5rem;
  padding-left: var(--space);
  padding-right: var(--space);
}

.section-heading-wide .section-title {
  max-width: 12.5ch;
}

.gallery-section {
  padding-top: 9rem;
  padding-bottom: 9rem;
  overflow: hidden;
}

.gallery-rail {
  max-width: calc(var(--container) + 180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: auto;
  gap: 1.2rem;
  padding: 0 var(--space);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.gallery-card figcaption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(36, 42, 48, 0.56), rgba(24, 29, 34, 0.82));
  backdrop-filter: blur(10px);
  color: var(--light);
}

.gallery-card figcaption strong {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.gallery-card figcaption p {
  margin-top: 0.5rem;
  color: rgba(247, 245, 239, 0.78);
}

.measure-line {
  color: var(--signal);
}

.gallery-image {
  width: 100%;
  height: calc(100% + 42px);
  object-fit: cover;
  transform: translateY(var(--parallax-offset, 0px)) scale(1.04);
  will-change: transform;
}

.gallery-card-large {
  grid-row: 1 / span 2;
  min-height: 47rem;
}

.gallery-card-offset {
  margin-top: 3.5rem;
  min-height: 20rem;
}

.gallery-card-tall {
  min-height: 28rem;
}

.gallery-card-wide {
  grid-column: 1 / span 2;
  min-height: 22rem;
  margin-left: 6%;
  margin-right: 0;
}

.dark-block {
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: var(--light);
}

.dark-block .section-tag {
  color: rgba(242, 209, 61, 0.82);
}

.dark-block .section-title,
.dark-block .section-intro,
.dark-block .section-subtitle {
  color: var(--light);
}

.dark-block .review-card,
.dark-block .contact-meta-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(242, 209, 61, 0.14);
  box-shadow: none;
}

.dark-block .review-mark,
.dark-block .contact-meta-card span {
  color: var(--signal);
}

.dark-block .review-card p,
.dark-block .review-card span:last-child,
.dark-block .contact-meta-card p,
.dark-block .contact-meta-card a {
  color: rgba(247, 245, 239, 0.78);
}

.dark-block .review-card strong {
  color: var(--light);
}

.dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(242, 209, 61, 0.16);
}

.blueprint-card {
  position: relative;
  min-height: 16rem;
  padding: 2rem;
  border-right: 1px solid rgba(242, 209, 61, 0.16);
  border-bottom: 1px solid rgba(242, 209, 61, 0.16);
}

.blueprint-card:nth-child(2n) {
  border-right: 0;
}

.blueprint-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.blueprint-corner {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--signal);
}

.blueprint-card h3 {
  font-size: 1.55rem;
  color: var(--light);
}

.blueprint-card p {
  margin-top: 0.8rem;
  color: rgba(247, 245, 239, 0.72);
  line-height: 1.65;
}

.process-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(242, 209, 61, 0.12), transparent 18%),
    radial-gradient(circle at 88% 80%, rgba(117, 131, 144, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
    var(--bg-soft);
}

.process-shell {
  position: relative;
}

.process-shell::before {
  content: "";
  position: absolute;
  inset: 9rem var(--space) 9rem var(--space);
  border: 1px solid var(--line);
  pointer-events: none;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.process-card {
  position: relative;
  min-height: 17rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(244, 247, 249, 0.22)),
    rgba(242, 246, 248, 0.58);
}

.process-index {
  color: var(--signal-deep);
}

.process-card h3 {
  margin-top: 2.3rem;
  font-size: 1.65rem;
  color: var(--dark);
}

.process-card p {
  margin-top: 0.9rem;
  line-height: 1.65;
}

.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.reviews-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 209, 61, 0.08), transparent 18%),
    transparent;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-card {
  padding: 1.6rem;
}

.review-mark {
  color: var(--signal-deep);
}

.review-card p {
  margin-top: 2rem;
  font-size: 1.04rem;
  line-height: 1.8;
}

.review-card strong {
  display: block;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--dark);
}

.review-card span:last-child {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--ink-muted);
}

/* Realizacje Section */
.realizacje-section {
  padding: calc(var(--space) * 1.5) 0 0 0;
}

.realizacje-section .section {
  padding-bottom: 4rem;
}

/* Tab cards */
.realizacje-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  /* room for the active border */
}

.realizacje-tabs::-webkit-scrollbar {
  display: none;
}

.tab-card {
  flex-shrink: 0;
  position: relative;
  width: 190px;
  height: 120px;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: 3px solid transparent;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.tab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(29, 35, 40, 0.45) 0%, rgba(18, 22, 26, 0.82) 100%);
  transition: background 0.22s ease;
}

.tab-card:hover {
  transform: scale(1.03);
}

.tab-card:hover::before {
  background: linear-gradient(160deg, rgba(29, 35, 40, 0.3) 0%, rgba(18, 22, 26, 0.7) 100%);
}

.tab-card.is-active {
  border-bottom-color: var(--signal);
}

.tab-card.is-active::before {
  background: linear-gradient(160deg, rgba(29, 35, 40, 0.28) 0%, rgba(18, 22, 26, 0.65) 100%);
}

.tab-card__label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--light);
  line-height: 1.25;
}

/* "Wszystkie" tab - no photo, dark block with yellow dot */
.tab-card--all {
  background-image: none;
  background: linear-gradient(160deg, var(--dark), var(--dark-2));
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0 0.9rem;
  flex-direction: row;
}

.tab-card--all .tab-card__label {
  padding: 0;
}

.tab-card__dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(242, 209, 61, 0.5);
}

/* Gallery masonry grid */
.gallery-masonry {
  columns: 4 220px;
  column-gap: 16px;
  transition: opacity 0.3s ease;
}

.gallery-masonry.is-filtering {
  opacity: 0.35;
  pointer-events: none;
}

.gallery-masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
  display: block;
  cursor: pointer;
  margin-bottom: 16px;
  break-inside: avoid;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-masonry-item.is-hidden {
  display: none;
}

.gallery-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-masonry-item:hover img {
  transform: scale(1.02);
}

@media (max-width: 820px) {
  .realizacje-tabs {
    gap: 10px;
  }

  .tab-card {
    width: 150px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    columns: 3 150px;
    column-gap: 12px;
  }

  .gallery-masonry-item {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    columns: 2;
  }

  .tab-card {
    width: 130px;
    height: 90px;
  }
}

/* MARQUEE SECTION */
.faq-wrap .section {
  padding-top: 4rem;
}

.marquee-section {
  background-color: rgba(29, 35, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.marquee-container {
  display: flex;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.marquee-content {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-soft);
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content span:not(.marquee-dot) {
  padding: 0 0.5rem;
}

.marquee-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--signal);
  border-radius: 50%;
  margin: 0 1.5rem;
  box-shadow: 0 0 6px rgba(242, 209, 61, 0.4);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.faq-wrap,
.contact-wrap,
.footer {
  border-top: 1px solid var(--line);
}

.contact-wrap.dark-block {
  background: linear-gradient(180deg, rgba(37, 43, 49, 0.8), rgba(29, 35, 40, 0.9)), url('images/contact.jpg') center/cover no-repeat;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.3rem 1.4rem;
}

.faq-item summary {
  position: relative;
  padding-right: 2rem;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.04rem;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: -0.05rem;
  right: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.9rem;
}

.contact-meta {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-meta-card {
  padding: 1.3rem 1.4rem;
}

.contact-meta-card span {
  color: var(--signal-deep);
}

.contact-meta-card a,
.contact-meta-card p {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 1.02rem;
}

.contact-form {
  padding: 1.6rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--signal-deep);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid var(--line-strong);
  background: rgba(248, 250, 251, 0.84);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(242, 209, 61, 0.55);
  border-color: rgba(242, 209, 61, 0.55);
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.footer-inner {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-copy,
.footer-links a,
.footer-brand p {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

@media (max-width: 1100px) {
  :root {
    --space: 22px;
  }

  .hero-inner,
  .dark-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-width: 0;
  }

  .hero-specs {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-rail,
  .process-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-rail {
    grid-template-rows: 22rem 18rem 18rem;
  }

  .gallery-card-wide {
    grid-column: 1 / span 2;
    margin-left: 0;
    margin-right: 0;
  }

  .gallery-card-tall,
  .gallery-card-offset {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
  }

  .process-card:last-child {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .footer-inner,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-image {
    height: 102px;
    margin-top: -10px;
    margin-bottom: -25px;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .nav-inner nav {
    width: 100%;
    order: 3;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
  }

  .section-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .hero-image-frame {
    height: 24rem;
    min-height: 24rem;
  }

  .hero-specs,
  .blueprint-strip-inner,
  .process-grid,
  .reviews-grid,
  .gallery-rail,
  .blueprint-grid {
    grid-template-columns: 1fr;
  }

  .hero-specs-band {
    margin-top: 0;
  }

  .gallery-rail {
    grid-template-rows: none;
  }

  .gallery-card-large,
  .gallery-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-card {
    min-height: 20rem;
  }

  .hero-spec {
    border-right: 0;
    border-bottom: 1px solid rgba(242, 209, 61, 0.18);
  }

  .hero-spec:last-child {
    border-bottom: 0;
  }

  .strip-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(242, 209, 61, 0.16);
  }

  .strip-cell:last-child {
    border-bottom: 0;
  }

  .blueprint-card,
  .blueprint-card:nth-child(2n) {
    border-right: 0;
  }

  .blueprint-card:not(:last-child) {
    border-bottom: 1px solid rgba(242, 209, 61, 0.16);
  }

  .process-shell::before {
    inset: 6.5rem var(--space);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-title {
    max-width: 100%;
  }

  .gallery-card figcaption strong {
    font-size: 1.55rem;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Lightbox ─────────────────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

#lightbox.is-open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lb-fade-in 0.25s ease forwards;
}

@keyframes lb-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4rem 5rem;
  animation: lb-scale-in 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes lb-scale-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  margin: 0;
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.lb-caption {
  margin-top: 1rem;
  color: rgba(247, 245, 239, 0.65);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.lb-close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(30, 34, 38, 0.72);
  color: var(--light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lb-close:hover {
  background: rgba(242, 209, 61, 0.2);
  border-color: rgba(242, 209, 61, 0.55);
}

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(30, 34, 38, 0.72);
  color: var(--light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lb-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
}

.lb-prev {
  left: 1.2rem;
}

.lb-next {
  right: 1.2rem;
}

.lb-arrow:hover {
  background: rgba(242, 209, 61, 0.2);
  border-color: rgba(242, 209, 61, 0.55);
  transform: translateY(-50%) scale(1.08);
}

.lb-counter {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247, 245, 239, 0.5);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

@media (max-width: 600px) {
  .lb-content {
    padding: 3.5rem 0.5rem;
  }

  .lb-arrow {
    width: 2.4rem;
    height: 2.4rem;
  }

  .lb-prev {
    left: 0.5rem;
  }

  .lb-next {
    right: 0.5rem;
  }
}