@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn-Arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-LatinExt.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --coal: #160f12;
  --black: #100b0d;
  --wine: #47222c;
  --paper: #f1eae0;
  --ink: #291a1e;
  --quiet: #665050;
  --linen: #f4e8dd;
  --brass: #d8b6a1;
  --rim: #d8b6a145;
  --rule: #b49a904d;
  --fa: Vazirmatn, Tahoma, system-ui, sans-serif;
  --roman: "Cormorant Garamond", Georgia, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: max(clamp(17px, 6vw, 26px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --action-height: calc(71px + var(--safe-bottom));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  height: 100dvh;
  background: radial-gradient(ellipse at 50% 35%, #27191f, #100c0e 70%);
  color: var(--ink);
  font: 400 15px/1.85 var(--fa);
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
[dir="ltr"] { unicode-bidi: isolate; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button {
  appearance: none;
  padding: 0;
  color: inherit;
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
button:disabled { cursor: default; }
:where(button, a):focus-visible { outline: 2px solid #aa5065; outline-offset: 2px; }

.app {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  height: 100%;
  height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--coal);
}
.app::after {
  position: absolute;
  z-index: 12;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: var(--grain);
  opacity: .023;
}

.catalog {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto var(--action-height);
  padding-top: var(--safe-top);
  color: var(--linen);
  background: var(--coal);
  transition: opacity 260ms ease;
}
.app.has-detail .catalog { opacity: .06; }
.masthead {
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 59px;
  margin-inline: var(--gutter);
  border-bottom: 1px solid var(--rim);
}
.wordmark {
  color: #f1ded5;
  font: 500 32px/.9 var(--roman);
  letter-spacing: -.055em;
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #e5cfc2;
  font-size: 12px;
}
.guide-link span {
  font: 400 15px/1 Georgia, serif;
  color: var(--brass);
}
:is(.catalog, .intro) :focus-visible { outline-color: #e9b6bf; }

/* The light follows the selected packshot. The carousel and its index share the same order. */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  container-type: size;
  --floor: 11%;
  --photo-height: min(75cqh, 384px);
  background:
    radial-gradient(ellipse 50% 46% at 54% 64%, var(--wash, #6d3d4a), transparent 100%),
    linear-gradient(165deg, #271a1f 9%, #20171a 50%, #171114 100%);
}
.stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(116deg, transparent 20%, #e6b3a10a 33%, #ffe0d016 43%, transparent 61%),
    repeating-linear-gradient(90deg, #f2dfd405 0 1px, transparent 1px 29px);
  -webkit-mask-image: linear-gradient(transparent 1%, black 18%, black 75%, transparent);
  mask-image: linear-gradient(transparent 1%, black 18%, black 75%, transparent);
}
.stage::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: var(--floor);
  border-top: 1px solid #d3a5965e;
  background: radial-gradient(ellipse 37% 130% at 50% 2%, #bf8e7960, #39282f 62%, #1c1518 100%);
  content: "";
}
.stage-meta {
  position: absolute;
  z-index: 2;
  inset: 12px var(--gutter) auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 9px;
  color: #eddfd4;
  pointer-events: none;
}
.stage-meta h1 { font-size: 13px; font-weight: 450; line-height: 1.9; }
.folio { color: var(--brass); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shelf {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
}
.bottle-button {
  position: absolute;
  bottom: var(--floor);
  left: 50%;
  height: calc(var(--photo-height) * var(--bottle-scale));
  aspect-ratio: var(--aspect);
  min-height: 44px;
  min-width: 44px;
  transform: translateX(-50%);
  touch-action: pan-x;
}
.bottle-button.is-source .bottle { visibility: hidden; }
.bottle-button:focus-visible { outline-offset: 5px; }
.bottle {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.bottle-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.shelf .bottle-image { filter: drop-shadow(8px 9px 11px #160b1195); }
.bottle-button::before {
  position: absolute;
  z-index: -1;
  inset: auto -25% -11px;
  height: 22px;
  content: "";
  background: radial-gradient(ellipse, #0d080ccb, transparent 69%);
  pointer-events: none;
}
.liquid-clip {
  position: absolute;
  inset: 0;
  clip-path: var(--glass);
  pointer-events: none;
}
.liquid-body {
  position: absolute;
  top: var(--body-start);
  bottom: var(--body-end);
  left: 0;
  right: 0;
}
.liquid-fill {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 101%, 0);
  transition: transform 940ms var(--ease);
}
.bottle.is-filled .liquid-fill { transform: translate3d(0, 23%, 0); }
.liquid-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, #ffffff38 1%, transparent 14%, #1c101b52 100%), var(--note-color);
  opacity: 0;
  transition: opacity 420ms ease;
}
.liquid-layer:nth-child(1) { --note-color: var(--top); }
.liquid-layer:nth-child(2) { --note-color: var(--middle); }
.liquid-layer:nth-child(3) { --note-color: var(--base); }
.bottle[data-note="0"] .liquid-layer:nth-child(1),
.bottle[data-note="1"] .liquid-layer:nth-child(2),
.bottle[data-note="2"] .liquid-layer:nth-child(3) { opacity: .69; }

.shelf-controls {
  position: absolute;
  inset: auto var(--gutter) calc(var(--floor) + 9px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.step {
  display: grid;
  place-items: center;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  color: #f2d9c9;
}
.step:not(:disabled) { border: 1px solid #d8b6a156; border-radius: 50%; }
.step:disabled { opacity: .3; }
.chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 1px 0 0 1px;
  transform: rotate(-45deg);
}
#shelf-prev .chevron, .primary-action .chevron { transform: rotate(135deg); }

.collection-index {
  display: flex;
  gap: 3px;
  min-width: 0;
  padding: 0 var(--gutter);
  background: #21171c;
  border-top: 1px solid #d8b6a138;
}
.index-button {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 61px;
  color: #c6aca1;
  border-bottom: 2px solid transparent;
}
.index-button + .index-button::before {
  position: absolute;
  inset: 13px 0 13px auto;
  content: "";
  border-inline-start: 1px solid #d8b6a130;
}
.index-button[aria-current="true"] { color: #faeee4; border-bottom-color: #e0aba9; background: #d8a4a413; }
.index-button img { height: 29px; width: 20px; object-fit: contain; opacity: .75; }
.index-button[aria-current="true"] img { opacity: 1; }
.index-number { font-size: 10px; font-variant-numeric: tabular-nums; }

.product-label, .catalog-actions, .detail-sheet, .detail-actions, .guide-sheet { background: var(--paper); color: var(--ink); }
.product-label {
  display: grid;
  align-content: center;
  min-height: 116px;
  gap: 3px;
  padding: 12px var(--gutter) 9px;
}
.label-brand {
  color: #66434a;
  font: 700 13px/1.15 var(--roman);
  letter-spacing: .15em;
}
.label-name {
  color: #28171e;
  font: 600 clamp(31px, 9.8vw, 44px)/.96 var(--roman);
  letter-spacing: -.044em;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
.label-name.is-long { font-size: clamp(28px, 8.8vw, 39px); }
.label-line {
  margin-top: 6px;
  color: #534047;
  font-weight: 470;
  font-size: 13px;
}
.catalog-actions, .detail-actions {
  display: flex;
  align-items: start;
  padding: 9px var(--gutter) calc(9px + var(--safe-bottom));
  gap: 12px;
  min-width: 0;
  border-top: 1px solid var(--rule);
}
.catalog-actions .primary-action { flex: 1; }
.primary-action, .quiet-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
}
.primary-action {
  min-width: 0;
  padding: 4px 12px;
  background: var(--wine);
  border: 1px solid #2f1720;
  color: #fcf0e9;
  font-weight: 680;
}
.primary-action[aria-disabled="true"] { color: #5f4c50; background: #ddd1cc; border-color: #cabcb6; cursor: default; }
.quiet-action { padding-inline: 3px; color: #5a343e; font-weight: 590; white-space: nowrap; }
.action-arrow { font: 400 16px/1.1 Georgia, serif; }
.catalog-actions .quiet-action .chevron { scale: .78; }

.detail, .guide { position: absolute; z-index: 7; inset: 0; }
.detail {
  --p: 0;
  --panel-full: max(72px, calc(var(--safe-top) + 64px));
  --panel-half: max(calc(var(--panel-full) + 80px), min(44dvh, calc(100dvh - 324px)));
  --close-y: 100dvh;
  --hero-end: calc(var(--safe-top) + 8px);
  --art-height: clamp(93px, calc(var(--panel-half) - var(--safe-top) - 59px), 252px);
}
.detail[data-view="order"] {
  --panel-half: max(calc(var(--panel-full) + 73px), min(54dvh, calc(100dvh - 363px)));
  --art-height: clamp(93px, calc(var(--panel-half) - var(--safe-top) - 63px), 282px);
}
.detail.is-open { --close-y: 0px; }
.detail-backdrop, .guide-backdrop {
  position: absolute;
  inset: 0;
  background: #21151be3;
  opacity: 0;
  transition: opacity 260ms ease;
}
.detail-backdrop {
  background: radial-gradient(ellipse 54% 38% at 50% 20%, var(--detail-wash, #673b4c), #190f16e8 94%);
}
:is(.detail, .guide).is-open > :is(.detail-backdrop, .guide-backdrop) { opacity: 1; }
.hero {
  --hero-height: calc(var(--art-height) * var(--bottle-scale, 1));
  --hero-start: max(calc(var(--safe-top) + 10px), calc((var(--panel-half) + var(--safe-top) - var(--hero-height)) / 2));
  position: absolute;
  inset: 0 0 auto;
  height: var(--panel-half);
  pointer-events: none;
}
.hero-position {
  position: absolute;
  top: var(--hero-start);
  inset-inline: 0;
  display: grid;
  justify-items: center;
  transform: translateY(calc((var(--hero-end) - var(--hero-start)) * var(--p)));
}
.hero-bottle {
  height: var(--hero-height);
  aspect-ratio: var(--aspect);
  transform-origin: center top;
  transform: scale(calc(1 - .8 * var(--p)));
}
.hero-bottle.is-flying { visibility: hidden; }
.bottle-flight {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  transform-origin: top left;
}
.detail-sheet {
  position: absolute;
  inset: var(--panel-full) 0 var(--action-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 2px solid #b27b82;
  transform: translateY(calc((var(--panel-half) - var(--panel-full)) * (1 - var(--p)) + var(--close-y)));
}
.detail-sheet, .hero-position, .hero-bottle { transition: transform 390ms var(--ease); }
.detail.is-dragging :is(.detail-sheet, .hero-position, .hero-bottle) { transition: none; }
.sheet-header {
  position: relative;
  flex: none;
  padding: 0 calc(var(--gutter) + 23px) 13px;
  text-align: center;
  touch-action: none;
}
.sheet-header .label-name { margin-top: 5px; }
.sheet-handle {
  display: grid;
  place-items: start center;
  width: min(52%, 190px);
  height: 35px;
  min-height: 44px;
  margin: 0 auto -8px;
  padding-block-start: 10px;
  touch-action: none;
}
.sheet-handle span { width: 36px; height: 3px; background: #9a777d; border-radius: 6px; }
.close-button {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #642f40;
}
.close-button i { position: relative; width: 21px; height: 21px; border: 1px solid #9f767987; border-radius: 50%; }
.close-button i::before, .close-button i::after {
  position: absolute;
  top: 9px;
  left: 4px;
  width: 11px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}
.close-button i::after { transform: rotate(-45deg); }
.sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: #9b7778 transparent;
}
.detail.is-full .sheet-scroll { overflow-y: auto; }
.sheet-content, .order-content { padding: 0 var(--gutter) 24px; }
.sheet-intro, .order-copy {
  color: #4b363d;
  max-width: 43ch;
  font-size: 14px;
  line-height: 1.95;
}
.sheet-content h3, .order-content h3 {
  color: #42252f;
  font-size: 16px;
  font-weight: 730;
  line-height: 1.8;
}
.sheet-notes { margin-top: 18px; }
.note-list, .facts { margin: 5px 0 0; }
.note-row, .fact {
  display: grid;
  grid-template-columns: minmax(75px, 25%) 1fr;
  align-items: baseline;
  gap: 10px;
  padding-block: 9px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.note-row dt, .fact dt { color: #6a3e48; font-weight: 670; }
.note-row dt::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--note-color);
  content: "";
}
:is(.note-row, .fact) dd { margin: 0; }
.sheet-facts { margin-top: 18px; }
.gauge-inline { display: flex; align-items: center; column-gap: 11px; flex-wrap: wrap; }
.meter { display: flex; gap: 3px; }
.meter i {
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to left, #824e5d var(--level), #dac9c5 var(--level));
}
.image-note {
  margin-block: 7px 12px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid #9d5968;
  color: #632e3d;
  font-size: 11px;
  line-height: 1.9;
}
.detail-actions {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: var(--action-height);
  transform: translateY(105%);
  transition: transform 330ms var(--ease);
}
.detail.is-open .detail-actions { transform: none; }
.detail-actions .primary-action { flex: 1; }
.detail-actions .quiet-action { padding-inline: 8px; }
.order-copy { margin-top: 4px; }
.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 9px;
  padding: 0;
  border: 0;
}
.size-list legend { padding: 0; }
.size-option { display: block; position: relative; flex: 1 0 63px; }
.size-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.size-option bdi {
  display: grid;
  place-items: center;
  min-height: 49px;
  border: 1px solid #96707881;
  color: #5e3440;
  font: 700 20px/1 var(--roman);
  font-variant-numeric: lining-nums;
}
.size-option input:checked + bdi { color: #fff6ef; border-color: var(--wine); background: var(--wine); }
.size-option input:focus-visible + bdi { outline: 2px solid #aa5065; outline-offset: 2px; }
.order-help { color: var(--quiet); font-size: 12px; }

.guide-backdrop { background: #190e14d9; }
.guide-sheet {
  position: absolute;
  inset: auto 0 0;
  max-height: calc(100dvh - var(--safe-top) - 32px);
  overflow-y: auto;
  padding: 25px var(--gutter) calc(17px + var(--safe-bottom));
  border-top: 2px solid #b27b82;
  transform: translateY(105%);
  transition: transform 340ms var(--ease);
}
.guide.is-open .guide-sheet { transform: none; }
.guide-sheet h2 { padding-inline-end: 25px; font-weight: 720; font-size: 23px; }
.guide-sheet ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.guide-sheet li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: start;
  gap: 8px;
  padding-block: 10px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.guide-sheet li::before { content: counter(steps, persian); color: #854b5b; }
.guide-sheet .quiet-action { border-bottom: 1px solid #966675; }

/* The cover is a still life of two original bottles, with a single reveal grounded in the light. */
.intro {
  position: absolute;
  z-index: 11;
  inset: 0;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: calc(var(--safe-top) + 18px) var(--gutter) calc(var(--safe-bottom) + 23px);
  color: var(--linen);
  background: linear-gradient(156deg, #4e2b37 0%, #301d25 24%, #1b1218 57%, #170f14 100%);
  touch-action: none;
  transition: transform 530ms var(--ease), opacity 470ms ease;
}
.intro.is-leaving { transform: translate3d(0, -8%, 0); opacity: 0; pointer-events: none; }
.intro-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
  border-bottom: 1px solid #e1bfa659;
  color: #edd7ca;
  font-size: 12px;
}
.cover-mark {
  width: 10px;
  height: 10px;
  margin-inline-end: 3px;
  transform: rotate(45deg);
  border: 1px solid #ddafa2;
}
.intro-wordmark {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: 10px auto 0;
  font: 500 clamp(65px, 25.4vw, 110px)/.88 var(--roman);
  letter-spacing: -.065em;
  color: #f6e0d2;
}
.cover-scene { position: relative; margin: -10px calc(-1 * var(--gutter)) 0; }
.cover-light {
  position: absolute;
  inset: -25% 0 2%;
  background:
    linear-gradient(123deg, transparent 26%, #d3938133 40%, #f0ba9b18 48%, transparent 65%),
    radial-gradient(ellipse 41% 62% at 43% 55%, #ad756c92, #744b5748 59%, transparent 98%);
  -webkit-mask-image: linear-gradient(transparent, black 23%, black 82%, transparent);
  mask-image: linear-gradient(transparent, black 23%, black 82%, transparent);
}
.cover-shadow {
  position: absolute;
  inset: auto 4% 9%;
  height: 15%;
  background: radial-gradient(ellipse at 50% 50%, #0b050bcf, transparent 67%);
}
.cover-bottle {
  position: absolute;
  bottom: 13%;
  height: min(85%, 423px);
  max-width: 49%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(10px 18px 14px #10060b8c);
}
.cover-bottle-main { left: 18%; z-index: 1; }
.cover-bottle-side {
  bottom: 10%;
  left: 52%;
  z-index: 2;
  height: min(49%, 228px);
  max-width: 40%;
}
.intro-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e1bfa659;
  padding-top: 11px;
}
.intro-footer p {
  color: #f4e4d9;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 490;
  line-height: 1.9;
}
.intro-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 3px 12px;
  border: 1px solid #e1bfa697;
  color: #fae8de;
  font-size: 13px;
  white-space: nowrap;
}
.no-script {
  position: absolute;
  z-index: 13;
  inset: auto 0 0;
  padding: 20px;
  background: var(--paper);
}

@media (max-height: 680px) {
  .masthead { min-height: 50px; }
  .stage { --photo-height: min(73cqh, 318px); }
  .index-button { min-height: 50px; }
  .product-label { min-height: 100px; padding-block: 9px 7px; }
  .label-name { font-size: clamp(28px, 9.3vw, 39px); }
  .label-name.is-long { font-size: clamp(26px, 8.45vw, 35px); }
}
@media (max-width: 355px) {
  .index-button { gap: 4px; }
  .catalog-actions, .detail-actions { gap: 7px; }
  .intro-footer { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

