@font-face {
  font-family: Manrope;
  src: url('assets/manrope-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}

.ed-sample .ed-header {
  top: clamp(12px, 1.4vw, 34px);
  width: 94%;
  height: 68px;
  margin: 0 auto -68px;
  border: 1px solid #edf1e970;
  border-radius: 7px;
  background: linear-gradient(100deg, #203e46e8, #35535ad9 65%, #203e46e8);
  color: #fffaf0;
  box-shadow: 0 12px 28px #142e352c, inset 0 1px #fffaf025;
  backdrop-filter: blur(18px) saturate(.85);
  font-family: Manrope, Arial, sans-serif;
}

.ed-sample .ed-header::after {
  inset: auto 8px 0;
  background: #c4d5cb;
}

.ed-sample .ed-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  padding: 8px 12px;
}

.ed-sample .ed-header .ed-mark {
  display: grid;
  place-items: center;
  width: 65px;
  height: 49px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #f2ede1;
}

.ed-sample .ed-header .ed-mark img { height: 100%; }

.ed-sample .ed-header nav {
  gap: clamp(20px, 3.6vw, 60px);
}

.ed-sample .ed-header nav a { font-weight: 760; }

.ed-sample .ed-header .ed-button {
  justify-self: end;
  border-color: #f2ede1;
  border-radius: 4px;
  background: #f2ede1;
  color: var(--ed-ink);
  font-weight: 800;
}

.ed-sample .ed-header .ed-button:hover { background: #fffaf0; }
.ed-sample .ed-header :focus-visible { outline-color: #fffaf0; }

.ed-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
}

.ed-header__actions .ed-button { white-space: nowrap; }

.ed-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid #edf1e970;
  border-radius: 4px;
  color: inherit;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.ed-language:hover { background: #fffaf022; }

:lang(zh-CN) body {
  --ed-serif: 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
  font-family: 'Microsoft YaHei UI', 'Noto Sans CJK SC', Arial, sans-serif;
}

.ed-hero-fullbleed:lang(zh-CN) .scene-copy :is(h1, h2) {
  font-size: clamp(39px, 5.5vw, 100px);
  line-height: 1.14;
  letter-spacing: .015em;
}

.ed-sample [id] { scroll-margin-top: 118px; }

.ed-sample .ed-hero-fullbleed {
  --hero-gutter: max(6%, calc((100% - 1530px) / 2));
  --hero-cream: #fffaf0;
  --hero-glass: #203e46e8;
  --hero-glass-line: #e2e7de66;
  min-height: max(728px, 100svh);
  background: #203e46;
  color: var(--hero-cream);
}

.ed-hero-fullbleed::before { content: none; }

.ed-hero-fullbleed .shot {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #203e46;
}

.ed-hero-fullbleed .shot::after {
  z-index: 2;
  background:
    linear-gradient(90deg, #142e35ef 0%, #1c3c45d2 24%, #203d4975 47%, #203d4927 70%, #203d4910 100%),
    linear-gradient(0deg, #152e38df 0%, transparent 32%);
}

.ed-hero-fullbleed .shot img[data-scene-image] {
  opacity: 0;
  object-position: 61% 53%;
  transform: scale(1.035);
  filter: saturate(.82);
  transition: opacity 950ms var(--motion-ease), transform 1800ms var(--motion-ease);
}

.ed-hero-fullbleed .shot img[data-scene-image].is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.ed-hero-fullbleed .story {
  left: var(--hero-gutter);
  top: clamp(128px, 22%, 250px);
  width: min(59%, 900px);
}

.ed-hero-fullbleed .story .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #f1e8d9;
  font-size: clamp(13px, 1.2vw, 16px);
}

.ed-hero-fullbleed .story .eyebrow::before {
  content: '';
  width: 27px;
  height: 2px;
  flex: none;
  background: #c4d5cb;
}

.ed-hero-fullbleed .scene-copy :is(h1, h2) {
  max-width: 14ch;
  margin: 0;
  color: var(--hero-cream);
  font: 400 clamp(63px, 7.7vw, 146px)/.98 var(--ed-serif);
  letter-spacing: -.022em;
  text-shadow: 0 4px 32px #102a3544;
}

.ed-hero-fullbleed .scene-copy p {
  max-width: 39ch;
  margin: clamp(16px, 2vw, 28px) 0 23px;
  color: var(--hero-cream);
}

.ed-hero-fullbleed .story .ed-button,
.ed-hero-fullbleed .story .ed-button--ghost {
  border: 1px solid var(--hero-glass-line);
  background: var(--hero-glass);
  color: var(--hero-cream);
  border-radius: 6px;
}

.ed-hero-fullbleed .story a.ed-button:not(.ed-button--ghost),
.ed-hero-fullbleed .story .ed-button:hover {
  background: #f2ede1;
  color: var(--ed-ink);
}

.ed-hero-fullbleed .story a.ed-button:not(.ed-button--ghost):hover { background: #fffaf0; }
.ed-hero-fullbleed .story :focus-visible,
.ed-hero-fullbleed .scrubber :focus-visible { outline-color: var(--hero-cream); }

.ed-hero-fullbleed .pin {
  width: clamp(34px, 3vw, 45px);
  height: clamp(34px, 3vw, 45px);
  border: 1px solid #fffaf0;
  border-radius: 3px;
  background: #203e4673;
  box-shadow: none;
  rotate: 45deg;
  color: var(--hero-cream);
}

.ed-hero-fullbleed .pin::before { rotate: -45deg; }
.ed-hero-fullbleed .pin:hover,
.ed-hero-fullbleed .pin[aria-pressed=true] { background: #d6dfd5; color: var(--ed-ink); }

.ed-hero-fullbleed:is([data-scene=ceramic], [data-scene=sanitary]) :is(.pin-cabinetry, .pin-furniture) {
  display: none;
}

.ed-hero-fullbleed .detail {
  left: auto;
  bottom: max(13%, 110px);
  right: var(--hero-gutter);
  width: min(340px, 31vw);
  min-height: 87px;
  grid-template-columns: 58px 1fr auto;
  gap: 11px;
  padding: 11px;
  background: var(--hero-glass);
  color: var(--hero-cream);
  border-color: var(--hero-glass-line);
  border-inline-start: 2px solid #c4d5cb;
  border-radius: 7px;
}

.ed-hero-fullbleed .detail p { color: #dce7e3; }

.ed-sample .ed-hero-fullbleed .swatch {
  width: 58px;
  height: 58px;
  background-image: var(--scene-image, url('assets/editorial-hero.webp'));
  background-size: cover;
  background-position: 75% center;
}

.ed-hero-fullbleed .scrubber {
  left: var(--hero-gutter);
  right: auto;
  bottom: max(7%, 72px);
  border-radius: 6px;
  background: var(--hero-glass);
  color: var(--hero-cream);
  border-color: var(--hero-glass-line);
}

.ed-hero-fullbleed .chapters button,
.ed-hero-fullbleed .playback { white-space: nowrap; }
.ed-hero-fullbleed .chapters button[aria-pressed=true],
.ed-hero-fullbleed .chapters button:hover,
.ed-hero-fullbleed .playback:hover { background: #dce7e434; color: var(--hero-cream); }
.ed-hero-fullbleed .chapters button[aria-pressed=true]::after { background: #d6dfd5; }
.ed-hero-fullbleed .playback { border-color: var(--hero-glass-line); }
.ed-hero-fullbleed .credit { right: var(--hero-gutter); bottom: max(7%, 72px); color: #f1e8d9; }

.ed-float-top, .ed-float-contact {
  position: fixed;
  z-index: 9;
  bottom: max(16px, env(safe-area-inset-bottom));
}

.ed-float-top { left: max(16px, env(safe-area-inset-left)); }
.ed-float-contact { right: max(16px, env(safe-area-inset-right)); }

.ed-float-top, .ed-float-contact summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 45px;
  min-height: 45px;
  padding-inline: 12px;
  background: #f8f6f0ed;
  color: var(--ed-ink);
  border: 1px solid #49627467;
  border-radius: 7px;
  box-shadow: 0 6px 24px #19323830;
  backdrop-filter: blur(12px);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ed-float-top:hover, .ed-float-contact summary:hover { background: #dce7e4; }
.ed-float-contact summary::-webkit-details-marker { display: none; }
.ed-float-top svg, .ed-float-contact svg { width: 18px; height: 18px; flex: none; }

.ed-float-contact__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(290px, calc(100vw - 32px));
  padding: 15px;
  background: var(--ed-paper);
  color: var(--ed-ink);
  border: 1px solid #49627467;
  border-radius: 7px;
  box-shadow: 0 9px 30px #19323836;
  font-size: 14px;
}

.ed-float-contact__panel p + a { display: inline-block; margin-top: 7px; font-weight: 700; }

.ed-email-fallback { width: 100%; margin-block: 10px; }
.ed-email-fallback summary { cursor: pointer; margin-bottom: 8px; }
.ed-email-fallback textarea { display: block; width: 100%; margin-top: 6px; }
.ed-email-hint { margin-block: 8px; }

.ed-sample .site-footer { padding-block: 48px 76px; }
.ed-sample .site-footer .site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px clamp(24px, 5vw, 78px);
  align-items: start;
}
.site-footer__brand img {
  width: 74px;
  height: auto;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--ed-paper);
}
.site-footer__brand p { max-width: 36ch; }
.ed-sample .site-footer nav { display: grid; gap: 7px; }
.site-footer a { text-underline-offset: 3px; }
.site-footer__title { font: 800 13px/1.4 Manrope, Arial, sans-serif; margin: 0 0 6px; }
.site-footer__rule {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 1px solid var(--ed-line);
}
.ed-product-details .site-range-link { display: inline-block; margin-top: 5px; }

@media (max-width: 600px) {
  .ed-sample .site-footer .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 851px) and (max-width: 1120px) {
  .ed-hero-fullbleed .chapters button,
  .ed-hero-fullbleed .playback { padding-inline: 12px; }
}

@media (min-width: 851px) and (max-height: 740px) {
  .ed-hero-fullbleed .detail { bottom: 145px; }
  .ed-hero-fullbleed .credit { bottom: 125px; }
}

@media (max-width: 850px) {
  .ed-float-top, .ed-float-contact {
    position: static;
    width: fit-content;
    margin: 12px auto;
  }

  .ed-float-contact {
    margin-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .ed-float-contact__panel {
    position: static;
    margin-top: 10px;
  }

  .ed-sample .ed-header {
    top: 10px;
    height: 101px;
    margin-bottom: -101px;
  }

  .ed-sample .ed-header__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(42px, auto) auto;
    gap: 5px 10px;
    padding: 7px 10px;
  }

  .ed-sample .ed-header .ed-mark { width: 53px; height: 39px; }

  .ed-sample .ed-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 2px 2px;
    border-top: 1px solid;
    border-color: #edf1e94b;
  }

  .ed-sample .ed-hero-fullbleed {
    --hero-gutter: 5%;
    display: flex;
    flex-direction: column;
    min-height: max(770px, 100svh);
    padding-inline: var(--hero-gutter);
  }

  .ed-hero-fullbleed .shot::after {
    background: linear-gradient(180deg, #203e4675, #17343ddc 16%, #1c3c4599 44%, #203d4938 62%, #172f38e8);
  }

  .ed-hero-fullbleed .shot img[data-scene-image] { object-position: 66% 52%; }

  .ed-hero-fullbleed .story {
    position: relative;
    inset: auto;
    width: min(100%, 620px);
    padding-block: clamp(126px, 18svh, 164px) 80px;
  }

  .ed-hero-fullbleed .story .eyebrow { margin-bottom: 14px; }
  .ed-hero-fullbleed .scene-copy :is(h1, h2) { font-size: clamp(39px, 11vw, 82px); }
  .ed-hero-fullbleed .scene-copy p { margin: 14px 0 16px; }

  .ed-hero-fullbleed .pin-cabinetry,
  .ed-hero-fullbleed[data-scene] .pin-cabinetry { left: 67%; top: auto; bottom: 344px; }
  .ed-hero-fullbleed .pin-furniture,
  .ed-hero-fullbleed[data-scene] .pin-furniture { left: 83%; top: auto; bottom: 311px; }

  .ed-hero-fullbleed .detail {
    position: relative;
    inset: auto;
    width: min(100%, 340px);
    margin: auto 0 12px auto;
  }

  .ed-hero-fullbleed .scrubber {
    position: relative;
    inset: auto;
    width: max-content;
    max-width: 100%;
  }

  .ed-hero-fullbleed .credit {
    position: static;
    text-align: right;
    margin: 7px 0 68px;
  }
}

@media (max-width: 520px) {
  .ed-hero-fullbleed .story { padding-bottom: 54px; }

  .ed-hero-fullbleed .scrubber {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .ed-hero-fullbleed .chapters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ed-hero-fullbleed .chapters button {
    padding-inline: 3px;
    font-size: 11px;
    white-space: normal;
  }

  .ed-hero-fullbleed .playback {
    border-left: 0;
    border-top: 1px solid var(--hero-glass-line);
  }

  .ed-hero-fullbleed .detail {
    min-height: 72px;
    grid-template-columns: 45px 1fr auto;
    gap: 8px;
    padding: 9px;
  }

  .ed-sample .ed-hero-fullbleed .swatch { width: 45px; height: 45px; }
  .ed-hero-fullbleed .pin-cabinetry,
  .ed-hero-fullbleed[data-scene] .pin-cabinetry { bottom: 360px; }
  .ed-hero-fullbleed .pin-furniture,
  .ed-hero-fullbleed[data-scene] .pin-furniture { bottom: 324px; }
}

@media (max-width: 360px) {
  .ed-hero-fullbleed .story { padding-bottom: 36px; }
  .ed-hero-fullbleed .credit { margin-bottom: 94px; }
}
