body {
  --photo-radius: 18px;
  --hero-radius: 25px;
  --thumb-radius: 9px;
  --ui-face: CatalogueLahzeh, Vazir, Tahoma, sans-serif;
  --title-face: CatalogueLahzeh, Estedad, Vazir, sans-serif;
  font-family: var(--ui-face);
  isolation: isolate;
}
h1,
h2,
h3,
h4,
.brand b,
[data-style="swatch"] :is(h1, h2, .brand b) {
  font-family: var(--title-face);
}
.swatch-field legend,
pre,
.ref {
  font-family: var(--ui-face);
}
#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.085;
  z-index: -1;
  pointer-events: none;
  filter: grayscale(0.85);
}
#head {
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
#head .headrow {
  pointer-events: auto;
  width: min(94%, 1320px);
  min-height: 82px;
  max-width: 1320px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transform: translateY(12px);
  background-color: color-mix(in srgb, var(--paper) 90%, var(--accent));
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 18px #233e2e17;
  padding-inline: clamp(14px, 2vw, 28px);
  transition:
    max-width 0.6s var(--ease-out),
    padding 0.6s var(--ease-out),
    min-height 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    border-radius 0.6s var(--ease-out),
    background-color 0.45s,
    box-shadow 0.45s;
}
@media (hover: hover) {
  #head .headrow:hover {
    background-color: color-mix(in srgb, var(--paper) 84%, var(--accent));
  }
}
@media (max-width: 360px) {
  #head .brand b {
    font-size: 23px;
  }
  #head .brand {
    gap: 5px;
  }
  #head .headtools {
    gap: 0;
  }
  #head #menu {
    margin-inline-start: 0;
  }
}
#head.compact {
  background: transparent;
  box-shadow: none;
}
#head.compact .headrow {
  max-width: 860px;
  min-height: 48px;
  transform: translateY(8px);
  padding-inline: 9px;
  gap: 10px;
  box-shadow: 0 7px 24px #233e2e1b;
}
.brand-mark {
  display: inline-flex;
  position: relative;
  flex: none;
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  #head .brand {
    --shine: none;
  }
  #head .brand:focus-visible {
    --shine: brand-light-pass;
  }
  @media (hover: hover) {
    #head .brand:hover {
      --shine: brand-light-pass;
    }
  }

  #head .brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 7px;
    pointer-events: none;
    background-image: linear-gradient(
      105deg,
      transparent 40%,
      #fff6 47%,
      #fff9 50%,
      #fff4 54%,
      transparent 60%
    );
    background-size: 260% 100%;
    background-repeat: no-repeat;
    background-position: 0% center;
    animation: var(--shine) 0.37s linear both;
  }
  #head .brand:is(:hover, :focus-visible) img {
    transform: none;
  }
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    #head .brand b {
      padding-block: 0.2em;
      margin-block: -0.2em;
      color: var(--fg);
      animation: var(--shine) 0.86s ease-out 0.26s both;
    }
    #head .brand b,
    .covercopy > :is(h1, p):hover {
      background-image: linear-gradient(
        105deg,
        currentColor 39%,
        #3f5e4e 47%,
        #527261 50%,
        #3f5e4e 53%,
        currentColor 61%
      );
      background-size: 260% 100%;
      background-repeat: no-repeat;
      background-position: 0% center;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    @media (hover: hover) {
      .covercopy > :is(h1, p):hover {
        animation: brand-light-pass 1.05s ease-in-out both;
      }
    }
  }
  @keyframes brand-light-pass {
    from {
      background-position: 0% center;
    }
    to {
      background-position: 100% center;
    }
  }
}
#head.compact .brand {
  gap: 5px;
}
#head.compact .brand b {
  font-size: 23px;
}
#head.compact .brand img {
  width: 26px;
  height: 26px;
}
#head.compact .topnav {
  font-size: 13px;
  gap: 15px;
}
#head.compact .topnav a {
  padding-block: 8px;
}
#head.compact .headtools {
  gap: 1px;
}
#head.compact .bag {
  min-height: 36px;
  padding-inline: 8px;
  gap: 5px;
}
#head.compact .account-link {
  padding-inline: 6px;
}
@media (max-width: 950px) {
  #head.compact .headrow {
    max-width: min(90%, 460px);
  }
}
.headtools {
  gap: 3px;
}
.headrow {
  gap: 16px;
}
.account-link,
.wheel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.account-link {
  padding: 7px 10px;
  min-height: 42px;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
  border-radius: 16px;
}
.account-link:hover {
  background: var(--soft);
}
body:not(.homepage) .menu-glyph,
body:not(.homepage) #menu[aria-expanded="true"] .menu-glyph {
  transform: none;
}
body:not(.homepage) .nav-panel {
  transform: translateY(-6px);
}
body:not(.homepage) .nav-panel.open {
  transform: none;
}
body:not(.homepage) .nav-panel.open a {
  animation: none;
}
.homepage .nav-panel.wheel {
  --diameter: min(334px, calc(100vw - 56px), calc(100dvh - 104px));
  --radius: calc(var(--diameter) * 0.33);
  width: var(--diameter);
  height: var(--diameter);
  padding: 0;
  display: block;
  border-radius: 50%;
  background: var(--paper);
  inset-inline-end: 5px;
  overflow: visible;
  transform-origin: center;
  transform: scale(0.66) rotate(-55deg);
  transition:
    transform 0.48s var(--ease-out),
    opacity 0.2s,
    visibility 0s 0.48s;
}
.homepage .nav-panel.wheel.open {
  transform: scale(1) rotate(0deg);
  transition-delay: 0s;
}
.wheel::before {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px dashed var(--border);
  border-radius: 50%;
  pointer-events: none;
}
.homepage .wheel a {
  position: absolute;
  left: 50%;
  top: 50%;
  min-height: 43px;
  min-width: 68px;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(var(--angle))
    translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle)));
  font-size: 12px;
  background: var(--paper);
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 17px;
  animation: none;
}
.wheel .wheel-label {
  flex-direction: column;
  gap: 0;
}
.homepage .wheel a:is(:hover, :focus-visible) {
  background: var(--accent);
  color: white;
}
.wheel-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.wheel-center img {
  width: 45px;
  height: 45px;
  border-radius: 13px;
}
#quick-contact {
  position: fixed;
  left: 14px;
  bottom: clamp(18px, 5vh, 48px);
  z-index: 10;
}
#quick-contact summary {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  min-height: 46px;
  padding: 8px 15px;
  background: var(--accent);
  color: white;
  box-shadow: 0 5px 22px #14291f35;
  font-weight: 650;
  font-size: 13px;
}
#quick-contact summary:focus-visible,
#quick-contact summary:hover {
  transform: translateY(-2px);
}
#quick-contact summary::-webkit-details-marker {
  display: none;
}
#quick-contact details[open] > summary {
  background-color: #8b5037;
  box-shadow: 0 5px 22px #703d262e;
}
#quick-contact nav {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 0;
  display: grid;
  min-width: 184px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 28px #16392325;
}
#quick-contact details:not([open]) nav {
  display: none;
}
#quick-contact nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 5px 12px;
  border-radius: 12px;
  color: var(--fg);
  font-weight: 600;
}
#quick-contact nav svg {
  color: var(--accent);
}
#quick-contact nav a:is(:hover, :focus-visible) {
  background: var(--soft);
  color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  #quick-contact summary {
    transition:
      background-color 0.36s ease,
      box-shadow 0.36s ease,
      transform 0.24s ease;
  }
  #quick-contact details[open] nav {
    transform-origin: left bottom;
    animation: contact-appear 0.4s var(--ease-out) backwards;
  }
  #quick-contact details[open] nav a {
    animation: contact-option-in 0.38s var(--ease-out) 0.04s backwards;
  }
  #quick-contact details[open] nav a:nth-child(2) {
    animation-delay: 0.1s;
  }
  #quick-contact details[open] nav a:nth-child(3) {
    animation-delay: 0.16s;
  }
  @keyframes contact-appear {
    from {
      opacity: 0;
      transform: translateY(9px) scale(0.96);
    }
  }
  @keyframes contact-option-in {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
  }
}
.pimage,
[data-style="swatch"] .pimage {
  background: var(--soft);
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--photo-radius);
}
.pimage > a,
.pimage > a img,
.catgrid figure,
.catgrid img,
.gallery figure,
.gallery figure > img,
.feature-shot,
.feature-shot img {
  border-radius: var(--photo-radius);
}
.coverart,
.about figure,
.swatchcover figure,
.catcover figure,
.coverart > img,
.coverart video,
.about figure img,
.swatchcover figure img,
.catcover figure img,
.lightbox {
  border-radius: var(--hero-radius);
}
.cover,
.swatchcover,
.catcover {
  border-radius: 30px;
}
.thumbs img,
.mediaThumb {
  border-radius: var(--thumb-radius);
}
.pimage .sample,
.gallery figure .sample,
.about figure .sample,
.catcover figure .sample,
.catgrid figure .sample,
.swatchcover figure .sample {
  top: 10px;
  right: 10px;
  bottom: auto;
  transform: none;
}
.pimage .fav {
  left: 9px;
  top: 8px;
}
.gallery .zoom {
  bottom: 12px;
  left: 12px;
}
#site-nav:not(.wheel) a .wheel-label {
  white-space: nowrap;
}
main {
  overflow-x: clip;
}
.story {
  max-width: 1100px;
  padding-bottom: 56px;
}
.story-section {
  padding: clamp(34px, 5.5vw, 78px) 0;
  border-top: 1px solid var(--border);
}
.story-section > header {
  text-align: center;
  margin: 0 auto 30px;
}
.story-section > header .over {
  justify-content: center;
}
.story-section h2 {
  font-size: clamp(26px, 3.1vw, 44px);
}
.story-section p {
  color: var(--muted);
}
#fabric-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 4vw, 62px);
  padding-block: clamp(34px, 5.5vw, 78px);
  border-top: 1px solid var(--border);
}
.fabric-portrait {
  --entry-x: clamp(60px, 11vw, 145px);
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: 18px;
  border: 0;
  padding: 0;
}
.fabric-portrait:nth-child(even) {
  --entry-x: clamp(-145px, -11vw, -60px);
}
.fabric-portrait:only-child {
  grid-column: 1/-1;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.fabric-portrait > header {
  align-self: end;
  margin: 0;
}
.fabric-portrait > header h2 {
  font-size: clamp(21px, 2.3vw, 34px);
}
.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.56fr);
  grid-template-areas: "photo specs";
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}
.fabric-portrait:nth-child(even) .feature-layout {
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1fr);
  grid-template-areas: "specs photo";
}
.feature-shot {
  grid-area: photo;
}
.portrait-specs {
  grid-area: specs;
  display: grid;
  gap: 12px;
  text-align: center;
}
.spec-note h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.feature-shot {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: block;
}
.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-section > .textlink {
  justify-content: center;
  margin: 16px auto 0;
}
.reveal {
  transition:
    opacity 0.58s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal.waiting:not(:focus-within) {
  opacity: 0;
  transform: translateY(16px);
}
.detailcopy.waiting {
  transform: translateX(26px);
}
.gallery.waiting {
  transform: translateX(-26px);
}
.chart-section {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
  align-items: center;
}
.chart-section > header {
  text-align: right;
  margin: 0;
}
.chart-section .over {
  justify-content: flex-start !important;
}
.category-chart {
  display: grid;
  gap: 15px;
  direction: rtl;
}
.category-chart > div {
  display: grid;
  grid-template-columns: 85px 1fr 58px;
  align-items: center;
  font-size: 14px;
  gap: 10px;
}
.category-chart i {
  height: 11px;
  border-radius: 9px;
  background: var(--soft);
  overflow: hidden;
}
.category-chart em {
  height: 100%;
  width: var(--share);
  display: block;
  background: var(--accent);
  border-radius: 9px;
}
.step-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.step-track > a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
}
.step-track > a:hover {
  border-color: var(--accent);
}
.step-track b {
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}
.step-track h3 {
  margin-bottom: 5px;
}
#buying-steps {
  scroll-margin-top: 80px;
}
.guide-stage {
  --wash: #d9e7dc;
  --pose: -3deg;
  display: grid;
  justify-items: center;
  align-items: start;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  height: 260px;
  padding: 18px 8px 0;
  background: radial-gradient(ellipse at 22% 8%, #ffffffa6, transparent 70%), var(--wash);
}
.step-track > a > p {
  margin-bottom: 16px;
}
.step-track > a:nth-child(2) .guide-stage {
  --wash: #ebe0cd;
  --pose: 0deg;
}
.step-track > a:nth-child(3) .guide-stage {
  --wash: #d9e5e8;
  --pose: 3deg;
}
.guide-device {
  display: block;
  position: relative;
  width: min(88%, 220px);
  overflow: hidden;
  padding-top: 15px;
  background: #f8f7f1;
  border: 4px solid #293a34;
  border-radius: 25px;
  box-shadow: 0 0 0 1px #acb8ae, 2px 9px 16px #183c2d29;
  transform: rotate(var(--pose));
}
.guide-device::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 31px;
  height: 5px;
  border-radius: 8px;
  background: #25372e;
  transform: translateX(-50%);
}
.guide-device img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .guide-device { transition: transform .45s var(--ease-out); }
  .step-track a:is(:hover,:focus-visible) .guide-device { transform: translateY(-4px) rotate(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-stage.reveal:not(.waiting) .guide-device,
  .support-art.reveal:not(.waiting) .telegram-seal {
    animation: phone-arrival .8s var(--ease-out) var(--arrival-delay, 0s) backwards;
  }
  .support-art.reveal:not(.waiting) .chat-phone {
    animation:
      phone-arrival .8s var(--ease-out) backwards,
      support-phone-float 4.8s ease-in-out .8s infinite;
  }
  @keyframes support-phone-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -4px; }
  }
  .support-art {
    --arrival-x: -24px;
  }
  .telegram-seal {
    --arrival-delay: .16s;
    --arrival-x: -10px;
  }
  @media (min-width: 760px) {
    .step-track > a:nth-child(2) { --arrival-delay: .1s; }
    .step-track > a:nth-child(3) { --arrival-delay: .2s; }
  }
  @keyframes phone-arrival {
    from {
      opacity: 0;
      translate: var(--arrival-x, 0px) 38px;
      scale: .96;
    }
    to {
      opacity: 1;
      translate: 0 0;
      scale: 1;
    }
  }
}
#buyer-questions {
  scroll-margin-top: 80px;
}
@media (prefers-reduced-motion: no-preference) {
  @supports selector(details::details-content) {
    .qa::details-content {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      overflow: hidden;
      transition:
        grid-template-rows 0.36s var(--ease-out),
        opacity 0.3s ease,
        content-visibility 0.36s allow-discrete;
    }
    .qa[open]::details-content {
      grid-template-rows: 1fr;
      opacity: 1;
    }
    .qa > p {
      min-height: 0;
      overflow: hidden;
      margin-block: 0;
      transition: margin-block 0.36s var(--ease-out);
    }
    .qa[open] > p {
      margin-block: 10px;
    }
  }
  @supports not selector(details::details-content) {
    .qa[open] > p {
      animation: faq-answer-in 0.32s ease-out;
    }
    @keyframes faq-answer-in {
      from {
        opacity: 0;
        transform: translateY(-4px);
      }
    }
  }
}
.story-section .qa {
  max-width: 790px;
  margin: auto;
}
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.specs > div {
  display: block;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
}
.specs dt {
  font-size: 12px;
}
.account-shell {
  max-width: 1000px;
}
.account-gate {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: 1px solid var(--border);
  border-radius: 23px;
  overflow: hidden;
  background: var(--paper);
}
.account-photo {
  position: relative;
  min-height: 100%;
}
.account-photo img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}
.account-form {
  padding: clamp(23px, 4vw, 52px);
}
.account-form .pagetitle {
  margin-bottom: 22px;
}
.account-form .pagetitle h1,
.account-top h1 {
  font-size: clamp(28px, 3vw, 42px);
}
.account-form form .btn {
  width: 100%;
}
.form-error {
  color: #8e3434;
}
.form-error:empty {
  display: none;
}
.account-links,
.invoice-tools,
.account-top,
.invoice-total,
.invoice-meta,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.account-links {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
}
.account-links a:hover {
  text-decoration: underline;
}
.account-top .pagetitle {
  margin: 0;
}
.account-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0;
  padding: 16px 24px;
  border-radius: 16px;
  background: var(--soft);
}
.account-stats > div {
  display: grid;
}
.account-stats strong {
  font-size: 26px;
}
.account-stats span,
.customer-code,
.sample-note,
.history-row small,
.invoice-meta {
  font-size: 14px;
  color: var(--muted);
}
.account-top + .customer-code,
.sample-note {
  margin-top: 8px;
}
.history,
.invoice {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(16px, 3vw, 30px);
}
.history h2 small {
  font-size: 14px;
}
.history-row {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
.history-row small {
  display: block;
}
.history p {
  margin: 15px 0;
}
.invoice-tools {
  margin-bottom: 18px;
}
.invoice-meta {
  border-block: 1px solid var(--border);
  margin: 18px 0;
  padding: 14px 0;
  flex-wrap: wrap;
}
.invoice-table {
  overflow-x: auto;
}
.invoice-table table {
  width: 100%;
  text-align: start;
  border-collapse: collapse;
  font-size: 14px;
}
.invoice-table :is(th, td) {
  text-align: start;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
}
.invoice-total {
  padding-top: 22px;
}
.invoice-total strong {
  color: var(--accent);
}
@media (max-width: 980px) {
  .headtools .account-link span {
    display: none;
  }
}
@media (max-width: 759px) {
  #head .headrow {
    min-height: 64px;
    padding-inline: 8px;
    transform: translateY(7px);
  }
  #head.compact .headrow {
    min-height: 46px;
    transform: translateY(5px);
    padding: 0 5px;
    gap: 4px;
  }
  #head.compact .bag {
    padding-inline: 5px;
  }
  #head.compact #menu {
    margin-inline-start: 0;
  }
  .account-link {
    padding: 5px;
    min-width: 34px;
    justify-content: center;
  }
  .headtools {
    gap: 0;
  }
  #quick-contact {
    left: 10px;
    bottom: 12px;
  }
  #quick-contact summary {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 8px;
  }
  #quick-contact summary span {
    display: none;
  }
  #fabric-profile {
    column-gap: clamp(12px, 3vw, 22px);
  }
  .fabric-portrait {
    gap: 12px;
  }
  .fabric-portrait > header h2 {
    font-size: clamp(17px, 3.1vw, 24px);
    line-height: 1.5;
    text-wrap: balance;
  }
  .fabric-portrait .feature-layout,
  .fabric-portrait:nth-child(even) .feature-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "specs";
    align-content: start;
  }
  .portrait-specs {
    gap: 8px;
  }
  .portrait-specs h3 {
    font-size: 14px;
    margin-bottom: 0;
  }
  .portrait-specs p {
    font-size: 13px;
  }
  .chart-section,
  .step-track {
    grid-template-columns: 1fr;
  }
  .chart-section > header {
    text-align: center;
  }
  .chart-section .over {
    justify-content: center !important;
  }
  .account-gate {
    grid-template-columns: 1fr;
  }
  .account-photo {
    height: 120px;
  }
  .invoice-meta {
    align-items: start;
  }
  .account-shell {
    padding-bottom: 70px;
  }
  .pimage .sample {
    top: auto;
    bottom: 3px;
    right: 5px;
  }
  .pimage .fav {
    top: 4px;
    left: 3px;
  }
  .credits {
    padding-bottom: 55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.waiting {
    opacity: 1;
    transform: none;
  }
  #ambient {
    display: none;
  }
}
@media print {
  #head,
  #foot,
  #quick-contact,
  #ambient,
  .invoice-tools,
  .pointer-ring,
  .skip,
  #notice {
    display: none !important;
  }
  .wrap,
  .account-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .invoice {
    border: 0;
    background: white;
  }
  body {
    background: white;
  }
  .invoice-table {
    overflow: visible;
  }
  .invoice-table tr {
    break-inside: avoid;
  }
}
@media (max-width: 480px) {
  .headtools .bag span {
    display: none;
  }
  .headrow {
    gap: 5px;
  }
}
#contact,
#fabric-profile {
  scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  #head .headrow,
  .reveal {
    transition: none;
  }
}

#catalog-fabrics {
  scroll-margin-top: 80px;
}
.rail-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
}
.rail-tools .families {
  margin: 0;
}
.rail-toggle {
  padding: 6px 12px;
  min-height: 36px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 12px;
  white-space: nowrap;
}
.fabric-rail {
  --gap: clamp(12px, 1.6vw, 21px);
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  overflow-anchor: none;
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding: 17px 0 13px;
  isolation: isolate;
}
.fabric-rail .pcard {
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
  display: block;
  transform-origin: center 60%;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fabric-rail .pcard {
    transition: transform 0.42s cubic-bezier(0.22, 0.68, 0.22, 1);
  }
  .fabric-rail .pimage {
    transition: box-shadow 0.42s ease;
  }
  .fabric-rail .pcard:hover {
    z-index: 1;
    transform: translateY(-2px) scale(1.03);
  }
  .fabric-rail .pcard:hover .pimage {
    box-shadow: 0 5px 12px #233e2e24;
  }
  .fabric-rail .pimage > a:hover img {
    transform: none;
  }
}
.fabric-rail .pcopy :is(h3 a, .card-specs, .over, .cardbottom > span) {
  transition:
    color 0.45s ease,
    font-weight 0.45s ease;
}
.fabric-rail .pcopy h3 a {
  font-weight: 670;
}
.fabric-rail
  .pcard:focus-within
  .pcopy
  :is(h3 a, .card-specs, .over, .cardbottom > span) {
  color: #206044;
  font-weight: 800;
}
@media (hover: hover) {
  .fabric-rail
    .pcard:hover
    .pcopy
    :is(h3 a, .card-specs, .over, .cardbottom > span) {
    color: #206044;
    font-weight: 800;
  }
}
@media (max-width: 950px) {
  .fabric-rail .pcard {
    flex-basis: calc((100% - 2 * var(--gap)) / 3);
  }
}
@media (max-width: 759px) {
  .fabric-rail .pcard {
    flex-basis: calc((100% - var(--gap)) / 2);
  }
}
@media (max-width: 540px) {
  .fabric-rail .pcard {
    flex-basis: 78%;
    border: 0;
    padding: 0;
  }
  .fabric-rail .pcopy {
    padding-top: 9px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .fabric-portrait .feature-shot.reveal {
    transition:
      opacity 0.85s ease,
      transform 1s var(--ease-out);
  }
  .fabric-portrait .feature-shot.reveal.waiting:not(:focus-within) {
    transform: translateY(14px) scale(0.965);
  }
  .fabric-portrait .portrait-specs.reveal {
    transition:
      opacity 0.8s ease 0.08s,
      transform 1.05s var(--ease-out) 0.08s;
  }
  .fabric-portrait .portrait-specs.reveal.waiting:not(:focus-within) {
    transform: translateX(var(--entry-x));
  }
}
@media (prefers-reduced-motion: reduce) {
  .fabric-rail .pcopy :is(h3 a, .card-specs, .over, .cardbottom > span) {
    transition: none;
  }
}
#fabric-sales {
  scroll-margin-top: 84px;
}
.sales-chart > div {
  grid-template-columns: minmax(100px, 1.3fr) minmax(65px, 2fr) minmax(
      84px,
      auto
    );
}
.sales-chart em {
  transform: scaleX(var(--filled, 1));
  transform-origin: right center;
}
.sales-chart b {
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 540px) {
  .sales-chart > div {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }
  .sales-chart i {
    grid-row: 2;
    grid-column: 1/-1;
  }
}

/* A shared stage keeps the hero text still as each print arrives. */
.coverart.fabric-stack {
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: center;
  margin: 12px 0;
  width: min(96%, 690px);
  aspect-ratio: 1.54;
  height: auto;
  overflow: visible;
}
.coverart.fabric-stack > .stack-photo {
  position: absolute;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  inset: auto;
  left: var(--left);
  top: var(--top);
  width: var(--width);
  height: var(--height);
  object-fit: cover;
  transform: rotate(var(--tilt));
  border: clamp(3px, 0.4vw, 6px) solid #fffdf6;
  border-radius: clamp(10px, 1.35vw, 20px);
  box-shadow:
    0 5px 14px #232b2024,
    0 1px 3px #232b2024;
}
.fabric-stack > .stack-photo:nth-child(1) {
  --left: 5%;
  --top: 10%;
  --width: 52%;
  --height: 67%;
  --tilt: -8deg;
  --delay: 180ms;
}
.fabric-stack > .stack-photo:nth-child(2) {
  --left: 39%;
  --top: 8%;
  --width: 54%;
  --height: 65%;
  --tilt: 8deg;
  --delay: 380ms;
}
.fabric-stack > .stack-photo:nth-child(3) {
  --left: 17%;
  --top: 31%;
  --width: 62%;
  --height: 62%;
  --tilt: -3deg;
  --delay: 580ms;
}
.fabric-stack > .stack-photo:nth-child(4) {
  --left: 38%;
  --top: 29%;
  --width: 54%;
  --height: 61%;
  --tilt: 4deg;
}
.fabric-stack > .stack-photo:nth-child(5) {
  --left: 12%;
  --top: 21%;
  --width: 51%;
  --height: 60%;
  --tilt: -1deg;
}
.fabric-stack figcaption {
  position: absolute;
  bottom: 12%;
  left: 24%;
  background: #fffdf5f0;
  border-radius: 999px;
  padding: 4px 11px;
  color: #343e35;
  font-size: clamp(10px, 1vw, 12px);
}
@media (max-width: 759px) {
  .coverart.fabric-stack {
    width: min(95%, 490px);
    margin: 0 0 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cover {
    animation: hero-frame-in 0.65s var(--ease-out) backwards;
  }
  .cover .covercopy {
    animation: hero-copy-in 0.85s var(--ease-out) 0.12s backwards;
  }
  .coverart.fabric-stack > .stack-photo {
    animation: hero-photo-in 0.85s var(--ease-out) var(--delay) backwards;
  }
  .coverart.fabric-stack > .stack-photo:nth-child(n + 4) {
    animation: hero-photo-land 0.78s linear backwards;
  }
  .coverart.fabric-stack > .stack-photo.stack-cycled {
    animation: none;
  }
  .coverart.fabric-stack > .stack-photo.stack-lead {
    animation: hero-photo-forward 0.65s var(--ease-out);
  }
  @keyframes hero-photo-forward {
    0% {
      transform: rotate(var(--tilt));
    }
    40% {
      transform: translateY(-6%) scale(1.04) rotate(calc(var(--tilt) - 3deg));
    }
    100% {
      transform: rotate(var(--tilt));
    }
  }
  @keyframes hero-photo-land {
    0% {
      visibility: hidden;
      opacity: 0;
      transform: translateY(-95%) rotate(-7deg);
    }
    1% {
      visibility: visible;
      animation-timing-function: ease-in;
    }
    58% {
      opacity: 1;
      transform: translateY(1.8%) rotate(5deg);
      animation-timing-function: ease-out;
    }
    77% {
      transform: translateY(-2.6%) rotate(3deg);
      animation-timing-function: ease-in-out;
    }
    100% {
      transform: translateY(0) rotate(var(--tilt));
    }
  }
  .fabric-stack figcaption {
    animation: hero-frame-in 0.5s var(--ease-out) 0.92s backwards;
  }
  @keyframes hero-frame-in {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
  }
  @keyframes hero-copy-in {
    from {
      opacity: 0;
      transform: translateX(36px);
    }
  }
  @keyframes hero-photo-in {
    from {
      opacity: 0;
      transform: translate(-19%, 7%) rotate(calc(var(--tilt) - 7deg))
        scale(0.96);
    }
  }
}
.fabric-stack .stack-photo {
  z-index: var(--layer, 0);
}
.fabric-stack figcaption {
  z-index: 5;
}
.fabric-stack .stack-toggle {
  position: absolute;
  bottom: 11%;
  right: 7%;
  z-index: 7;
  background: #fffdf5f2;
  color: #24332a;
  border: 1px solid #24332a30;
  border-radius: 999px;
  padding: 4px 11px;
  font: inherit;
  font-size: clamp(10px, 1vw, 12px);
  cursor: pointer;
}
.fabric-stack .stack-toggle:hover,
.fabric-stack .stack-toggle:focus-visible {
  background: #fff;
  border-color: #24332a80;
}
.stack-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fabric-stack .stack-photo.is-front {
  z-index: 6;
  box-shadow: 0 9px 22px #23332839;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fabric-stack .stack-photo {
    transition:
      scale 0.38s var(--ease-out),
      box-shadow 0.38s ease;
  }
  .fabric-stack .stack-photo.is-front {
    scale: 1.06;
  }
}
.fabric-stack figcaption {
  pointer-events: none;
}
.fabric-stack:has(.is-front) figcaption {
  visibility: hidden;
}
.stack-info {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(7px, 1.15vw, 18px);
  color: white;
  background: linear-gradient(transparent, #10271fd9 68%, #10271ff2);
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1.5;
  text-align: start;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.42s ease,
    transform 0.42s var(--ease-out);
}
.stack-info strong {
  font-size: clamp(13px, 1.25vw, 19px);
  line-height: 1.45;
}
.stack-photo[aria-expanded="true"] .stack-info {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .stack-info {
    transition: none;
    transform: none;
  }
}

.telegram-support {
  --cap: 34px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  border-radius: 0 0 28px 28px;
  scroll-margin-top: 90px;
  color: #fffdf5;
}
.telegram-support::before {
  content: "";
  position: absolute;
  inset: var(--cap) 0 0;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 15% 108%, #477562 0%, transparent 53%),
    linear-gradient(118deg,#31564a,#193e35 76%);
}
.support-copy {
  align-self: center;
  padding: calc(var(--cap) + 28px) clamp(24px, 4vw, 60px) 28px 0;
}
.support-copy h2 {
  font-size: clamp(25px, 3.05vw, 43px);
  line-height: 1.55;
  color: inherit;
  text-wrap: balance;
}
.support-copy p {
  margin: 9px 0 20px;
  color: #e2eee7;
  text-wrap: pretty;
}
.support-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 9px 18px;
  color: #18473c;
  background: #fffcf1;
  font-weight: 750;
  transition: background .25s ease, translate .25s ease;
}
.support-link:is(:hover,:focus-visible) {
  background: #e1f4ea;
  translate: 0 -2px;
}
.support-art {
  position: relative;
  height: 294px;
  width: min(100%,340px);
  justify-self: center;
  pointer-events: none;
}
.chat-phone {
  width: 205px;
  height: 365px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%) rotate(-5deg);
  padding: 11px 0;
  overflow: hidden;
  border: 5px solid #172324;
  border-radius: 32px;
  background: #e1eee7;
  box-shadow: 0 0 0 2px #9caea5, 8px 14px 24px #10271f50;
}
.chat-camera { width: 45px; height: 9px; margin: 0 auto 11px; border-radius: 20px; background: #21312d; }
.chat-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 10px;
  color: #244c40;
  border-bottom: 1px solid #c8dbd2;
  font-size: 13px;
  font-weight: 750;
}
.chat-thread { display: grid; gap: 8px; padding: 13px 8px; color: #243d34; font-size: 11px; }
.chat-question,.chat-reply { width: fit-content; padding: 7px 10px; border-radius: 12px; background: white; }
.chat-question img { display: block; width: 132px; height: 71px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.chat-reply { justify-self: end; background: #c7e7cd; }
.telegram-seal {
  position: absolute;
  top: 42%;
  left: calc(50% - 134px);
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: linear-gradient(150deg,#5ac8fa,#168cca 84%);
  color: white;
  box-shadow: 0 6px 16px #153e4255, inset 0 1px 2px #ffffff70;
  transform: rotate(-9deg);
}
.telegram-seal svg { fill: white; stroke-width: .7; }
@media (max-width: 680px) {
  .telegram-support { grid-template-columns: 1fr; --cap: 0px; border-radius: 24px; }
  .support-copy { padding: 29px 18px 18px; text-align: center; }
  .support-copy p { margin: 8px auto 16px; max-width: 32ch; }
  .support-art { height: 192px; }
  .chat-phone { top: 6px; transform: translateX(-50%) rotate(-5deg) scale(.82); transform-origin: center top; }
  .telegram-seal { left: calc(50% - 113px); width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .support-link { transition: none; }
}
