:root {
  color-scheme: light;
  --red: #870108;
  --cream: #efdac4;
  --ink: #241411;
  --night: #1d1210;
  --line: rgb(135 1 8 / 22%);
  --light-line: rgb(239 218 196 / 29%);
  --body: Satoshi, system-ui, sans-serif;
  --display: "El Messiri", Georgia, serif;
  --wordmark: Jaini, "El Messiri", Georgia, serif;
  --gutter: clamp(1.125rem, 4vw, 4.5rem);
  --section-space: clamp(3.75rem, 8vw, 7rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.shell { width: min(100%, 105rem); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; transform: translateY(-150%); background: white; padding: .6rem 1rem; }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 4.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.signature { display: inline-flex; align-items: center; gap: .55rem; width: max-content; color: var(--red); }
.signature img { width: 2rem; height: auto; }
.signature span { font: 2.05rem/.9 var(--wordmark); }
.nav-sections { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 3rem); }
.nav-sections a, .text-link, .back-top { text-underline-offset: .3em; }
.nav-sections a:hover, .back-top:hover { text-decoration: underline; }
.nav-contact { justify-self: end; }
.pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.7rem;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 99rem;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.2;
  background: transparent;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.pill-outline { color: var(--red); border-color: var(--line); }
.pill-outline:hover, .pill-red { color: var(--cream); background: var(--red); }
.pill-red:hover { background: #620107; }
.pill-cream { color: var(--red); background: var(--cream); }
.pill-cream:hover { background: #f9eddf; }
.controls { display: flex; align-items: center; gap: .5rem; }
.control {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--red);
  transition: color .2s ease, background-color .2s ease;
}
.control:hover { color: var(--cream); background: var(--red); }
.chevron { width: .48rem; height: .48rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateX(-12%) rotate(45deg); }
.chevron.left { transform: translateX(12%) rotate(-135deg); }
.count { min-width: 3.5rem; text-align: center; font-size: .83rem; font-variant-numeric: tabular-nums; }

.hero-stage {
  isolation: isolate;
  overflow: clip;
  position: relative;
  height: clamp(29rem, 70svh, 46rem);
  min-width: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 49%, #fff2df 0, rgb(255 241 224 / 45%) 29%, transparent 66%);
}
.hero-wordmark {
  position: relative;
  z-index: -1;
  color: var(--red);
  font: 400 clamp(9rem, 29vw, 32rem)/.8 var(--wordmark);
  letter-spacing: -.042em;
  white-space: nowrap;
  transform: translateX(-.02em);
  user-select: none;
}
.stage-rings {
  position: absolute;
  width: min(78%, 65rem);
  height: 75%;
  top: 13%;
  left: 50%;
  transform: translateX(-50%) rotate(-9deg);
  border: 1px solid rgb(135 1 8 / 21%);
  border-radius: 50%;
  z-index: -2;
  pointer-events: none;
}
.stage-rings::after {
  content: "";
  position: absolute;
  inset: 5% -3%;
  border: 1px dashed rgb(135 1 8 / 17%);
  border-radius: 50%;
  transform: rotate(18deg);
}
.bottle-shadow {
  position: absolute;
  left: 50%;
  bottom: 8.5%;
  width: clamp(8rem, 19vw, 17rem);
  height: 1.125rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgb(66 21 10 / 37%), transparent 72%);
  filter: blur(7px);
}
.bottle-area {
  position: absolute;
  inset: 7% 0 13%;
  width: min(66%, 37rem);
  perspective: 65rem;
  cursor: grab;
  margin-inline: auto;
  touch-action: pan-y;
  user-select: none;
}
.bottle-area:active { cursor: grabbing; }
.bottle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: rotateY(var(--turn, 0deg)) rotateZ(var(--lean, -8deg)) translateY(var(--rise, 0px));
  filter: drop-shadow(.25rem .7rem .8rem rgb(59 19 8 / 24%));
}
.hero-bottom {
  position: relative;
  min-height: 5.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: .8rem;
  border-top: 1px solid var(--line);
}

.eyebrow { color: var(--red); font-size: .82rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.section-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .46fr); align-items: end; gap: 1.4rem 4vw; }
.section-lead > p { max-width: 30rem; padding-bottom: .35rem; }
.section-lead .eyebrow, .contact .eyebrow { margin-bottom: 1.1rem; }
.display { font: 500 clamp(3.1rem, 7vw, 7rem)/.94 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.origins, .process, .artisans, .samples { padding-block: var(--section-space); }
.origins { color: var(--cream); background: var(--red); }
.origins .eyebrow, .contact .eyebrow { color: #f4ccbd; }
.origins-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(.7rem, 2.1vw, 1.75rem);
  margin: clamp(1.9rem, 4vw, 3.75rem) 0 1.75rem;
}
.origin-feature { position: relative; min-width: 0; min-height: 19rem; isolation: isolate; overflow: hidden; border-radius: .24rem; background: #3e1716; }
.origin-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.origin-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 2%, rgb(32 14 11 / 88%) 88%); }
.origin-feature > div { display: grid; gap: .25rem; align-content: end; padding: clamp(1rem, 2.8vw, 2.4rem); min-height: 100%; }
.origin-feature h3 { font: 600 clamp(2.5rem, 4.9vw, 4.5rem)/.95 var(--display); }
.origin-feature p { max-width: 23rem; }
.origin-plus { align-self: center; font: 400 clamp(2.5rem, 5.2vw, 5rem)/1 var(--display); }

.process { color: var(--cream); background: var(--night); overflow: hidden; }
.process .eyebrow { color: #e8ad9b; }
.process-toolbar { margin: clamp(1.65rem, 3.8vw, 3.2rem) 0 1rem; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 1rem; }
.process-toolbar > p { font-size: .87rem; color: #e6cbb2; }
.process-toolbar .controls { justify-self: end; }
.process .control { color: var(--cream); border-color: var(--light-line); }
.process .control:hover { color: var(--red); background: var(--cream); }
.process-options { display: flex; justify-self: start; border: 1px solid var(--light-line); border-radius: 9rem; padding: .2rem; }
.process-options button { background: transparent; border: 0; border-radius: 9rem; padding: .45rem 1.05rem; min-height: 2.4rem; }
.process-options button:hover { background: rgb(239 218 196 / 12%); }
.process-options button[aria-pressed="true"] { background: var(--cream); color: var(--night); }
.process-window {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.process-window::-webkit-scrollbar { display: none; }
.process-window.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.process-card {
  flex: 0 0 min(100%, calc(100% - 4rem));
  scroll-snap-align: start;
  padding: clamp(1.2rem, 3vw, 2.75rem);
  border: 1px solid var(--light-line);
  border-radius: .4rem;
  background: #30201c;
}
.process-card.mahua-card { background: #541b1c; }
.process-card > h3 { font: 500 clamp(2.15rem, 4.6vw, 4.55rem)/1 var(--display); letter-spacing: -.045em; margin-bottom: 1.2rem; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--light-line);
}
.mahua-card .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-grid li { min-width: 0; padding: .85rem clamp(.45rem, 1.2vw, 1rem) 0; }
.process-grid li:first-child { padding-left: 0; }
.process-grid li + li { border-left: 1px solid var(--light-line); }
.process-grid img { width: 100%; height: clamp(6.5rem, 11vw, 11rem); object-fit: contain; margin-bottom: .85rem; }
.process-grid h4 { font: 600 clamp(1.15rem, 1.75vw, 1.65rem)/1.1 var(--display); margin-bottom: .3rem; }
.process-grid p { color: #f0d4be; font-size: .91rem; }

.artisans .display, .samples .display { color: var(--red); }
.photo-grid, .sample-grid { display: grid; gap: clamp(1rem, 2vw, 2rem) clamp(.7rem, 1.6vw, 1.5rem); margin-top: clamp(1.8rem, 4.3vw, 3.6rem); }
.photo-grid { grid-template-columns: 1fr 1.25fr 1fr; }
.photo-open { display: block; position: relative; overflow: hidden; padding: 0; border: 0; width: 100%; background: #c8ad98; cursor: zoom-in; }
.photo-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.photo-open:hover img { transform: scale(1.035); }
.photo-grid .photo-open { height: clamp(11rem, 23vw, 23rem); }
.photo-grid .photo-open:first-child img { object-position: 48% 52%; }
.field-reading { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.field-reading summary { cursor: pointer; width: fit-content; color: var(--red); font-weight: 700; }
.field-reading ul { margin-bottom: 0; }
.field-reading a, .text-link { text-decoration: underline; text-underline-offset: .22em; }
.samples { background: #e4c8ad; }
.sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sample-grid .photo-open { aspect-ratio: 4/5; }

.contact { color: var(--cream); background: var(--red); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 5vw, 5.6rem); padding-block: var(--section-space); }
.contact h2 { margin-bottom: .85rem; }
.contact-copy > p:not(.eyebrow) { max-width: 26rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.45rem 0 1rem; }
.contact .pill-outline { color: var(--cream); border-color: var(--light-line); }
.contact .pill-outline:hover { color: var(--red); background: var(--cream); }
.contact-photo { aspect-ratio: 4/3; border-radius: .22rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5.5rem; padding-block: 1rem; }
.footer-inner p, .back-top { font-size: .9rem; }
.back-top { color: var(--red); }

dialog { width: min(calc(100% - 2rem), 34rem); max-height: calc(100% - 2rem); padding: 3rem 2rem 1.5rem; border: 1px solid var(--red); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgb(29 18 16 / 76%); }
dialog .display { font-size: clamp(2.25rem, 6.5vw, 3.25rem); color: var(--red); margin-bottom: .7rem; }
.close-dialog { position: absolute; top: .6rem; right: .6rem; font-size: 1.4rem; }
.photo-dialog { width: max-content; max-width: calc(100% - 2rem); padding: 3.6rem .9rem .9rem; }
.photo-dialog img { width: auto; max-width: 100%; max-height: 73vh; margin-inline: auto; object-fit: contain; }
.inquiry-form { display: grid; gap: .8rem; margin-top: 1.2rem; }
.inquiry-form label { display: grid; gap: .25rem; color: var(--red); font-weight: 700; }
.inquiry-form textarea, .inquiry-form select { font: 1rem var(--body); width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: .25rem; color: var(--ink); background: #faecdc; }
.inquiry-form textarea { resize: vertical; }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
#contact-route, #inquiry-status { font-size: .9rem; }
#inquiry-status:empty { display: none; }

@media (max-width: 50rem) {
  .process-grid, .mahua-card .process-grid { display: block; }
  .process-grid li, .process-grid li:first-child { display: grid; grid-template-columns: clamp(4.6rem, 14vw, 7rem) 1fr; align-items: center; gap: 1rem; padding: .6rem 0; }
  .process-grid li + li { border-top: 1px solid var(--light-line); border-left: 0; }
  .process-grid img { height: 4.65rem; margin: 0; }
}
@media (max-width: 45rem) {
  .nav { grid-template-columns: 1fr auto; gap: 0 .75rem; padding-block: .65rem 0; }
  .nav-sections { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .4rem; margin-top: .65rem; padding-block: .63rem; border-top: 1px solid var(--line); font-size: .88rem; }
  .signature span { font-size: 1.8rem; }
  .signature img { width: 1.65rem; }
  .nav-contact { min-height: 2.25rem; }
  .hero-stage { height: clamp(22rem, 57svh, 34rem); }
  .hero-wordmark { font-size: clamp(6.5rem, 30vw, 14rem); }
  .stage-rings { width: 91%; height: 66%; top: 17%; }
  .bottle-area { width: 91%; }
  .hero-bottom { padding-block: .85rem 1rem; }
  .section-lead { grid-template-columns: minmax(0, 1fr); gap: .95rem; }
  .section-lead .eyebrow { margin-bottom: .75rem; }
  .display { font-size: clamp(2.95rem, 10vw, 4.5rem); }
  .origins-pair { grid-template-columns: minmax(0, 1fr); }
  .origin-feature { min-height: 15.5rem; }
  .origin-plus { justify-self: center; }
  .process-toolbar { grid-template-columns: 1fr auto; gap: .55rem; }
  .process-toolbar > p { grid-row: 2; grid-column: 1 / -1; }
  .process-card { flex-basis: calc(100% - 1rem); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid .photo-open { height: clamp(7.4rem, 34vw, 15rem); }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-photo { grid-row: 1; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
  .footer-inner p { grid-row: 2; grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
