/* Baan Pinto. Palette and type come from the brief; see BRIEF.md. */

@font-face { font-family: 'Chonburi'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/chonburi-400-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Chonburi'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/chonburi-400-latin.woff2') format('woff2'); 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: 'Bai Jamjuree'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/bai-jamjuree-400-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Bai Jamjuree'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/bai-jamjuree-400-latin.woff2') format('woff2'); 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: 'Bai Jamjuree'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/bai-jamjuree-600-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Bai Jamjuree'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/bai-jamjuree-600-latin.woff2') format('woff2'); 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; }

:root {
  --paper: #F4EBDD;
  --ink: #2A211B;
  --jade: #2F6B57;
  --chilli: #C5412B;
  --brass: #B8894A;
  --teak: #7A4A2B;
  --paper-hi: #FBF6EC;
  --teak-deep: #1E130C;
  --jade-deep: #1F4A3C;
  --brass-hi: #E2C590;
  --rule: rgba(42, 33, 27, .16);
  --display: 'Chonburi', 'Thonburi', 'Noto Serif Thai', Georgia, serif;
  --text: 'Bai Jamjuree', 'Thonburi', 'Noto Sans Thai', system-ui, sans-serif;
  --gutter: clamp(20px, 5.5vw, 88px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: .7rem 1rem; border-radius: 10px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.8rem; border-radius: 999px; font: 600 1.06rem/1 var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s ease; }
/* cream enamel with a jade rolled rim, like the tins */
.btn--enamel { background: linear-gradient(180deg, #FFFCF4 0%, #F0E5CE 100%); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -3px 6px rgba(122, 74, 43, .18), 0 0 0 3px var(--jade), 0 16px 30px -12px rgba(0, 0, 0, .7); }
.btn--enamel:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -3px 6px rgba(122, 74, 43, .18), 0 0 0 3px var(--jade), 0 22px 34px -12px rgba(0, 0, 0, .75); }
.btn--enamel:active { transform: translateY(1px); }
.btn-text { appearance: none; border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0 .35rem; font: 600 .96rem/1 var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; isolation: isolate; color: var(--paper); background: radial-gradient(110% 85% at 58% 52%, #5A3720 0%, #33200F 48%, var(--teak-deep) 100%); }
.hero__placeholder { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; padding: 22vh 0 16vh 26vw; transition: opacity .6s ease; }
.hero__placeholder svg { height: min(56vh, 30rem); width: auto; opacity: .92; }
.hero.is-live .hero__placeholder { opacity: 0; }
.hero__stage { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.hero.is-live .hero__stage { opacity: 1; }
.hero.is-live.is-swapping .hero__stage { opacity: 0; transition-duration: .14s; }
.hero__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .6s ease; background: linear-gradient(90deg, rgba(20, 12, 7, .84) 0%, rgba(20, 12, 7, .52) 27%, rgba(20, 12, 7, 0) 54%), linear-gradient(180deg, rgba(20, 12, 7, .5) 0%, rgba(20, 12, 7, 0) 20%); }
.hero:not([data-state="closed"]) .hero__scrim { opacity: .3; }

.brand { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px var(--gutter); }
.brand__mark { display: inline-flex; align-items: baseline; gap: .65rem; color: var(--paper); text-decoration: none; }
.brand__mark span:first-child { font: 400 1.55rem/1.4 var(--display); }
.brand__mark span:last-child { font: 600 .74rem/1 var(--text); letter-spacing: .18em; text-transform: uppercase; opacity: .82; }
.brand__link { color: var(--paper); font: 600 .92rem/1 var(--text); text-decoration: none; padding: .7rem 0; border-bottom: 1.5px solid rgba(244, 235, 221, .5); }
.brand__link:hover { border-bottom-color: var(--paper); }

.hero__copy { position: absolute; z-index: 4; left: var(--gutter); top: 50%; width: min(31rem, 40vw); transform: translateY(-46%); pointer-events: none; transition: opacity .45s ease .15s, transform .7s var(--ease) .15s, visibility 0s; }
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero:not([data-state="closed"]) .hero__copy { opacity: 0; visibility: hidden; transform: translateY(-46%) translateX(-18px); transition: opacity .3s ease, transform .5s var(--ease), visibility 0s linear .3s; }
.hero__th { display: block; font: 400 clamp(3.4rem, 7.1vw, 6.5rem)/1.24 var(--display); white-space: nowrap; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero__en { display: block; max-width: 19ch; margin-top: .3em; font: 600 clamp(1.3rem, 1.95vw, 1.75rem)/1.28 var(--text); }
.hero__lede { max-width: 33ch; margin-top: 1rem; color: rgba(244, 235, 221, .84); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 2.1rem; }
.hero__more { color: var(--paper); font: 400 .98rem/1 var(--text); text-underline-offset: 5px; padding: .8rem 0; }

/* tier buttons: real buttons, pinned to each tin by the 3D scene */
.tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; appearance: none; border: 0; cursor: pointer; pointer-events: auto; display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .9rem .3rem .3rem; border-radius: 999px; background: rgba(251, 246, 236, .95); color: var(--ink); white-space: nowrap; font: 400 1.02rem/1.4 var(--display); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; will-change: transform; }
.hero[data-state="open"] .tag { opacity: 1; visibility: visible; transition: opacity .45s ease .55s, visibility 0s; }
.tag__n { display: grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: 50%; background: var(--jade); color: var(--paper); font: 600 .95rem/1 var(--text); }
.tag:hover .tag__n, .tag:focus-visible .tag__n { background: var(--chilli); }

.openbar { position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(20px, 5vh, 46px); display: flex; align-items: center; gap: 1.4rem; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.hero[data-state="open"] .openbar { opacity: 1; visibility: visible; transition: opacity .5s ease .6s, visibility 0s; }
.openbar__hint { font: 600 1.12rem/1.3 var(--text); }
.openbar .btn-text { color: var(--paper); }

/* ---------- the price-tag card ---------- */
.card { position: absolute; z-index: 6; right: var(--gutter); top: 50%; width: min(26rem, 38vw); color: var(--ink); opacity: 0; visibility: hidden; transform: translate(26px, -50%); filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .5)); transition: opacity .25s ease, transform .5s var(--ease), visibility 0s linear .25s; outline: none; touch-action: pan-y; }
.hero[data-state="focus"] .card { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .4s ease .28s, transform .7s var(--ease) .28s, visibility 0s; }
.card:focus-visible .card__body { outline: 3px solid var(--brass); outline-offset: -6px; }
.card__body { position: relative; padding: 1.35rem 1.6rem 1.05rem 3.1rem; background: var(--paper-hi); clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px), 0 30px); }
.card__eyelet { position: absolute; left: 13px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle, #24160E 0 4.5px, #8C6430 5px, #E2C590 7px, var(--brass) 9px, #7C5A2C 10px); }
.card__string { position: absolute; right: calc(100% - 24px); top: 50%; width: 120px; height: 90px; margin-top: -45px; pointer-events: none; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .95rem; }
.card__tier { display: inline-flex; align-items: center; gap: .55rem; color: var(--jade); font: 600 .76rem/1 var(--text); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }

/* a tiny pinto: four tiers, the current one filled */
.stack { display: inline-grid; gap: 2px; width: 15px; flex: none; }
.stack i { display: block; height: 4px; border-radius: 1.5px; box-shadow: inset 0 0 0 1.25px currentColor; opacity: .5; }
.stack i.on { background: currentColor; opacity: 1; }

.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(42, 33, 27, .09); }
.switch__opt { appearance: none; border: 0; cursor: pointer; min-height: 38px; padding: 0 .85rem; border-radius: 999px; background: transparent; color: rgba(42, 33, 27, .72); font: 600 .84rem/1 var(--text); white-space: nowrap; transition: background .25s ease, color .25s ease; }
.switch__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.card__flip { display: grid; perspective: 1100px; }
.card__face { grid-area: 1 / 1; min-width: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .65s var(--ease), opacity .3s ease; }
.card__face--back { transform: rotateY(180deg); opacity: 0; pointer-events: none; }
.card[data-side="inside"] .card__face--front { transform: rotateY(-180deg); opacity: 0; pointer-events: none; }
.card[data-side="inside"] .card__face--back { transform: none; opacity: 1; pointer-events: auto; }

.card__th { font: 400 clamp(1.85rem, 2.8vw, 2.55rem)/1.3 var(--display); }
.card__en { margin-top: .15rem; color: var(--jade); font: 600 1.06rem/1.35 var(--text); }
.card__line { margin-top: .75rem; color: rgba(42, 33, 27, .84); font-size: 1rem; line-height: 1.55; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.05rem; padding-top: .85rem; border-top: 1.5px dashed rgba(42, 33, 27, .28); }
.card__price { font: 400 2.25rem/1.1 var(--display); }
.card__back-name { font: 400 1.35rem/1.35 var(--display); }
.card__label { margin-top: .8rem; color: var(--jade); font: 600 .76rem/1 var(--text); letter-spacing: .13em; text-transform: uppercase; }
.card__inside { margin-top: .4rem; font-size: .98rem; line-height: 1.5; }
.card__nav { display: flex; align-items: center; gap: .55rem; margin-top: .95rem; }
.card__nav .btn-text { margin-left: auto; }
.arrow { appearance: none; cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(42, 33, 27, .34); background: transparent; color: var(--ink); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.arrow svg { width: 22px; height: 22px; }
.arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.spice { display: inline-flex; align-items: center; gap: .55rem; font: 600 .86rem/1 var(--text); color: rgba(42, 33, 27, .8); white-space: nowrap; }
.spice__dots { display: inline-flex; gap: 5px; }
.spice__dots i { display: block; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(197, 65, 43, .55); }
.spice__dots i.on { background: var(--chilli); box-shadow: none; }

/* ---------- sections ---------- */
.wrap { width: min(100% - 2 * var(--gutter), 66rem); margin-inline: auto; }
.sec { padding-block: clamp(4.2rem, 10vw, 8rem); }
.sec-head h2 { font-weight: 400; }
.sec-head h2 [lang="th"] { display: block; font: 400 clamp(2.3rem, 5.4vw, 4rem)/1.3 var(--display); }
.sec-head h2 .en { display: block; margin-top: .35rem; color: var(--jade); font: 600 clamp(.92rem, 1.3vw, 1.05rem)/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; }
.sec-head p { max-width: 44ch; margin-top: 1rem; }

.rows { list-style: none; margin: clamp(2rem, 5vw, 3.4rem) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto 5rem; align-items: center; gap: 0 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
/* a tin seen from above: the photo inside a jade rim */
.row__thumb { display: block; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: #E9DFC8; border: 4px solid var(--jade); box-shadow: 0 0 0 2px var(--paper-hi) inset, 0 10px 18px -10px rgba(42, 33, 27, .6); }
.row__tier { display: inline-flex; align-items: center; gap: .55rem; color: var(--jade); font: 600 .76rem/1 var(--text); letter-spacing: .13em; text-transform: uppercase; }
.row__body h3 { margin-top: .3rem; font: 400 clamp(1.4rem, 2.8vw, 2.05rem)/1.32 var(--display); }
.row__en { color: rgba(42, 33, 27, .76); }
.row__price { text-align: right; font: 400 1.7rem/1.1 var(--display); }
.rice { margin-top: 1.5rem; font-weight: 600; }
.full { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1.5rem; padding: 1.5rem clamp(1.2rem, 3vw, 2rem); border-radius: 20px; background: var(--jade); color: var(--paper); }
.full h3 { font: 400 clamp(1.5rem, 3vw, 2rem)/1.3 var(--display); }
.full p { opacity: .9; }
.full .full__price { opacity: 1; font: 400 clamp(2.1rem, 4.4vw, 3rem)/1.1 var(--display); }

.how { background: var(--jade-deep); color: var(--paper); }
.how .sec-head h2 .en { color: var(--brass-hi); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(2.4rem, 6vw, 4rem) 0 0; padding: 0; }
/* one string, three knots */
.step { position: relative; padding: 2rem 1.6rem 0 0; border-top: 1.5px dashed rgba(244, 235, 221, .42); }
.step::before { content: ""; position: absolute; left: 0; top: -7.5px; width: 13px; height: 13px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 0 5px var(--jade-deep); }
.step__when { font: 400 clamp(1.9rem, 3.5vw, 2.7rem)/1.15 var(--display); }
.step p + p { max-width: 25ch; margin-top: .65rem; color: rgba(244, 235, 221, .88); }

.where__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(2rem, 5vw, 3.4rem); padding-top: 1.8rem; border-top: 2px solid var(--ink); }
.where__big { font: 400 clamp(1.8rem, 3.6vw, 2.6rem)/1.3 var(--display); }
.areas { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 2rem; margin: 0; padding: 0; }
.areas span { display: block; }
.areas span:first-child { font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.3 var(--display); }
.areas span:last-child { color: rgba(42, 33, 27, .76); }

.order { background: radial-gradient(90% 120% at 50% 0%, #3A2413 0%, var(--teak-deep) 70%); color: var(--paper); text-align: center; }
.order h2 { font-weight: 400; }
.order h2 [lang="th"] { display: block; font: 400 clamp(2.5rem, 7vw, 5rem)/1.3 var(--display); }
.order h2 .en { display: block; max-width: 30ch; margin: .8rem auto 0; color: rgba(244, 235, 221, .86); font: 400 1.12rem/1.5 var(--text); }
.order .btn { margin-top: 2.2rem; min-width: 15rem; }
.foot { padding: 1.6rem var(--gutter) 2.4rem; background: var(--teak-deep); color: rgba(244, 235, 221, .62); border-top: 1px solid rgba(244, 235, 221, .12); text-align: center; font-size: .9rem; }

/* ---------- no WebGL: the menu rows carry the page ---------- */
.no-webgl .hero__stage, .no-webgl .tags, .no-webgl .openbar, .no-webgl .card { display: none; }

/* ---------- phone ---------- */
@media (max-width: 759px) {
  .hero__placeholder { padding: 30vh 0 18vh; }
  .hero__placeholder svg { height: 44vh; }
  .hero__scrim { background: linear-gradient(180deg, rgba(20, 12, 7, .88) 0%, rgba(20, 12, 7, .6) 20%, rgba(20, 12, 7, 0) 40%), linear-gradient(0deg, rgba(20, 12, 7, .82) 0%, rgba(20, 12, 7, 0) 25%); }
  .brand { padding: 12px 20px; }
  .brand__mark span:first-child { font-size: 1.35rem; }
  .brand__link { font-size: .86rem; }

  .hero__copy { left: 20px; right: 20px; top: 66px; bottom: calc(20px + env(safe-area-inset-bottom)); width: auto; transform: none; display: flex; flex-direction: column; justify-content: space-between; }
  .hero:not([data-state="closed"]) .hero__copy { transform: translateY(-10px); }
  .hero__th { font-size: clamp(3rem, 15.5vw, 4rem); }
  .hero__en { max-width: none; font-size: 1.22rem; }
  .hero__lede { margin-top: .55rem; font-size: .98rem; line-height: 1.5; }
  .hero__cta { flex-direction: column; gap: .2rem; margin-top: 0; }
  .hero__cta .btn { width: 100%; max-width: 22rem; }

  .tag { padding: .28rem; }
  .tag__th { display: none; }
  .openbar { left: 20px; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); justify-content: space-between; gap: .8rem; }
  .openbar__hint { font-size: 1.02rem; }

  /* the card becomes a bottom sheet; the eyelet sits where a grabber would */
  .card { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: translateY(104%); filter: drop-shadow(0 -14px 26px rgba(0, 0, 0, .5)); }
  .hero[data-state="focus"] .card { transform: none; }
  .card__body { padding: 2.15rem 20px calc(.7rem + env(safe-area-inset-bottom)); clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px); }
  .card__eyelet { left: 50%; top: 9px; margin: 0 0 0 -10px; }
  .card__string { display: none; }
  .card__top { margin-bottom: .7rem; }
  .card__th { font-size: clamp(1.6rem, 7.4vw, 1.95rem); }
  .card__line { margin-top: .5rem; font-size: .96rem; line-height: 1.5; }
  .card__foot { margin-top: .8rem; padding-top: .7rem; }
  .card__price { font-size: 1.95rem; }
  .card__nav { margin-top: .6rem; }
  .card__face { transition: opacity .3s ease; }
  .card__face--back, .card[data-side="inside"] .card__face--front { transform: none; }

  .row { grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: 0 1rem; align-items: start; padding: 1.1rem 0; }
  .row__thumb { width: 4.25rem; height: 4.25rem; grid-row: 1 / span 2; }
  .row .spice { grid-column: 2; grid-row: 2; margin-top: .5rem; }
  .row__price { grid-column: 3; grid-row: 1; font-size: 1.45rem; padding-top: 1.35rem; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 2.2rem 1.7rem; border-top: 0; border-left: 1.5px dashed rgba(244, 235, 221, .42); }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -7.5px; top: .7rem; }
  .step p + p { max-width: none; }
  .where__grid { grid-template-columns: 1fr; }
  .order .btn { width: 100%; max-width: 22rem; min-width: 0; }
}

/* ---------- reduced motion: short fades, no flips ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition-duration: .01s; }
  /* visibility must switch on at once, or a keyboard focus sent to these would be dropped */
  .hero__copy, .card, .tag, .openbar { transition: opacity .2s ease, visibility 0s linear .2s !important; }
  .hero[data-state="closed"] .hero__copy, .hero[data-state="open"] .tag, .hero[data-state="open"] .openbar, .hero[data-state="focus"] .card { transition: opacity .2s ease, visibility 0s !important; }
  .hero__copy, .hero:not([data-state="closed"]) .hero__copy { transform: translateY(-46%); }
  .card, .hero[data-state="focus"] .card { transform: translate(0, -50%); }
  .card__face { transition: opacity .2s ease; }
  .card__face--back, .card[data-side="inside"] .card__face--front { transform: none; }
  .hero .hero__stage, .hero.is-live.is-swapping .hero__stage { transition-duration: .16s; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 759px) {
  .hero__copy, .hero:not([data-state="closed"]) .hero__copy, .card, .hero[data-state="focus"] .card { transform: none; }
}
