@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap");

:root {
  --ivory: #f5f3ef;
  --stone: #e9e8e5;
  --charcoal: #171717;
  --blue: #173f59;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--charcoal);
  font-family: Vazirmatn, sans-serif;
  font-weight: 300;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
section[id] { scroll-margin-top: 5.25rem; }
::selection { background: var(--blue); color: #fff; }
.skip { position: absolute; right: 1rem; top: -4rem; }
.skip:focus { top: 1rem; z-index: 80; background: #fff; padding: 0.5rem 0.8rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 4rem;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  backdrop-filter: blur(12px);
  transition: height 0.5s, background-color 0.5s, color 0.5s, border-color 0.5s;
}
.is-home .site-header {
  height: 4.75rem;
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.is-home .site-header.is-solid,
.is-home .site-header.is-menu {
  height: 4rem;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(23, 23, 23, 0.1);
  backdrop-filter: blur(12px);
}
.header-bar {
  height: 100%;
  max-width: 96rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.logo img { height: 3.5rem; width: auto; transition: height 0.5s; }
.is-home .site-header.is-solid .logo img,
body:not(.is-home) .logo img { height: 2.75rem; }
.desktop-nav { display: none; justify-content: center; gap: 1.75rem; }
.nav-link { position: relative; text-decoration: none; font-size: 13px; font-weight: 500; color: currentColor; opacity: 0.8; }
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after, .nav-link[data-active="true"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.cart-btn { position: relative; }
.cart-btn span {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  min-width: 1rem;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  line-height: 1rem;
  text-align: center;
}
.mobile-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--ivory);
  color: var(--charcoal);
  border-top: 1px solid rgba(23, 23, 23, 0.1);
  padding: 0.5rem 1.5rem 1.5rem;
}
.mobile-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid rgba(23, 23, 23, 0.1); text-decoration: none; font-size: 1.5rem; }
.is-home main { padding-top: 0; }
body:not(.is-home) main { padding-top: 4rem; }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero-stage, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 0.42s ease; z-index: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-scene { width: 100%; height: 100%; object-fit: cover; transform: scale(1.045); }
.hero-edge { position: absolute; inset: 0 0 0 auto; width: 4.75rem; }
.hero-edge img { width: 100%; height: 100%; object-fit: cover; }
.hero-edge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; background: rgba(255,255,255,.25); }
.hero-sample {
  position: absolute;
  top: 16%;
  bottom: 18%;
  left: 0;
  right: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-sample img {
  width: min(28vw, 15.5rem);
  height: min(68vh, 34rem);
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(0,0,0,.38);
  transform: translateX(-5vw);
}
.hero-shade { position: absolute; inset-inline: 0; z-index: 4; pointer-events: none; }
.hero-shade-top { top: 0; height: 9rem; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.hero-shade-bottom { bottom: 0; height: 16rem; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.2), transparent); }
.hero-copy { position: relative; z-index: 10; min-height: 100svh; text-align: center; }
.hero-text { display: none; width: min(40rem, calc(100% - 6.5rem)); }
.hero-text.is-active {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 20vw), calc(-50% - 10vh));
}
.hero-text h1 { margin: 0; font-weight: 700; font-size: clamp(2.5rem, 6vw, 5.6rem); line-height: 1.2; text-shadow: 0 2px 16px rgba(0,0,0,.82), 0 1px 2px rgba(0,0,0,.6); }
.hero-text p { max-width: 28rem; margin: 1.25rem auto 0; font-weight: 500; line-height: 1.75; text-shadow: 0 2px 14px rgba(0,0,0,.75); }
.hero-text a { display: inline-flex; margin-top: 2rem; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; background: rgba(0,0,0,.25); padding: 0.6rem 2rem; color: #fff; text-decoration: none; backdrop-filter: blur(4px); }
.hero-text a:hover { background: #fff; color: var(--charcoal); }
.hero-text.is-dark,
.hero-text.is-dark h1,
.hero-text.is-dark p { color: #111; text-shadow: 0 0 18px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.85); }
.hero-text.is-dark a { color: #171717; border-color: rgba(23,23,23,.8); background: rgba(255,255,255,.45); }
.hero-text.is-dark a:hover { background: #171717; color: #fff; }
@media (max-width: 760px) {
  .is-home .site-header { height: 4rem; }
  .logo img, .is-home .logo img { height: 2.35rem; }
  .header-bar { padding: 0 0.65rem; gap: 0.25rem; }
  .header-tools { gap: 0; }
  .icon-btn { width: 2.1rem; height: 2.1rem; }
  .hero-edge { width: 2.4rem; }
  .hero-sample { top: auto; bottom: 5.25rem; left: 0; right: 0; height: 36%; }
  .hero-sample img { width: min(44vw, 11rem); height: 100%; transform: none; }
  .hero-rail { gap: 0.35rem; right: 0.35rem; }
  .hero-rail button { width: 2.05rem; height: 2.55rem; }
  .hero-rail button[aria-selected="true"] { width: 2.25rem; height: 3.2rem; }
  .hero-text { width: min(20rem, calc(100% - 5.2rem)); }
  .hero-text.is-active { left: 50%; right: auto; top: auto; bottom: calc(36% + 6.5rem); transform: translateX(-50%); }
  .hero-text h1 { font-size: clamp(1.85rem, 8.2vw, 2.55rem); }
  .hero-text p { margin-top: 0.7rem; }
  .hero-text a { margin-top: 1rem; }
  .band.white, .band.ivory, .projects, .collection, .contact { padding: 3.2rem 0; }
  .brand-copy { padding: 3.2rem 1.25rem; }
  .app-grid { margin-top: 2rem; gap: 1.5rem; }
  h2, .brand h2, .contact h2, .collection h2, .projects h2 { max-width: none; }
  .projects-head { align-items: flex-start; }
  .rail article { width: min(78vw, calc(100vw - 2.5rem)); }
  .search-panel input { font-size: 1.15rem; }
  .summary li, .sheet p, .footer-rights, .footer-link, .rights { overflow-wrap: anywhere; }
  .summary li, .sheet p { flex-wrap: wrap; }
}
.hero-rail {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transform: translateY(-50%);
}
.hero-rail button {
  position: relative;
  width: 3.15rem;
  height: 4.4rem;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  opacity: 0.88;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: height 0.45s ease, width 0.45s ease, opacity 0.45s ease;
}
.hero-rail button[aria-selected="true"] { width: 3.45rem; height: 6.4rem; opacity: 1; }
.hero-rail img { width: 100%; height: 100%; object-fit: cover; }
.hero-rail span {
  position: absolute;
  inset: auto 0 0.45rem 0;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,.75);
  opacity: 0;
}
.hero-rail button[aria-selected="true"] span { opacity: 1; }

.wrap { max-width: 92rem; margin: 0 auto; padding: 0 1.25rem; }
.band.white { background: #fff; padding: 6rem 0; }
.band.ivory { background: var(--ivory); padding: 6rem 0; }
.eyebrow { letter-spacing: 0.2em; font-size: 0.75rem; color: rgba(23,23,23,.45); }
.eyebrow span { margin: 0 0.75rem; color: rgba(23,23,23,.25); }
h2 { margin: 1rem 0 0; max-width: 18ch; font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: 1.28; }
.lede { max-width: 28rem; color: rgba(23,23,23,.7); line-height: 2; font-size: 1.05rem; }
.split-head { display: grid; gap: 2rem; align-items: end; }
.app-grid { margin-top: 4rem; display: grid; gap: 3rem; }
.app-card { margin: 0; }
.media { overflow: hidden; background: var(--stone); }
.media img, .browse-grid img, .rail img, .product-media img, .brand > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.app-card:hover img, .browse-grid figure:hover img, .product-card:hover img { transform: scale(1.04); }
.ratio-1, .ratio-2 { aspect-ratio: 3 / 4; }
.ratio-3 { aspect-ratio: 4 / 5; }
.app-card figcaption { margin-top: 1.25rem; }
.app-card figcaption p:first-child { letter-spacing: 0.18em; font-size: 11px; color: rgba(23,23,23,.4); }
.app-card h3 { margin: 0.4rem 0 0; font-weight: 300; font-size: 1.5rem; }
.product-card h3 { margin: 0; font-weight: 500; font-size: 1.05rem; }
.app-card figcaption p:last-child { max-width: 18rem; color: rgba(23,23,23,.65); line-height: 1.75; }
.browse-tabs { margin-top: 3rem; display: flex; gap: 2rem; overflow: auto; border-bottom: 1px solid rgba(23,23,23,.1); }
.browse-tabs button { border: 0; background: transparent; padding: 0 0 1rem; cursor: pointer; color: rgba(23,23,23,.45); }
.browse-tabs button[aria-selected="true"] { color: var(--charcoal); box-shadow: inset 0 -1px 0 var(--charcoal); }
.browse-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.browse-grid[hidden] { display: none !important; }
.browse-grid figure { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.browse-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 1rem; color: #fff; background: linear-gradient(to top, rgba(23,23,23,.55), transparent); }

.brand { display: grid; background: #fff; }
.brand-copy { display: flex; flex-direction: column; justify-content: center; padding: 6rem 1.25rem; }
.brand h2 { max-width: 12ch; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.25; }
.brand h2 span { color: var(--blue); }
.brand-copy p:last-of-type { max-width: 28rem; line-height: 2; color: rgba(23,23,23,.75); }
.brand-copy i { display: block; width: 4rem; height: 1px; margin-top: 3rem; background: rgba(23,23,23,.3); }
.brand > img { min-height: 72vw; object-fit: cover; }

.projects { background: var(--stone); padding: 6rem 0; }
.projects-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.projects h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.muted { color: rgba(23,23,23,.55); }
.project-nav { display: flex; gap: 0.5rem; }
.project-nav button { width: 2.75rem; height: 2.75rem; border: 1px solid rgba(23,23,23,.2); background: transparent; cursor: pointer; }
.project-nav button:hover { background: #fff; }
.rail { margin-top: 3rem; overflow: hidden; padding: 0 1.25rem 0.5rem; touch-action: pan-y; }
.rail-track { display: flex; gap: 1rem; transition: transform 0.55s ease; }
.rail article { width: 78vw; flex: 0 0 auto; }
.project-nav button:disabled { opacity: 0.35; cursor: default; }
.rail img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--ivory); }
.rail h3 { margin: 1rem 0 0; font-weight: 300; font-size: 1.25rem; }
.rail p { margin: 0.25rem 0 0; color: rgba(23,23,23,.6); }

.collection { background: #fff; padding: 6rem 0; }
.collection h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.35; }
.catalog-filters { margin-top: 2.5rem; display: grid; gap: 1rem; }
.catalog-filters input, .stack input, .stack textarea, .admin input, .admin textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(23,23,23,.2);
  background: transparent;
  padding: 0.8rem 0;
  font-size: 1.1rem;
}
.admin input, .admin textarea, .stack input, .stack textarea { border: 1px solid rgba(23,23,23,.16); background: #fff; padding: 0.8rem; }
.facet-tabs, .facet-row, .tabs { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; }
.facet-tabs { margin-top: 1.5rem; }
.facet-row { margin-top: 1rem; }
.facet-tabs a, .facet-row a, .tabs a { text-decoration: none; border: 1px solid rgba(23,23,23,.15); padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.facet-tabs a[aria-selected="true"], .facet-row a[aria-selected="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.product-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
.product-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); color: inherit; text-decoration: none; }
.product-copy { display: grid; gap: 0.35rem; padding-top: 0.75rem; }
.product-card .meta { margin: 0; color: rgba(23,23,23,.6); }
.product-card .meta span, .price s { color: rgba(23,23,23,.35); margin: 0 0.35rem; }
.price { margin: 0; }
.price em { color: var(--blue); font-style: normal; margin-right: 0.4rem; }
.buy-open { justify-self: start; margin-top: 0.6rem; }
.buy-dialog { width: min(92vw, 46rem); border: 0; padding: 0; background: var(--ivory); }
.buy-dialog::backdrop { background: rgba(23,23,23,.45); }
.buy-dialog form { display: grid; }
.buy-copy { display: grid; gap: 0.7rem; align-content: start; padding: 1.4rem; }
.buy-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.buy-head h3 { margin: 0; font-weight: 300; font-size: 1.8rem; }
.buy-copy label { display: grid; gap: 0.4rem; }
.buy-copy input { border: 1px solid rgba(23,23,23,.16); background: #fff; padding: 0.7rem; }
.buy { display: flex; gap: 0.6rem; align-items: end; margin-top: 0.8rem; }
.buy input { width: 5rem; border: 1px solid rgba(23,23,23,.16); padding: 0.55rem; }
.buy button, .primary, .sheet button, .admin button {
  border: 1px solid var(--charcoal);
  background: #fff;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.primary { background: var(--charcoal); color: #fff; text-decoration: none; display: inline-block; text-align: center; }
.empty-catalog { margin-top: 4rem; font-size: 1.15rem; color: rgba(23,23,23,.6); }

.contact {
  color: var(--ivory);
  padding: 6rem 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.62), rgba(8, 18, 32, 0.74)),
    url("/images/contact-stone.jpg") center / cover no-repeat;
}
.contact h2 { max-width: 16ch; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.25; }
.contact p { max-width: 36rem; line-height: 2; color: rgba(255,255,255,.75); }
.contact a { color: inherit; }
.contact > .wrap > a { display: inline-flex; margin-top: 1.5rem; border: 1px solid rgba(255,255,255,.8); padding: 0.85rem 2rem; text-decoration: none; }
.contact > .wrap > a:hover { background: #fff; color: var(--blue); }
.contact dl, .site-footer dl { display: grid; gap: 1.5rem; margin: 4rem 0 0; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.15); }
.contact dt, .site-footer dt { letter-spacing: 0.16em; font-size: 0.75rem; color: rgba(255,255,255,.5); }
.contact dd { margin: 0.6rem 0 0; font-size: 1.1rem; }

.site-footer {
  color: var(--charcoal);
  background:
    linear-gradient(180deg, rgba(245, 243, 239, 0.55), rgba(245, 243, 239, 0.68)),
    url("/images/footer-stone.jpg") center / cover no-repeat;
}
.footer-grid { max-width: 92rem; margin: 0 auto; padding: 4rem 1.25rem; display: grid; gap: 2.5rem; }
.site-footer img { height: 5rem; width: auto; }
.footer-name { font-size: 1.1rem; }
.footer-latin { letter-spacing: 0.22em; font-size: 11px; color: rgba(23,23,23,.5); }
.site-footer nav { display: grid; gap: 0.7rem; }
.site-footer a { text-decoration: none; }
.site-footer dt { color: rgba(23,23,23,.4); }
.site-footer dl { margin: 0; padding: 0; border: 0; }
.rights { margin: 0; border-top: 1px solid rgba(23,23,23,.1); padding: 1.2rem 1.25rem 0.4rem; font-size: 0.75rem; color: rgba(23,23,23,.5); }
.footer-rights { margin: 0; padding: 0 1.25rem; font-size: 0.75rem; line-height: 1.9; color: rgba(23,23,23,.55); }
.footer-rights strong { font-weight: 600; color: var(--charcoal); }
.footer-link { display: inline-block; margin: 0.35rem 1.25rem 1.4rem; font-size: 0.75rem; color: var(--blue); }

.search-layer { position: fixed; inset: 0; z-index: 70; background: var(--ivory); }
.search-panel { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem; }
.search-top { display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.18em; font-size: 0.75rem; color: rgba(23,23,23,.5); }
.search-panel input { width: 100%; margin-top: 2rem; border: 0; border-bottom: 1px solid rgba(23,23,23,.2); background: transparent; padding: 0.8rem 0; font-size: 1.6rem; }
.search-panel a { display: flex; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid rgba(23,23,23,.08); text-decoration: none; }
.search-panel small { color: rgba(23,23,23,.45); }

.sheet { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.sheet.narrow { max-width: 28rem; }
.stack { display: grid; gap: 0.8rem; }
.summary { padding: 0; list-style: none; }
.summary li, .sheet p { display: flex; justify-content: space-between; gap: 1rem; }
.error { color: #8d1d1d; }
.notice, .dev { background: #eef4f8; color: var(--blue); padding: 0.7rem; }
.card-box { border: 1px solid var(--stone); padding: 1rem; margin: 1rem 0; }
.drawer-root { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.drawer-root[data-open="true"] { pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(23,23,23,.4); opacity: 0; }
.drawer-root[data-open="true"] .drawer-backdrop { opacity: 1; }
.drawer {
  position: absolute; top: 0; left: 0; width: min(100%, 28rem); height: 100%;
  background: var(--ivory); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.45s ease;
}
.drawer-root[data-open="true"] .drawer { transform: none; }
.drawer header, .drawer footer, .cart-line { padding: 1rem 1.2rem; }
.drawer header, .cart-line { display: flex; justify-content: space-between; gap: 0.8rem; border-bottom: 1px solid rgba(23,23,23,.08); }
.drawer-body { overflow: auto; flex: 1; }
.cart-line img { width: 72px; height: 88px; object-fit: cover; }
.qty { display: flex; gap: 0.4rem; align-items: center; }
.drawer footer p { display: flex; justify-content: space-between; }
.admin { display: grid; grid-template-columns: 14rem 1fr; min-height: 100vh; }
.admin aside { background: var(--ivory); padding: 1.5rem; display: grid; align-content: start; gap: 0.8rem; }
.admin aside a { text-decoration: none; }
.admin aside a[aria-current="page"] { font-weight: 600; }
.admin section { padding: 1.5rem; overflow: auto; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { border-bottom: 1px solid var(--stone); padding: 0.55rem; text-align: right; vertical-align: top; }
td img { width: 64px; height: 64px; object-fit: cover; }
.thumbs { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.thumbs img { width: 120px; height: 120px; object-fit: cover; }
.detail { margin-top: 1.5rem; background: var(--ivory); padding: 1rem; }

@media (min-width: 700px) {
  .project-nav { display: flex; }
  .rail article { width: 48vw; }
  .contact dl, .footer-grid { grid-template-columns: 1fr 1fr; }
  .browse-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .app-grid { grid-template-columns: 1.4fr 0.9fr 1.1fr; align-items: start; gap: 1.5rem; }
  .frame-2 { margin-top: 7rem; }
  .frame-3 { margin-top: 3rem; }
  .hero-edge { width: clamp(6.5rem, 15vw, 13.5rem); }
  .hero-sample { top: 12%; bottom: 10%; right: clamp(7.5rem, 16vw, 15rem); }
  .hero-sample img { width: min(18vw, 17rem); height: min(72vh, 38rem); }
  .hero-rail { right: 1.35rem; }
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-btn { display: none; }
  .split-head, .brand { grid-template-columns: 1fr 1fr; }
  .brand > img { min-height: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .buy-dialog form { grid-template-columns: 1fr 1fr; }
  .buy-dialog .product-media { min-height: 100%; }
  .rail article { width: 34vw; }
}
@media (max-width: 760px) {
  .hero-edge { width: 2.4rem; }
  .hero-sample { top: auto; bottom: 5.25rem; left: 0; right: 0; height: 36%; }
  .hero-sample img { width: min(44vw, 11rem); height: 100%; transform: none; }
  .hero-rail { right: 0.35rem; }
  .hero-rail button { width: 2.05rem; height: 2.55rem; }
  .hero-rail button[aria-selected="true"] { width: 2.25rem; height: 3.2rem; }
  .hero-text.is-active { left: 50%; right: auto; top: auto; bottom: calc(36% + 6.5rem); transform: translateX(-50%); }
  .app-grid { grid-template-columns: 1fr; margin-top: 2rem; gap: 1.5rem; }
  .rail article { width: min(78vw, calc(100vw - 2.5rem)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .media img, .hero-scene, .rail-track { transition: none; }
  .hero-slide, .hero-scene { transform: none; }
}
