/* Homepage: pour-dissolve hero, service drivers, the drying line, size on the wall, how a pour is made, buyers, post. */

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; background: var(--night); color: #fff; overflow: clip; isolation: isolate; }
.hero__stage { position: absolute; inset: 0; z-index: -2; }
.hero__poster, .hero__fallback img, .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { object-position: 62% 50%; }
.hero__gl { opacity: 0; transition: opacity .6s; }
.hero.gl-on .hero__gl { opacity: 1; }
.hero__fallback img { opacity: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(27,12,23,.78) 0%, rgba(27,12,23,.5) 9%, rgba(27,12,23,0) 24%),
    linear-gradient(18deg, rgba(27,12,23,.84) 0%, rgba(27,12,23,.5) 30%, rgba(27,12,23,0) 56%); }
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(120px, 17vh, 190px); }
.hero__title { font-size: clamp(2.9rem, 6.2vw, 6.4rem); line-height: .98; letter-spacing: -.02em; color: #fff; margin-bottom: .32em; font-weight: 580; text-shadow: 0 2px 30px rgba(27,12,23,.35); }
.hero__title .pour { text-shadow: none; }
.hero__lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: rgba(255,255,255,.9); margin-bottom: 1.6em; max-width: 120ch; }
.hero__ui { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vh, 40px); display: grid; grid-template-columns: 1fr minmax(160px, 320px) auto; gap: 24px; align-items: center; }
.hero__meta { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.hero__count { white-space: nowrap; flex: none; width: 4.4rem; }
.hero__cap { flex: 1 1 auto; min-width: 0; }
.hero__count { margin: 0; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; font-size: 1.5rem; font-weight: 520; font-variant-numeric: tabular-nums; }
.hero__of { color: rgba(255,255,255,.62); font-size: 1rem; }
.hero__cap { margin: 0; overflow: clip; color: rgba(255,255,255,.88); font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; padding-bottom: .15em; }
.hero__cap span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__bar { height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.hero__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__ctrl { display: flex; gap: 10px; color: #fff; }
.hero__ctrl .icon-btn { width: 48px; height: 48px; border-color: rgba(255,255,255,.6); }
.hero__ctrl .i-play { display: none; }
.hero.is-paused .hero__ctrl .i-play { display: inline; }
.hero.is-paused .hero__ctrl .i-pause { display: none; }
.hero__ctrl .ico { display: block; }
.js .hero__title, .js [data-hero-fade] { opacity: 0; }
@media (max-width: 760px) {
  .hero { min-height: 560px; }
  .hero__content { bottom: 118px; }
  .hero__title { font-size: clamp(2.4rem, 10.4vw, 3.4rem); }
  .hero__lede { font-size: 1.02rem; margin-bottom: 1.2em; }
  .hero__ui { grid-template-columns: 1fr auto; gap: 12px 14px; bottom: 18px; }
  .hero__bar { grid-column: 1 / -1; order: 3; }
  .hero__cap { font-size: .9rem; }
  .hero__ctrl .icon-btn { width: 44px; height: 44px; }
  .hero__scrim { background: linear-gradient(180deg, rgba(27,12,23,.8) 0%, rgba(27,12,23,.5) 10%, rgba(27,12,23,0) 22%), linear-gradient(0deg, rgba(27,12,23,.9) 0%, rgba(27,12,23,.6) 45%, rgba(27,12,23,0) 75%); }
  .hero .btns { flex-wrap: nowrap; gap: 10px; }
  .hero .btns .btn { flex: 1 1 auto; min-height: 50px; padding: 0 14px; font-size: .95rem; }
  .hero .btns .btn .ico { display: none; }
  .hero__content { bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .js .hero__title, .js [data-hero-fade] { opacity: 1; } }

/* ---------- Drivers ---------- */
.drivers { overflow: clip; }
.drivers__head { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.drivers__head h2 { margin: 0; }
.drivers__head .lede { margin: 0; }
.drivers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.drivers { padding: clamp(64px, 7vw, 96px) 0; }
.driver { position: relative; display: block; height: min(56vh, 560px); color: #fff; text-decoration: none; border-radius: var(--r-one); overflow: hidden; isolation: isolate; }
.driver--pour { margin-top: clamp(0px, 5vh, 48px); height: calc(min(56vh, 560px) - clamp(0px, 5vh, 48px)); }
.driver__media { position: absolute; inset: -9% 0; z-index: -2; border-radius: 0; }
.driver__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.driver:hover .driver__img, .driver:focus-visible .driver__img { transform: scale(1.06); }
.driver::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(27,12,23,.88) 0%, rgba(27,12,23,.35) 46%, rgba(27,12,23,0) 70%); }
.driver__wash { position: absolute; inset: 0; z-index: -1; background: url("../img/pour-fill.webp") 50% 50% / cover; mix-blend-mode: color; opacity: 0; clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .9s var(--ease), opacity .4s; }
.driver:hover .driver__wash, .driver:focus-visible .driver__wash { opacity: .55; clip-path: circle(140% at var(--mx, 50%) var(--my, 50%)); }
.driver__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; }
.driver__title { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 560; font-size: clamp(1.8rem, 2.6vw, 2.15rem); line-height: 1.05; }
.driver__text { color: rgba(255,255,255,.88); max-width: 60ch; }
.driver__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; margin-top: 6px; }
.driver__go .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--rasp); transition: transform .4s var(--ease), background .3s; }
.driver:hover .driver__go .ico { transform: translateX(6px); background: var(--gold); color: var(--ink); }
@media (max-width: 760px) {
  .drivers__head, .drivers__grid { grid-template-columns: 1fr; }
  .driver, .driver--pour { height: 64vh; max-height: 520px; margin-top: 0; }
}

/* ---------- The drying line ---------- */
.line { position: relative; background: var(--paper); overflow: clip; }
.line__pin { position: relative; min-height: 100svh; padding: calc(var(--head-h) + 10px) 0 clamp(24px, 4vh, 48px); display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3vh, 36px); }
.line__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.line__head h2 { margin-bottom: .2em; }
.line__head .lede { margin: 0; }
.line__count { margin: 0; flex: none; text-align: right; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 540; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.line__subject { display: block; margin-top: 8px; font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rasp); }
.line__viewport { position: relative; overflow-x: clip; overflow-y: visible; margin: 0 max(var(--gut), calc((100% - var(--wrap)) / 2)); padding-top: 18px; margin-top: -18px; }
.line__track { --slot: calc(min(100vw - 2 * var(--gut), var(--wrap)) / 4); position: relative; width: calc(var(--slot) * var(--n)); will-change: transform; }
.line__string { position: absolute; left: 0; top: 0; width: calc(var(--slot) * var(--n)); height: 40px; overflow: visible; }
.line__string path { fill: none; stroke: #7A5E49; stroke-width: 2.2; }
.line__prints { list-style: none; margin: 0; padding: 0; display: flex; }
.print { flex: none; width: var(--slot); display: flex; justify-content: flex-start; padding-top: 6px; transform-origin: 50% 0; }
.print__card { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); transform-origin: 50% 0; width: min(84%, calc(min(50vh, 470px) * var(--arn))); }
.print__peg { position: absolute; top: -14px; left: 50%; width: 44px; height: 44px; translate: -50% 0; z-index: 2; filter: drop-shadow(0 2px 2px rgba(42,20,36,.3)); }
.print__peg::before { content: ""; position: absolute; left: 50%; top: 14px; width: 10px; height: 26px; translate: -50% 0; background: linear-gradient(90deg, #C79B6C, #E2BC8F 50%, #B88A5C); border-radius: 2px; z-index: -1; }
.print__peg svg { width: 100%; height: 100%; }
.print__peg .daisy__petals { fill: #fff; stroke: rgba(42,20,36,.25); stroke-width: .6; }
.print__paper { display: block; width: 100%; padding: 10px 10px 12px; background: #FBFAF8; box-shadow: 0 18px 30px -18px rgba(42,20,36,.45), 0 2px 6px rgba(42,20,36,.12); border-radius: 0; }
.print__img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.print__tag { display: grid; justify-items: center; gap: 2px; margin-top: 14px; text-align: center; }
.print__title { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; font-size: 1.12rem; font-weight: 540; line-height: 1.2; }
.print__see { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 650; color: var(--rasp-deep); opacity: .78; transition: opacity .35s, transform .35s var(--ease); }
.print__see .ico { width: 16px; height: 16px; }
.print__card:hover .print__see, .print__card:focus-visible .print__see { opacity: 1; transform: translateX(4px); }
.no-js .line__track, .no-pin .line__track { width: auto; }
.no-js .line__string, .no-pin .line__string { display: none; }
.no-js .line__prints, .no-pin .line__prints { flex-wrap: wrap; row-gap: 48px; }
.no-js .print, .no-pin .print { width: 33.333%; justify-content: center; border-top: 2px solid #7A5E49; padding-top: 18px; }
.no-js .line__pin, .no-pin .line__pin { min-height: 0; }
@media (max-width: 760px) { .no-js .print, .no-pin .print { width: 50%; } .no-js .print__card, .no-pin .print__card { width: 88%; } }
@media (max-width: 760px) {
  .line__track { --slot: 66vw; }
  .line__head { flex-direction: column; align-items: start; gap: 12px; }
  .line__count { text-align: left; font-size: 1.8rem; display: flex; align-items: baseline; gap: 12px; }
  .line__subject { margin: 0; }
  .print__card { width: min(86%, calc(46svh * var(--arn))); }
  .print__title { white-space: nowrap; font-size: 1rem; }
}

/* ---------- Size on the wall ---------- */
.wallsize { padding: 0; overflow: clip; }
.wallsize__pin { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head-h) + 16px) 0 40px; }
.wallsize__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.wallsize__copy h2 { margin-bottom: .4em; }
.wallsize__sizes { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wallsize__sizes li { padding: 12px 12px 10px; border: 1.5px solid var(--line-night); border-radius: var(--r-one-sm); transition: background .4s, border-color .4s, color .4s; }
.wallsize__sizes strong { display: block; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; font-size: 1.6rem; font-weight: 560; line-height: 1.1; color: #fff; }
.wallsize__sizes span { font-size: .86rem; color: var(--on-night-soft); }
.wallsize__sizes li.is-on { background: var(--gold); border-color: var(--gold); }
.wallsize__sizes li.is-on strong, .wallsize__sizes li.is-on span { color: var(--ink); }
.wallsize__room { position: relative; width: min(100%, calc(var(--media-cap) * 16 / 9)); aspect-ratio: 2752 / 1536; border-radius: var(--r-one); overflow: hidden; justify-self: end; }
.wallsize__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wallsize__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 34% 70% at var(--lx, 20%) 32%, rgba(255,236,200,.34), transparent 70%); mix-blend-mode: screen; }
.wallsize__print { position: absolute; left: 50.15%; bottom: 54.43%; width: var(--w); height: var(--h); translate: -50% 0; background: #1E1A1C; padding: calc(var(--w) * 0); box-shadow: 0 1.2vw 2vw -0.6vw rgba(20,10,10,.55); }
.wallsize__mount { position: absolute; inset: 6.5%; background: #F5F3EF; padding: 13%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.wallsize__photo { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.wallsize__label { position: absolute; left: 18px; bottom: 16px; margin: 0; padding: 8px 16px; border-radius: var(--r-pill); background: rgba(27,12,23,.78); color: #fff; font-size: .92rem; font-weight: 600; backdrop-filter: blur(6px); }
.wallsize__label span { color: var(--gold); font-weight: 750; }
@media (max-width: 900px) {
  .wallsize__grid { grid-template-columns: 1fr; }
  .wallsize__room { justify-self: stretch; width: 100%; }
  .wallsize__sizes { margin: 18px 0 20px; }
  .wallsize__sizes strong { font-size: 1.25rem; }
  .wallsize__sizes span { font-size: .76rem; }
  .wallsize__pin { padding-top: calc(var(--head-h) + 8px); }
}

/* ---------- How a pour is made ---------- */
.pour-made { overflow: clip; }
.pour-made__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.pour-made__steps { list-style: none; margin: 22px 0 22px; padding: 0; display: grid; gap: 14px; }
.pour-made__steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pour-made__steps h3 { font-size: 1.35rem; margin: 4px 0 4px; }
.pour-made__steps p { margin: 0; color: var(--ink-soft); }
.pour-made__n { width: 52px; height: 52px; border-radius: var(--r-one-sm); display: grid; place-items: center; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.4rem; color: var(--ink); background: var(--mist); position: relative; overflow: hidden; isolation: isolate; }
.pour-made__n::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pour-fill.webp") 50% 50% / 300% auto; clip-path: circle(var(--fill, 0%) at 50% 50%); }
.pour-made__steps li.is-on .pour-made__n { color: #fff; text-shadow: 0 1px 6px rgba(27,12,23,.7); }
.pour-made__media { position: relative; height: min(66vh, 620px); }
.pour-made__circle { position: absolute; inset: 0; border-radius: var(--r-one); overflow: hidden; clip-path: circle(var(--r, 75%) at 52% 58%); }
.pour-made__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.pour-made__drip { position: absolute; left: 52%; top: 58%; width: 30%; height: auto; translate: -50% -50%; overflow: visible; pointer-events: none; }
.pour-made__drip circle { fill: none; stroke: var(--rasp); stroke-width: 1.5; stroke-dasharray: 4 7; transform-origin: 100px 100px; }
@media (max-width: 900px) {
  .pour-made__grid { grid-template-columns: 1fr; }
  .pour-made__media { height: min(40svh, 340px); order: -1; position: sticky; top: calc(var(--head-h) + 10px); z-index: 2; align-self: start; }
  .pour-made__media { background: var(--paper); box-shadow: 0 -14px 0 var(--paper), 0 0 0 var(--gut) var(--paper); }
  .pour-made__media::after { content: ""; position: absolute; left: calc(var(--gut) * -1); right: calc(var(--gut) * -1); top: 100%; height: 36px; background: linear-gradient(var(--paper), rgba(242,239,243,0)); pointer-events: none; }
}

/* ---------- Who buys ---------- */
.who__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.who__head h2, .who__head .lede { margin: 0; }
.who__panels { display: flex; gap: 14px; height: min(52vh, 500px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-one); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; transition: flex-grow .8s var(--ease); }
.panel.is-open { flex-grow: 2.6; }
.panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.panel.is-open .panel__img { transform: scale(1); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(27,12,23,.86), rgba(27,12,23,.2) 55%, rgba(27,12,23,.05)); }
.panel__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 8px; }
.panel__title { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-size: clamp(1.6rem, 2.2vw, 2.1rem); font-weight: 560; line-height: 1.05; }
.panel__text, .panel__go { max-width: none; }
.panel__text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.panel__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: #FFD27A; }
.panel__go .ico { width: 18px; height: 18px; }
.panel:not(.is-open) .panel__text { -webkit-line-clamp: 2; }
@media (max-width: 860px) {
  .who__head { grid-template-columns: 1fr; }
  .who__panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; height: 300px; }
}

/* ---------- Buying by post: stamps on a route ---------- */
.post { overflow: clip; background: var(--paper); }
.post__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.post__head h2, .post__head .lede { margin: 0; }
.post__route { position: relative; padding-top: 40px; }
.post__path { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.post__path path { fill: none; stroke: var(--rasp); stroke-width: 2; stroke-dasharray: 8 10; }
.post__stamps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.stamp { --c: var(--rasp); position: relative; padding: 11px; background: #FBF9FA; color: var(--ink);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 7px at 11px 11px, transparent 96%, #000) -11px -11px / 22px 22px;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 7px at 11px 11px, transparent 96%, #000) -11px -11px / 22px 22px;
  filter: drop-shadow(0 10px 18px rgba(42,20,36,.16)); }
.stamp__body { position: relative; height: 100%; padding: 26px 22px 22px; }
.stamp::before { content: ""; position: absolute; inset: 18px; border: 1.5px solid var(--c); pointer-events: none; }
.stamp--teal { --c: var(--teal); }
.stamp--gold { --c: var(--gold); }
.stamp .ico { width: 46px; height: 46px; color: var(--c); margin-bottom: 14px; }
.stamp h3 { font-size: 1.6rem; margin-bottom: .3em; }
.stamp p { margin: 0; color: var(--ink-soft); }
.stamp__n { position: absolute; right: 30px; top: 26px; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-size: 2.6rem; font-weight: 600; color: var(--c); line-height: 1; }
@media (max-width: 860px) {
  .post__head { grid-template-columns: 1fr; }
  .post__stamps { grid-template-columns: 1fr; }
  .post__path { display: none; }
  .post__route { padding-top: 0; }
}

/* ---------- CTA band ---------- */
.cta-band__inner { text-align: left; }
.cta-band__inner p { max-width: 120ch; }

/* Postmark cancellation waves drifting behind the stamps */
.post { isolation: isolate; }
.post::before { content: ""; position: absolute; left: -10%; right: -10%; top: 46%; height: 220px; z-index: -1; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='220' viewBox='0 0 240 220'%3E%3Cg fill='none' stroke='%23B5375A' stroke-width='2.2' stroke-opacity='.35'%3E%3Cpath d='M0 30 q30 -18 60 0 t60 0 t60 0 t60 0'/%3E%3Cpath d='M0 70 q30 -18 60 0 t60 0 t60 0 t60 0'/%3E%3Cpath d='M0 110 q30 -18 60 0 t60 0 t60 0 t60 0'/%3E%3Cpath d='M0 150 q30 -18 60 0 t60 0 t60 0 t60 0'/%3E%3Cpath d='M0 190 q30 -18 60 0 t60 0 t60 0 t60 0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 220px repeat-x;
  animation: post-waves 30s linear infinite; }
@keyframes post-waves { to { background-position: -480px 0; } }
@media (prefers-reduced-motion: reduce) { .post::before { animation: none; } }
