/* Footer */
.final-footer {
  padding: clamp(72px, 10vw, 146px) var(--gutter) calc(clamp(52px, 8vw, 108px) + env(safe-area-inset-bottom, 0));
  background: var(--paper);
  color: var(--ink);
}

.final-footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: clamp(44px, 8vw, 126px);
}

.final-footer-title {
  font-size: var(--type-display);
  font-weight: 600;
  line-height: 1;
}

.final-form-desc {
  max-width: 520px;
  margin: 22px 0 34px;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.55;
}

.final-form {
  max-width: 620px;
}

.final-field {
  margin: 0;
  border-top: 1px solid var(--line);
}

.final-field label,
.v2-modal-form-field label {
  display: block;
  padding-top: 16px;
  color: var(--ink-faint);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-field input,
.final-field textarea,
.final-field select,
.v2-modal-form-field input,
.v2-modal-form-field textarea {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 12px 0 18px;
  font-size: var(--type-body);
  line-height: 1.4;
  outline: 0;
}

.final-field input::placeholder,
.final-field textarea::placeholder,
.v2-modal-form-field input::placeholder,
.v2-modal-form-field textarea::placeholder {
  color: rgba(23, 21, 17, 0.34);
}

.final-field textarea,
.v2-modal-form-field textarea {
  min-height: 118px;
  resize: vertical;
}

.final-field input:focus,
.final-field textarea:focus,
.final-field select:focus,
.v2-modal-form-field input:focus,
.v2-modal-form-field textarea:focus {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.final-field.is-error {
  border-top-color: #a04536;
}

.final-field-error,
.v2-modal-form-error {
  margin: -8px 0 14px;
  color: #a04536;
  font-size: var(--type-small);
  line-height: 1.4;
}

.final-submit {
  margin-top: 28px;
  width: fit-content;
  padding: 15px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.final-submit:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.final-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.final-form-status,
.v2-modal-form-status {
  margin: 14px 0 0;
  font-size: var(--type-small);
  line-height: 1.45;
}

.final-form-status.success,
.v2-modal-form-status.success {
  color: #357247;
}

.final-form-status.error,
.v2-modal-form-status.error {
  color: #a04536;
}

.final-form-legal {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--ink-faint);
  font-size: var(--type-small);
  line-height: 1.55;
}

.final-footer-side {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  align-content: start;
  padding-top: 10px;
}

.final-footer-logo {
  display: inline-flex;
  width: fit-content;
}

.final-footer-logo img {
  display: block;
  width: clamp(128px, 14vw, 190px);
  height: auto;
  filter: brightness(0);
}

.final-contact-block,
.final-address-block {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.final-contact-block .final-footer-title,
.final-address-block .final-footer-title {
  font-family: var(--font-ui);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.final-contact-block p,
.final-address-block p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.65;
}

.final-studio-photo {
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  aspect-ratio: 4 / 3;
}

.final-studio-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.final-contact-block a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.final-footer-big {
  margin: 16px 0 0 !important;
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: var(--type-display) !important;
  font-weight: 600;
  line-height: 1.04 !important;
}

.final-copyright {
  width: min(100%, var(--max));
  margin: clamp(58px, 8vw, 108px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Product modal */
.v2-modal[hidden] {
  display: none !important;
}

.v2-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
}

.v2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 20, 16, 0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.v2-modal-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100svh - 42px);
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 4vw, 58px);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.v2-modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: var(--type-title);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.v2-modal-close:hover {
  transform: scale(1.06);
  opacity: 0.92;
}

.v2-modal-header {
  padding-right: 56px;
}

.v2-modal-title {
  margin-top: 10px;
  font-size: var(--type-display);
  line-height: 0.88;
}

.v2-modal-subtitle {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.55;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 72px);
  padding-top: clamp(30px, 5vw, 62px);
  border-top: 1px solid var(--line);
}

.product-modal-layout--technical {
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1fr);
}

.product-modal-hero,
.product-modal-technical,
.modal-scenario-visual {
  margin: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-modal-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.product-modal-slideshow {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.product-modal-slideshow img,
.modal-scenario-visual img {
  width: min(82%, 620px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.product-modal-slideshow.is-changing img {
  opacity: 0;
  transform: translateY(6px);
}

.product-modal-slideshow-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.product-modal-slideshow-arrow--prev {
  left: clamp(12px, 2vw, 22px);
}

.product-modal-slideshow-arrow--next {
  right: clamp(12px, 2vw, 22px);
}

.product-modal-slideshow-arrow:hover {
  background: var(--ink);
  transform: translateY(-50%) scale(1.06);
}

.product-modal-slideshow-arrow img {
  width: 20px;
  height: 20px;
  max-height: none;
  object-fit: contain;
}

.product-modal-slideshow-arrow:hover img {
  filter: invert(1);
}

.product-modal-slideshow-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 28px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.product-modal-slideshow-controls button {
  width: 34px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: width 0.28s var(--ease-out), background 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.product-modal-slideshow-controls button.is-active {
  width: 52px;
  background: var(--ink);
}

.product-modal-slideshow-controls button:hover {
  transform: translateY(-1px);
}

.product-modal-technical img {
  width: 100%;
  height: auto;
  display: block;
}

.product-modal-info h4,
.product-modal-layout h4,
.modal-inquiry h4 {
  margin: 0 0 18px;
  font-size: var(--type-title);
  line-height: 0.98;
}

.product-modal-info h4:not(:first-child),
.product-modal-layout h4:not(:first-child) {
  margin-top: 38px;
}

.product-modal-info p,
.product-modal-layout p,
.modal-inquiry p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.manual-download-link,
.v2-modal-actions .v2-modal-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.manual-download-link:hover,
.v2-modal-actions .v2-modal-action:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.color-swatches button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.color-swatches button.is-active {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.color-swatches span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.modal-scenario-visual {
  min-height: 330px;
  margin-top: 26px;
}

.product-modal-layout h5 {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1;
}

.modal-inquiry {
  display: block;
  margin-top: clamp(34px, 5vw, 72px);
  padding-top: clamp(30px, 5vw, 62px);
  border-top: 1px solid var(--line);
}

.v2-modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 28px;
}

.v2-modal-form-field {
  border-top: 1px solid var(--line);
}

.v2-modal-form-field.full {
  grid-column: 1 / -1;
}

.v2-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: no-preference) {
  .section-heading,
  .concept-copy,
  .catalog-card,
  .product-feature,
  .scenario-board {
    animation: soft-rise 0.9s var(--ease-out) both;
  }

  @keyframes soft-rise {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 1180px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-feature,
  .product-card-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body.collection12-page {
    --gutter: clamp(18px, 5vw, 34px);
  }

  .hero-shop-nav,
  .hero-shop-nav.is-nav-solid {
    grid-template-columns: 1fr auto;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px);
  }

  .hero-shop-nav .hero-nav-action {
    color: var(--ink);
  }

  body.collection12-page.v2-modal-open .v2-modal {
    padding-top: calc(48px + env(safe-area-inset-top, 0));
  }

  body.collection12-page.v2-modal-open .v2-modal-dialog {
    max-height: calc(100svh - 48px - env(safe-area-inset-top, 0) - clamp(24px, 6vw, 56px));
  }

  .hero-nav-logo {
    width: fit-content;
  }

  .hero-nav-logo img {
    width: 120px;
    filter: brightness(0);
  }

  .v2-hero-nav {
    display: none;
  }

  .v2-hero-media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: 46svh;
    min-height: 320px;
    margin: 0 var(--gutter) 34px;
    order: 3;
    border-radius: var(--radius);
  }

  .v2-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .collection-hero-content {
    width: auto;
    max-width: calc(100vw - (var(--gutter) * 2));
    margin: clamp(92px, 20vw, 126px) var(--gutter) 38px;
    padding-top: 0;
    transform: none !important;
  }

  .collection-hero-content.is-changing h1,
  .collection-hero-content.is-changing > p,
  .v2-hero-media.is-changing img {
    transform: none;
  }

  .collection-hero-content h1 {
    max-width: 760px;
    overflow-wrap: anywhere;
    font-size: var(--type-display);
    line-height: 0.96;
    color: var(--ink);
  }

  .collection-hero-content > p {
    color: var(--ink-soft);
  }

  .hero-link.primary {
    color: var(--ink);
  }

  .hero-link.secondary {
    color: var(--ink-soft);
  }

  .hero-carousel-controls button {
    background: rgba(0, 0, 0, 0.2);
  }

  .hero-carousel-controls button.is-active {
    background: var(--ink);
  }

  .concept-grid,
  .benefit-intro,
  .collection-intro,
  .scenario-board,
  .v2-split,
  .final-footer-grid,
  .product-modal-layout,
  .product-modal-layout--technical {
    grid-template-columns: 1fr;
  }

  .scenario-visual {
    min-height: 420px;
  }

  .v2-split {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .v2-split-image {
    height: clamp(320px, 55vh, 560px);
  }
}

@media (max-width: 680px) {
  .section-heading h2,
  .section-heading.compact h2,
  .final-footer-title {
    font-size: var(--type-heading);
  }

  .hero-shop-nav {
    gap: 16px;
  }

  .hero-nav-action {
    font-size: var(--type-small);
    max-width: 130px;
    line-height: 1.35;
    text-align: right;
  }

  .collection-hero-content h1 {
    font-size: var(--type-heading);
  }

  .collection-hero-actions {
    display: grid;
    gap: 18px;
  }

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

  .benefit-grid article {
    min-height: auto;
  }

  .collection-photo-break {
    height: 100svh;
    min-height: 560px;
  }

  .catalog-grid.v2-cards-row {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 32px var(--gutter) 80px;
    overflow-x: auto;
  }

  .v2-cards-row-inner {
    width: max-content;
    display: flex;
    align-items: flex-start;
  }

  .catalog-card {
    flex: 0 0 min(400px, 85vw);
    height: 500px;
    padding: 32px;
  }

  .catalog-card figure {
    height: 210px;
  }

  .v2-collection-controls {
    display: flex;
  }

  .catalog-card {
    min-height: auto;
  }

  .catalog-card-copy dl div,
  .product-card-copy dl div,
  .tech-spec-grid div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-card-large {
    min-height: auto;
  }

  .product-card-visual {
    min-height: 360px;
  }

  .scenario-visual {
    min-height: 340px;
  }

  .final-field input,
  .final-field textarea,
  .final-field select {
    font-size: var(--type-body);
  }

  .v2-modal {
    padding: 0;
  }

  .v2-modal-dialog {
    max-height: 100svh;
    min-height: 100svh;
    width: 100%;
  }

  .v2-modal-form-grid {
    grid-template-columns: 1fr;
  }
}
