:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #fff;
  --secondary: #ebebf599;
  --paper: #1c1c1e;
  --separator: #54545899;
  --rule: #54545899;
  --control: #1c1c1ed9;
  --body: .9375rem;
  --secondary-size: .875rem;
  --caption: .75rem;
  --space: .5rem;
  --page-inset: 2rem;
  --layout-gap: 1.5rem;
  --section-gap: 1rem;
  --content-width: 56rem;
  --control-size: 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--foreground);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; padding: var(--page-inset); font-size: var(--body); }
h1, p, blockquote, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button, select, a { touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; }
body > svg { position: absolute; width: 0; height: 0; overflow: hidden; }
body > header { display: flex; align-items: center; justify-content: space-between; gap: var(--section-gap); min-height: var(--control-size); }
label, #appearance { background: var(--control); box-shadow: inset 0 1px 0 #ffffff18; -webkit-backdrop-filter: blur(1.5rem) saturate(1.3); backdrop-filter: blur(1.5rem) saturate(1.3); }
label { position: relative; display: inline-flex; border: .5px solid var(--separator); border-radius: 2rem; }
label::after { content: ""; position: absolute; right: var(--section-gap); top: 50%; width: var(--space); height: var(--space); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { -webkit-appearance: none; appearance: none; display: block; min-width: 7.5rem; min-height: var(--control-size); width: 100%; margin: 0; padding: 0 2.5rem 0 1rem; border: 0; border-radius: inherit; background: transparent; box-shadow: none; font-size: var(--secondary-size); -webkit-text-fill-color: var(--foreground); cursor: pointer; }
option { background: var(--paper); color: var(--foreground); }
main { margin-block: var(--layout-gap) var(--section-gap); overflow-x: clip; }
main > header { max-width: var(--content-width); margin: 0 auto var(--layout-gap); text-align: center; }
#availability { margin: var(--space) 0 0; color: var(--secondary); font-size: var(--caption); line-height: 1.6; }
hgroup p { line-height: 1.6; margin-top: var(--space); }
h1 { font-size: 2.5rem; line-height: 1.22; font-weight: 650; letter-spacing: -1px; text-wrap: balance; }
main > header > p:not(#availability) { margin: var(--section-gap) auto 0; line-height: 1.8; color: var(--secondary); }
[data-i18n="welcome"] > span { display: inline-block; white-space: nowrap; }
#examples {
  --artwork: radial-gradient(ellipse at 20% 15%, var(--scent-1), transparent 75%), linear-gradient(140deg, var(--scent-2), var(--scent-3));
  --scent-1-light: color(display-p3 0.35453347 0.58018209 0.23568680); --scent-1-dark: color(display-p3 0.29850587 0.49340036 0.19751408);
  --scent-2-light: color(display-p3 0.86332019 0.79342684 0.62667664); --scent-2-dark: color(display-p3 0.73713474 0.67573003 0.53643606);
  --scent-3-light: color(display-p3 0.76836458 0.49917158 0.15784188); --scent-3-dark: color(display-p3 0.63659592 0.40129734 0.11392870);
  --scent-4-light: color(display-p3 0.76836458 0.49917158 0.15784188); --scent-4-dark: color(display-p3 0.63659592 0.40129734 0.11392870);
  --scent-1: var(--scent-1-dark); --scent-2: var(--scent-2-dark);
  --scent-3: var(--scent-3-dark); --scent-4: var(--scent-4-dark);
  --glow-stops: color-mix(in srgb, var(--scent-3) 52.2388%, var(--scent-1)), var(--scent-1) 5.25% 29.75%, var(--scent-2) 39.95% 63.05%, var(--scent-3) 72.8% 95.2%, color-mix(in srgb, var(--scent-3) 52.2388%, var(--scent-1));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; align-items: center; max-width: var(--content-width); margin-inline: auto;
}
#bottle-stage { --bottle-size: 29.5rem; grid-column: 1; grid-row: 1; height: 31.5rem; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; touch-action: pan-y; }
article { min-height: var(--example-height, 0); grid-column: 2; grid-row: 1; min-width: 0; align-self: start; display: flex; flex-direction: column; gap: var(--section-gap); }
article > cite { margin-top: calc(var(--space) - var(--section-gap)); text-align: right; font-size: var(--caption); line-height: 1.6; color: var(--secondary); font-style: normal; }
article > cite:lang(en) { font-style: italic; }
[hidden] { display: none !important; }
small { font-size: var(--caption); color: var(--secondary); }
blockquote {
  --rule-spacing: 1.6875rem;
  --paper-inset: 1rem;
  position: relative; padding: var(--paper-inset) 1.125rem;
  min-height: calc(var(--rule-spacing) * 3 + var(--paper-inset) * 2);
  border-radius: 1rem; background: var(--paper); overflow: hidden;
  box-shadow: inset 0 0 0 .5px var(--separator);
}
blockquote::before {
  content: ""; position: absolute;
  inset: var(--paper-inset) .875rem .75rem;
  background: repeating-linear-gradient(transparent 0 calc(var(--rule-spacing) - 4px), var(--rule) calc(var(--rule-spacing) - 4px) calc(var(--rule-spacing) - 3.5px), transparent calc(var(--rule-spacing) - 3.5px) var(--rule-spacing));
  pointer-events: none;
}
blockquote p { position: relative; line-height: var(--rule-spacing); white-space: pre-line; overflow-wrap: anywhere; }
article > p { font-size: var(--secondary-size); line-height: 1.65; color: var(--secondary); }
ul { list-style: none; padding: 0; border-top: .5px solid var(--separator); }
li { --note-color: var(--note-dark); display: flex; align-items: center; gap: .875rem; padding-block: .6875rem; border-bottom: .5px solid var(--separator); }
li i { flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: .5px solid color-mix(in srgb, var(--foreground) 15%, transparent); background: radial-gradient(ellipse at 35% 0%, #ffffff38, transparent 65%), linear-gradient(#ffffff0d, #0000000d), color-mix(in srgb, var(--note-color) 65%, var(--paper)); box-shadow: inset 0 1px 1px #ffffff55, inset 0 -1px 1px #ffffff18; -webkit-backdrop-filter: blur(.5rem) saturate(1.3); backdrop-filter: blur(.5rem) saturate(1.3); }
li > span { line-height: 1.3; }
li small { display: block; margin-top: .25rem; }
data { margin-left: auto; color: var(--secondary); font-variant-numeric: tabular-nums; }
nav { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; width: max-content; justify-self: center; padding-block: var(--space); }
nav button { display: grid; place-items: center; width: var(--control-size); height: var(--control-size); padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; transition: background .15s ease; }
nav button:hover { background: color-mix(in srgb, var(--foreground) 8%, transparent); }
nav button:active { background: color-mix(in srgb, var(--foreground) 16%, transparent); }
nav span { width: var(--space); height: var(--space); border-radius: 50%; background: var(--secondary); opacity: .45; }
nav [aria-current="true"] span { background: var(--foreground); opacity: 1; }
#slide-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer { color: var(--secondary); font-size: var(--caption); line-height: 1.6; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* A square native coordinate space keeps every contour proportional. */
#bottle { position: relative; width: var(--bottle-size); aspect-ratio: 1; margin: 0; grid-area: 1 / 1; isolation: isolate; }
#bottle > div, #bottle > svg { position: absolute; }
.bottle-halo { inset: -35%; pointer-events: none; }
.glow-wide::before, .glow-close::before {
  content: ""; position: absolute; inset: 20.588235%;
  background: conic-gradient(from var(--glow-angle) at 50% 55%, var(--glow-stops));
  -webkit-mask: var(--glow-mask) center / 100% 100% no-repeat;
  mask: var(--glow-mask) center / 100% 100% no-repeat;
  animation: glow-turn 16s linear infinite;
}
.glow-wide { --glow-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201%201%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%22.14%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M.395%20.305H.605L.61%20.335C.615%20.365%20.685%20.36%20.685%20.385V.925Q.685%20.935%20.675%20.935H.325Q.315%20.935%20.315%20.925V.385C.315%20.36%20.385%20.365%20.39%20.335Z%22%2F%3E%3Cpath%20d%3D%22M.315%20.075H.685V.14C.635%20.15%20.615%20.165%20.615%20.205V.30Q.615%20.31%20.605%20.31H.395Q.385%20.31%20.385%20.30V.205C.385%20.165%20.365%20.15%20.315%20.14Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); filter: blur(calc(var(--bottle-size) * .12)); opacity: .55; animation: glow-breathe 6s ease-in-out infinite; }
.glow-close { --glow-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201%201%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%22.035%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M.395%20.305H.605L.61%20.335C.615%20.365%20.685%20.36%20.685%20.385V.925Q.685%20.935%20.675%20.935H.325Q.315%20.935%20.315%20.925V.385C.315%20.36%20.385%20.365%20.39%20.335Z%22%2F%3E%3Cpath%20d%3D%22M.315%20.075H.685V.14C.635%20.15%20.615%20.165%20.615%20.205V.30Q.615%20.31%20.605%20.31H.395Q.385%20.31%20.385%20.30V.205C.385%20.165%20.365%20.15%20.315%20.14Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); filter: blur(calc(var(--bottle-size) * .04)); opacity: .65; }

.bottle-body {
  inset: 0;
  clip-path: url(#body-clip);
  background: linear-gradient(90deg, #ffffff19 30%, #ffffff38 31.8%, #ffffff0b 34%, #ffffff05 50%, #ffffff12 66%, #ffffff45 68.3%, #ffffff12 70%), linear-gradient(180deg, transparent 32%, #ffffff26 39%, #ffffff05 43%, #ffffff09 84%, #ffffff29 91%, #ffffff7a 93.3%, #ffffff10 94%);
  -webkit-backdrop-filter: blur(.5rem) saturate(1.3);
  backdrop-filter: blur(.5rem) saturate(1.3);
}
.liquid { width: 31%; height: 45%; left: 34.5%; top: 41.25%; clip-path: url(#liquid-clip); overflow: hidden; background: var(--scent-3); }
.scent-field {
  position: absolute; inset: 0;
  background: var(--artwork) center / cover no-repeat;
  animation: scent-drift 60s linear infinite;
}

.liquid-glass {
  position: absolute; inset: 0;
  background: linear-gradient(103deg, #ffffff8a, #ffffff10 7%, transparent 16%, #ffffff08 65%, #ffffff40 98%), linear-gradient(180deg, #ffffff75, transparent 3%, transparent 88%, #ffffff28 97%, #ffffff80);
  box-shadow: inset 0 1px 1px #ffffffe0, inset 1px 0 2px #ffffff80, inset -1px 0 2px #00000070;
  border-radius: 2px 2px 16% 16% / 2px 2px 10% 10%;
}
.bottle-reflections {
  inset: 0; clip-path: url(#body-clip); pointer-events: none;
  background: radial-gradient(ellipse 18% 3% at 38% 38%, #ffffff4d, transparent), radial-gradient(ellipse 18% 3% at 63% 38%, #ffffff40, transparent), linear-gradient(90deg, transparent 31.4%, #ffffff55 31.6%, transparent 32.3%, transparent 67.6%, #ffffff40 68.2%, transparent 68.5%);
}
.bottle-cap {
  z-index: 2; inset: 0; clip-path: url(#cap-clip);
  background: linear-gradient(180deg, #656568 7.5%, #111113 8.2%, #070709 12.9%, #1c1c1e 14.2%, #0d0d10 15.5%, #303033 18.3%, #171719 20.8%, #080809 23%, #080809 29.6%, #303033 31%);
}
#bottle > svg { z-index: 1; inset: 0; width: 100%; height: 100%; fill: none; stroke: #ffffff45; stroke-width: .0015; pointer-events: none; }

@property --glow-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes glow-turn { to { --glow-angle: 360deg; } }
@keyframes glow-breathe { 0%, 100% { opacity: .5; } 50% { opacity: .65; } }
@keyframes scent-drift { from { transform: rotate(0deg) scale(1.77); } to { transform: rotate(360deg) scale(1.77); } }
.glow-wide, .glow-close { position: absolute; inset: 0; }
:root[data-theme="light"] { color-scheme: light; --background: #fff; --foreground: #000; --secondary: #3c3c4399; --paper: #f2f2f7; --separator: #3c3c434a; --rule: #3c3c434a; --control: #f2f2f7d9; }
:root[data-theme="light"] #examples { --scent-1: var(--scent-1-light); --scent-2: var(--scent-2-light); --scent-3: var(--scent-3-light); --scent-4: var(--scent-4-light); }
:root[data-theme="light"] .bottle-halo { opacity: .75; }
:root[data-theme="light"] .bottle-body { background: linear-gradient(90deg, #00000004 31%, #00000016 31.8%, #ffffff90 33.5%, #ffffff05 50%, #ffffff70 66%, #00000016 68.3%, transparent 69%), linear-gradient(180deg, transparent 33%, #00000012 39%, #ffffff40 44%, #00000004 85%, #00000019 92%, #ffffffa0 93.3%, transparent 94%); }
:root[data-theme="light"] #bottle > svg { stroke: #00000035; }

@media (max-width: 1100px) and (min-width: 901px) { #examples { column-gap: 1.5rem; } #bottle-stage { --bottle-size: 26.5rem; } }
@media (max-width: 900px) {
  :root { --content-width: 34.5rem; }
  body > header { gap: var(--space); }
  h1 { font-size: 2rem; }
  main > header { margin-bottom: var(--section-gap); }
  #examples { grid-template-columns: minmax(0, 1fr); }
  #bottle-stage { --bottle-size: 24rem; height: calc(var(--bottle-size) - 1.5rem); }
  nav { margin-bottom: var(--section-gap); }
  article { grid-column: 1; grid-row: 3; min-height: 0; }
}
@media (max-width: 360px) { #bottle-stage { --bottle-size: 21.5rem; } }
:root[data-theme="light"] li { --note-color: var(--note-light); }

@media (prefers-reduced-motion: reduce) { .scent-field, .glow-wide, .glow-wide::before, .glow-close::before { animation: none; } nav button { transition: none; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  label, li i, .bottle-body { -webkit-backdrop-filter: none; backdrop-filter: none; }
  label { background: var(--paper); }
}
@media (prefers-contrast: more) { :root[data-theme] { --secondary: var(--foreground); --separator: currentColor; } nav span { opacity: .7; } #bottle > svg { stroke: var(--foreground); stroke-width: .003; } }

#appearance { display: grid; place-items: center; width: var(--control-size); height: var(--control-size); padding: 0; border: .5px solid var(--separator); border-radius: 50%; cursor: pointer; }
#appearance:hover { background: var(--paper); }
#appearance:active { opacity: .7; }
#appearance svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#appearance svg:last-child { display: none; }
:root[data-theme="dark"] #appearance svg:first-child { display: none; }
:root[data-theme="dark"] #appearance svg:last-child { display: block; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { #appearance { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); } }
