/* chosycraft.com one-page site. Self-hosted fonts only; no inline styles (CSP). */
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/xn7gYHE41ni1AdIRggexSg.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:'Noto Sans Thai';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hX2g.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:'Noto Sans Thai';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfMo2hX2g.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Noto Sans Thai';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfPI2h.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}

/* ---------- tokens: white, monochrome, uppercase tracked labels, light serif headings ---------- */
:root {
  --bg: #fff;
  --ink: #111;
  --body: #333;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --serif: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', 'Noto Sans Thai', sans-serif;
  --gut: 24px;
  --hd: 112px;
  --space: 64px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
}
.skip-link:focus {
  left: 8px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wrap {
  width: 100%;
  max-width: calc(1120px + var(--gut) * 2);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

/* small tracked caps: kickers, labels, nav, buttons */
.kicker,
.sub,
.num,
.when,
.profile dt,
.channels li > span,
.form label,
.btn,
.hd-secondary a,
.hd-cats a,
.drawer li a,
.venues li,
.ft-legal {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2em;
}

/* ---------- buttons: rectangular, solid black / black outline ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-solid {
  background: var(--ink);
  color: #fff;
}
.btn-solid:hover {
  background: #333;
  border-color: #333;
}
.btn-line {
  background: #fff;
  color: var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  color: #fff;
}
.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta .btn {
  width: 100%;
}

/* ---------- sections: whitespace + a hairline, no coloured bands ---------- */
section[id],
article[id] {
  scroll-margin-top: var(--hd);
}
.sec > .wrap {
  position: relative;
  padding-top: var(--space);
  padding-bottom: var(--space);
}
.sec + .sec > .wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gut);
  right: var(--gut);
  border-top: 1px solid var(--line);
}
#custom > .wrap,
#events > .wrap::before {
  padding-top: 0;
  padding-bottom: 0;
}
#custom > .wrap::before,
#events > .wrap::before {
  display: none;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.18;
}
h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
}
h3 {
  font-size: 1.4rem;
}
.th {
  font-family: 'Noto Sans Thai', var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}
.sec-head {
  text-align: center;
  margin-bottom: 40px;
}
.sec-head .kicker {
  margin-bottom: 10px;
}
.intro {
  color: var(--body);
  max-width: 60ch;
  margin: -16px auto 40px;
  text-align: center;
}
.sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 56px 0 18px;
  line-height: 1.4;
}
.sec-head + .intro + .sub,
.sec-head + .sub {
  margin-top: 0;
}

/* ---------- hero ---------- */
.hero {
  padding: 24px 0 0;
}
.hero-in {
  display: grid;
  gap: 32px;
}
.hero-img {
  order: -1;
}
.hero-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-copy h1 {
  margin: 14px 0 6px;
}
.lead {
  margin: 20px 0 28px;
  max-width: 46ch;
}

/* ---------- facts: plain cells divided by hairlines ---------- */
.facts {
  padding: 56px 0 0;
}
.facts ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding: 32px 12px;
}
.facts li:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.facts li:nth-child(even) {
  border-left: 1px solid var(--line);
}
.facts strong {
  font: 400 clamp(2rem, 8vw, 2.8rem) / 1.1 var(--serif);
  color: var(--ink);
}
.facts span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  max-width: 22ch;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  gap: 56px;
}
.prose {
  max-width: 680px;
  margin: 0 auto;
}
.prose p {
  margin-bottom: 1.2em;
}
.promises {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}
.promises li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}
.promises li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 14px;
  border-top: 1px solid var(--ink);
}
.materials {
  display: grid;
  gap: 0;
}
.materials li {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
}
.materials h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.materials p {
  color: var(--body);
}

/* ---------- collections: scroll-snap strips on phones, grid on larger screens ---------- */
.coll {
  margin-top: 56px;
}
.coll:first-of-type {
  margin-top: 0;
}
.coll header {
  margin-bottom: 20px;
}
.coll header p {
  max-width: 58ch;
  margin-top: 6px;
}
.strip,
.booths {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gut) * -1);
  padding: 0 var(--gut);
  scroll-padding: 0 var(--gut);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar,
.booths::-webkit-scrollbar {
  display: none;
}
.strip li,
.booths li {
  flex: 0 0 68%;
  scroll-snap-align: start;
}
.strip img,
.booths img {
  width: 100%;
  object-fit: cover;
  background: #f3f3f3;
}
.strip img {
  aspect-ratio: 4 / 5;
}
.strip.mini img,
.booths img {
  aspect-ratio: 4 / 3;
}
.strip.mini li,
.booths li {
  flex-basis: 78%;
}
.strip.mini {
  margin-top: 40px;
}

/* ---------- craft ---------- */
.steps {
  display: grid;
  gap: 40px;
}
.steps img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.num {
  display: block;
  margin: 18px 0 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.steps p {
  margin-top: 6px;
}

/* ---------- custom ---------- */
.panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space) 0;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.panel p:first-of-type {
  max-width: 56ch;
}
.panel .btn {
  width: 100%;
}

/* ---------- events: lists with hairlines ---------- */
#events > .wrap {
  padding-top: var(--space);
  padding-bottom: var(--space);
}
.upcoming li,
.past li {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.upcoming li:last-child,
.past li:last-child {
  border-bottom: 1px solid var(--line);
}
.when {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.what {
  display: grid;
  gap: 2px;
}
.what strong,
.past strong {
  font: 400 1.4rem/1.3 var(--serif);
  color: var(--ink);
}
.what span,
.past span {
  color: var(--muted);
}
.past strong {
  font-size: 1.2rem;
}
.venues {
  column-count: 2;
  column-gap: 24px;
}
.venues li {
  break-inside: avoid;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  line-height: 1.5;
  padding: 7px 0;
}
.booths {
  margin-top: 56px;
}

/* ---------- work with us ---------- */
#work-with-us .wrap > :not(.sec-head),
#contact .wrap > :not(.sec-head) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
#work-with-us .intro,
#contact .intro {
  max-width: 60ch;
}
.profile div,
.channels li {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.profile div:last-child,
.channels li:last-child {
  border-bottom: 1px solid var(--line);
}
.profile dt,
.channels li > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.profile dd {
  color: var(--ink);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin-bottom: 36px;
}
.links a,
.channels a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.links a:hover,
.channels a:hover {
  text-decoration-thickness: 2px;
}
.channels a {
  min-height: 0;
}

/* ---------- contact form ---------- */
.form {
  display: grid;
  gap: 6px;
}
.form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 14px;
}
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 13px 14px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 0;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.form button {
  margin-top: 22px;
  width: 100%;
}
.alert {
  padding: 12px 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.alert.bad {
  border-style: dashed;
}

/* ---------- footer ---------- */
.ft {
  border-top: 1px solid var(--line);
  padding: 48px 0 44px;
  text-align: center;
}
.ft-in {
  display: grid;
  gap: 14px;
  justify-items: center;
}
.ft-logo {
  line-height: 0;
}
.ft-logo img {
  width: 56px;
  height: 56px;
}
.ft-about {
  color: var(--muted);
  font-size: 0.95rem;
}
.ft-social {
  display: flex;
  gap: 6px;
}
.ft-social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
}
.ft-legal {
  font-size: 11px;
  color: var(--muted);
}
.ft-legal a {
  display: inline-block;
  padding: 12px 6px;
  text-decoration: none;
}
.ft-legal a:hover {
  color: var(--ink);
}

/* ---------- privacy / terms / 404 ---------- */
.legal .wrap {
  max-width: calc(820px + var(--gut) * 2);
  padding-top: 40px;
  padding-bottom: 64px;
}
.legal .h {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal h1.h {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}
.legal h3.h,
.legal span.h {
  display: block;
  font-size: 1.2rem;
}
.legal p {
  margin: 0 0 0.9em;
  overflow-wrap: anywhere;
}
.legal ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.legal li {
  margin-bottom: 0.3em;
}
.legal .note {
  color: var(--muted);
}
.legal a {
  text-underline-offset: 3px;
}

/* ---------- cookie notice ---------- */
#cookie-notice {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1.5;
}
#cookie-notice .cn-buttons {
  display: flex;
  gap: 8px;
}
#cookie-notice .btn {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 11px;
}
#cookie-notice .btn:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- header: the owner's original mega-menu design (restored 11-09) ---------- */
/* phones/tablets: white sticky bar (burger | logo | language + pin) with the category row always under it */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hd-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 8px;
}
.hd-left,
.hd-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.hd-right {
  justify-content: flex-end;
}
.hd-logo {
  display: block;
  line-height: 0;
}
.hd-logo img {
  width: 48px;
  height: 48px;
}
.hd-burger,
.drawer-close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.bars,
.bars::before,
.bars::after {
  display: block;
  width: 30px;
  height: 1.5px;
  background: currentColor;
}
.bars {
  position: relative;
}
.bars::before,
.bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.bars::before {
  top: -8px;
}
.bars::after {
  top: 8px;
}
.x {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
}
.x::before,
.x::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 26px;
  height: 1.5px;
  background: currentColor;
}
.x::before {
  transform: rotate(45deg);
}
.x::after {
  transform: rotate(-45deg);
}
.hd-secondary,
.hd-wide {
  display: none;
}
.hd-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  color: #888;
}
.hd-icon:hover {
  color: var(--ink);
}
.hd-lang {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 48px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.hd-lang:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
/* category row: scrolls sideways on phones, fades out at the right edge */
.hd-cats {
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.hd-cats::-webkit-scrollbar {
  display: none;
}
.hd-cats > ul {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  padding: 0 36px 0 8px;
}
.hd-cats > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  white-space: nowrap;
  font: 400 11px/1 var(--sans);
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}
.hd-cats > ul > li > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mega-panel {
  display: none;
}
.hd-icon.hd-wide {
  display: none;
}
html[data-menu='open'] .hd-burger {
  visibility: hidden;
}
.hd-secondary a,
.hd-cats > ul > li > a {
  letter-spacing: 0.02em;
}

/* the drawer: grey panel from the right, the burger's place shows a close X */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(72vw, 360px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 20px 28px;
  background: #e0e0e0;
  color: #333;
  font-family: var(--sans);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}
html[data-menu='open'] {
  overflow: hidden;
}
html[data-menu='open'] .drawer {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}
html[data-menu='open'] .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
/* fixed to the viewport once open (no transform then): sits where the burger was */
.drawer-close {
  position: fixed;
  top: 8px;
  left: 8px;
}
.drawer-logo {
  align-self: flex-end;
  display: block;
  margin: 4px 4px 14px;
  line-height: 0;
}
.drawer-logo img {
  width: 64px;
  height: 64px;
}
.drawer-main {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding: 14px 0 10px;
}
.drawer-products summary {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
}
.drawer-products summary::-webkit-details-marker {
  display: none;
}
.chev {
  width: 11px;
  height: 11px;
  margin: 0 3px 6px 4px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.drawer-products[open] .chev {
  transform: translateY(5px) rotate(225deg);
}
.drawer-cats {
  padding: 2px 0 8px;
  text-align: center;
}
.drawer-cats a {
  display: block;
  padding: 9px 0;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
}
.drawer-shop {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-left: 38px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
}
.drawer-links {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 12px;
}
.drawer-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
}
.drawer-cats a:hover,
.drawer-links a:hover,
.drawer-shop:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.drawer-foot {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 16px;
  text-align: center;
}
.drawer-social {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.drawer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #111;
}
.drawer-brand {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  text-transform: uppercase;
}
.drawer-brand strong {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}
.drawer-brand span {
  font-size: 10px;
  font-weight: 500;
  color: #333;
}

/* desktop: two-row header, mega panels under the category row */
@media (min-width: 1100px) {
  .hd {
    position: relative;
  }
  .hd-bar {
    height: 112px;
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 12px;
  }
  .hd-burger {
    display: none;
  }
  .hd-logo img {
    width: 80px;
    height: 80px;
  }
  .hd-secondary,
  .hd-wide {
    display: block;
  }
  .hd-icon.hd-wide {
    display: grid;
  }
  .hd-secondary ul {
    display: flex;
    gap: 22px;
  }
  .hd-secondary a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font: 300 14px/1 var(--sans);
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
  }
  .hd-secondary a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .hd-icon {
    width: 40px;
  }
  .hd-lang {
    margin-right: 6px;
  }
  .hd-cats {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    border-top: 0;
  }
  .hd-cats > ul {
    width: auto;
    justify-content: center;
    gap: 6px;
    padding: 0;
  }
  .hd-cats > ul > li > a {
    min-height: 44px;
    padding: 0 14px;
    font-size: 15px;
  }
  .mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 45;
    background: #fff;
    box-shadow: 0 100px 200px 0 rgba(0, 0, 0, 0.25);
  }
  .mega:hover > .mega-panel,
  .mega:has(a:focus-visible) > .mega-panel {
    display: block;
    animation: mega-in 0.18s ease-out;
  }
  .mega:hover > a {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .mega-in {
    display: flex;
    column-gap: 15px;
    max-width: 1366px;
    margin: 0 auto;
  }
  .mega-photo {
    width: 33%;
  }
  .mega-photo img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .mega-body {
    width: 67%;
    padding: 20px 5px 28px;
    text-align: center;
  }
  .mega-title {
    font: 600 16px/1.3 var(--sans);
    text-transform: uppercase;
    color: #000;
  }
  .mega-text {
    max-width: 52ch;
    margin: 8px auto 0;
    font-size: 14px;
    color: var(--muted);
  }
  .mega-tiles {
    display: flex;
    justify-content: center;
    column-gap: 20px;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
  }
  .mega-tiles a {
    display: block;
    width: 150px;
    height: 150px;
    overflow: hidden;
  }
  .mega-tiles img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
  }
  .mega-tiles a:hover img {
    transform: scale(1.05);
  }
  .mega-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 12px;
    font: 500 16px/1 var(--sans);
    text-transform: uppercase;
    color: #7a5547;
    text-decoration: none;
  }
  .mega-all:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .drawer,
  .drawer-backdrop {
    display: none;
  }
}
@keyframes mega-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root {
    --space: 96px;
  }
  .cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cta .btn,
  .panel .btn,
  .form button {
    width: auto;
  }
  .form button {
    justify-self: start;
    min-width: 200px;
  }
  .facts {
    padding-top: 72px;
  }
  .facts ul {
    grid-template-columns: repeat(4, 1fr);
  }
  .facts li:nth-child(n + 3) {
    border-top: 0;
  }
  .facts li:nth-child(even) {
    border-left: 0;
  }
  .facts li + li {
    border-left: 1px solid var(--line);
  }
  .strip,
  .steps,
  .materials,
  .booths {
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .strip[data-n='4'],
  .strip[data-n='2'] {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip li,
  .booths li {
    flex: none;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .materials {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1120px;
  }
  .materials li {
    padding-top: 28px;
  }
  .booths {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .venues {
    column-count: 3;
    column-gap: 32px;
  }
  .upcoming li {
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: baseline;
  }
  .past li {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: baseline;
  }
  .past span {
    text-align: right;
  }
  .profile div,
  .channels li {
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: baseline;
  }
  .hero-in {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }
  .hero-img {
    order: 0;
  }
  .hero-img img {
    aspect-ratio: 1 / 1;
  }
  .hero {
    padding-top: 40px;
  }
  .ft-legal a {
    padding: 4px 8px;
  }
}

/* ---------- desktop: the mega-menu header ---------- */
@media (min-width: 1024px) {
  .strip[data-n='4'] {
    grid-template-columns: repeat(4, 1fr);
  }
  .booths {
    grid-template-columns: repeat(4, 1fr);
  }
  .venues {
    column-count: 4;
  }
}
@media (min-width: 1100px) {
  :root {
    --hd: 16px;
  }
  .hero {
    padding-top: 56px;
  }
  .coll {
    margin-top: 72px;
  }
}

/* ---------- hero crossfade: 5 slides x 5 s, pure CSS ---------- */
.hero-show {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}
.hero-show .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 25s infinite;
}
.hero-show .hero-slide-1 {
  opacity: 1;
}
.hero-show .hero-slide-2 {
  animation-delay: 5s;
}
.hero-show .hero-slide-3 {
  animation-delay: 10s;
}
.hero-show .hero-slide-4 {
  animation-delay: 15s;
}
.hero-show .hero-slide-5 {
  animation-delay: 20s;
}
/* slide 1 starts visible; the others wait (opacity 0) for their delay */
.hero-show .hero-slide-1 {
  animation-name: hero-fade-first;
}
@keyframes hero-fade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
    transform: scale(1.04);
  }
  95% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.hero-dots .hero-dot {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  animation: hero-dot 25s infinite;
}
.hero-dots .hero-dot-2 {
  animation-delay: 5s;
}
.hero-dots .hero-dot-3 {
  animation-delay: 10s;
}
.hero-dots .hero-dot-4 {
  animation-delay: 15s;
}
.hero-dots .hero-dot-5 {
  animation-delay: 20s;
}
@keyframes hero-dot {
  0%,
  22% {
    background: #fff;
  }
  23%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
@media (min-width: 720px) {
  .hero-show {
    aspect-ratio: 1 / 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-show .hero-slide,
  .hero-dot {
    animation: none;
  }
  .hero-show .hero-slide:not(.hero-slide-1),
  .hero-dots {
    display: none;
  }
}

/* ---------- cookie notice: one slim bar (all sizes) ---------- */
#cookie-notice {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px max(16px, calc((100vw - 1120px) / 2)) calc(12px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
  font-size: 13px;
  color: var(--body);
}
#cookie-notice p span {
  color: var(--muted);
}
#cookie-notice a {
  color: var(--ink);
  text-underline-offset: 3px;
  white-space: nowrap;
}
#cookie-notice .btn {
  flex: none;
  min-height: 44px;
  min-width: 72px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
}
#cookie-notice .btn:hover {
  background: #333;
}
.coll-index {
  display: none;
}

/* ---------- phones: tighter rhythm, image-led, fewer long stacks ---------- */
@media (max-width: 719px) {
  :root {
    --gut: 20px;
    --space: 52px;
    --hd: 112px;
  }
  body {
    font-size: 15px;
    line-height: 1.65;
  }
  .sec-head {
    margin-bottom: 24px;
  }
  .intro {
    margin: -8px auto 28px;
  }
  .sub {
    margin: 44px 0 4px;
  }
  .th {
    font-size: 0.85rem;
    margin-top: 4px;
  }

  /* hero: title, then a full-width photo, then the two buttons side by side, all on the first screen */
  .hero {
    padding-top: 22px;
  }
  .hero-in {
    gap: 0;
    padding: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > * {
    padding: 0 var(--gut);
    text-align: center;
  }
  .hero-copy .kicker {
    order: 1;
    font-size: 11px;
  }
  .hero-copy h1 {
    order: 2;
    margin: 8px 0 20px;
    font-size: 2rem;
  }
  .hero-copy .th {
    order: 3;
    margin-bottom: 18px;
  }
  .hero-img {
    order: 4;
  }
  .hero-show {
    aspect-ratio: 1 / 1;
  }
  .hero-copy .cta {
    order: 5;
    flex-direction: row;
    gap: 8px;
    margin-top: 14px;
  }
  .hero-copy .cta .btn {
    flex: 1 1 0;
    width: auto;
    min-height: 48px;
    padding: 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .hero-copy .lead {
    order: 6;
    margin: 26px auto 0;
    max-width: 34ch;
    color: var(--muted);
  }

  /* facts: one compact 2x2 */
  .facts {
    padding-top: 40px;
  }
  .facts li {
    padding: 20px 8px;
    gap: 4px;
  }
  .facts strong {
    font-size: 1.9rem;
  }
  .facts span {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  /* about: materials as tight rows, label above */
  .about-grid {
    gap: 32px;
  }
  .promises {
    margin-top: 18px;
  }
  .materials li {
    padding: 16px 0 18px;
  }
  .materials h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }

  /* collections: a text index to jump between them, then a short title row and a photo strip each */
  .coll-index {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: -8px calc(var(--gut) * -1) 32px;
    padding: 0 var(--gut);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .coll-index::-webkit-scrollbar {
    display: none;
  }
  .coll-index a {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 48px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
  }
  .coll {
    margin-top: 40px;
  }
  .coll header {
    margin-bottom: 14px;
  }
  .coll h3 {
    font-size: 1.3rem;
  }
  .coll header p {
    margin-top: 2px;
    font-size: 14px;
    color: var(--muted);
  }
  .strip li {
    flex-basis: 60%;
  }
  .strip,
  .booths {
    gap: 6px;
  }

  /* craft: the three steps become one swipe row; extra work-table photos are dropped on phones */
  .steps {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gut) * -1);
    padding: 0 var(--gut);
    scroll-padding: 0 var(--gut);
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar {
    display: none;
  }
  .steps li {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }
  .steps h3 {
    font-size: 1.2rem;
  }
  .steps p {
    margin-top: 2px;
    font-size: 14px;
    color: var(--muted);
  }
  .num {
    margin: 12px 0 2px;
  }
  .strip.mini {
    display: none;
  }

  /* custom */
  .panel {
    padding: 44px 0;
    gap: 14px;
  }

  /* events: booth photos first (what organisers look for), then dates as a two-column list */
  #events > .wrap {
    display: flex;
    flex-direction: column;
  }
  #events .booths {
    order: -1;
    margin: 0 calc(var(--gut) * -1) 8px;
  }
  #events .sec-head,
  #events > .wrap > .intro {
    order: -2;
  }
  .booths li {
    flex-basis: 82%;
  }
  #events .sub {
    margin-top: 40px;
  }
  .upcoming li {
    grid-template-columns: 84px 1fr;
    gap: 14px;
    padding: 16px 0;
  }
  .upcoming .when {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    padding-top: 4px;
  }
  .what strong {
    font-size: 1.15rem;
  }
  .what span {
    font-size: 14px;
  }
  .past li {
    gap: 0;
    padding: 14px 0;
  }
  .past strong {
    font-size: 1.05rem;
  }
  .past span {
    font-size: 14px;
  }
  /* venues read as quiet flowing text; each name stays on one line */
  .venues {
    column-count: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    padding-top: 12px;
    line-height: 1.7;
  }
  .venues li {
    padding: 0;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--body);
    white-space: nowrap;
  }
  .venues li:not(:last-child)::after {
    content: '\00b7';
    margin: 0 9px;
    color: #bbb;
  }

  /* work with us: label | value rows */
  .profile div {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 13px 0;
  }
  .profile dt {
    font-size: 10px;
    padding-top: 4px;
  }
  .profile dd {
    font-size: 14px;
  }
  .links {
    gap: 0 22px;
    margin-bottom: 24px;
  }
  #work-with-us .btn {
    width: 100%;
  }

  /* contact: channels in a 2-column grid, shops side by side */
  .channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
  }
  .channels li,
  .channels li:last-child {
    gap: 2px;
    padding: 14px 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .channels li:nth-child(odd) {
    padding-right: 10px;
  }
  .channels li:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
  .channels li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .channels li > span {
    font-size: 10px;
  }
  .channels a {
    font-size: 14px;
    min-height: 32px;
  }
  #contact .cta {
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
  }
  #contact .cta .btn {
    flex: 1 1 0;
    padding: 0 8px;
    min-height: 48px;
  }
  .form label {
    margin-top: 10px;
  }
  .form textarea {
    min-height: 120px;
  }
  .ft {
    padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
  }
}

/* ---------- swipe cue: phones only, a round frosted chevron at the right edge of a photo row, nudging sideways ---------- */
.swipe-wrap {
  position: relative;
}
.swipe-cue {
  display: none;
}
@media (max-width: 719px) {
  .swipe-cue {
    position: absolute;
    top: 50%;
    right: calc(12px - var(--gut));
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    color: var(--ink);
    pointer-events: none;
  }
  /* craft cards carry text under the photo: centre the cue on the photo */
  .steps-wrap .swipe-cue {
    top: 36%;
  }
  #events .booths-wrap {
    order: -1;
    margin-bottom: 8px;
  }
  #events .booths-wrap .booths {
    margin-bottom: 0;
  }
}
@media (max-width: 719px) and (prefers-reduced-motion: no-preference) {
  .swipe-cue svg {
    animation: swipe-nudge 1.8s ease-in-out infinite;
  }
  /* where supported, the cue fades away once the row has been scrolled */
  @supports (animation-timeline: scroll()) {
    .swipe-wrap {
      timeline-scope: --row;
    }
    .swipe-wrap > :first-child {
      scroll-timeline: --row x;
    }
    .swipe-cue {
      animation: swipe-fade linear both;
      animation-timeline: --row;
      animation-range: 0 120px;
    }
  }
}
@keyframes swipe-nudge {
  0%,
  100% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(4px);
  }
}
@keyframes swipe-fade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Thai page: Thai script never gets uppercase tracking; headings fall back to Noto Sans Thai, light ---------- */
html[lang='th'] body {
  line-height: 1.8;
}
html[lang='th'] h1,
html[lang='th'] h2,
html[lang='th'] h3,
html[lang='th'] .what strong,
html[lang='th'] .past strong {
  font-family: ui-serif, Georgia, 'Noto Sans Thai', serif;
  font-weight: 300;
  line-height: 1.45;
}
html[lang='th'] .kicker,
html[lang='th'] .sub,
html[lang='th'] .num,
html[lang='th'] .when,
html[lang='th'] .profile dt,
html[lang='th'] .channels li > span,
html[lang='th'] .form label,
html[lang='th'] .btn,
html[lang='th'] .hd-secondary a,
html[lang='th'] .hd-cats a,
html[lang='th'] .drawer li a,
html[lang='th'] .coll-index a,
html[lang='th'] .facts span {
  letter-spacing: 0.03em;
}
html[lang='th'] .sub,
html[lang='th'] .profile dt,
html[lang='th'] .channels li > span,
html[lang='th'] .form label,
html[lang='th'] .coll-index a,
html[lang='th'] .btn,
html[lang='th'] .hd-secondary a,
html[lang='th'] .hd-cats a {
  font-size: 13px;
}
html[lang='th'] .drawer-cats a {
  font-size: 15px;
}
html[lang='th'] .facts span {
  font-size: 12px;
}
html[lang='th'] .upcoming .when {
  letter-spacing: 0.02em;
  font-size: 12px;
}

/* ---------- brand logos (Shopee, LINE) keep their own colours; buttons carrying them ---------- */
.btn-brand,
.contact-cta .btn {
  gap: 10px;
}
.btn-brand .brand,
.contact-cta .brand {
  flex: none;
  width: 20px;
  height: 20px;
}
.contact-cta {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
.contact-cta .btn {
  min-width: min(100%, 320px);
}

/* ---------- hero crossfade for any number of photos (admin list, 1-8): 5 s each ---------- */
.hero-show[data-n='1'] .hero-slide,
.hero-show[data-n='1'] .hero-dot {
  animation: none;
}
.hero-show[data-n='1'] .hero-dots {
  display: none;
}
.hero-show .hero-slide-6,
.hero-dots .hero-dot-6 {
  animation-delay: 25s;
}
.hero-show .hero-slide-7,
.hero-dots .hero-dot-7 {
  animation-delay: 30s;
}
.hero-show .hero-slide-8,
.hero-dots .hero-dot-8 {
  animation-delay: 35s;
}
.hero-show[data-n='2'] .hero-slide {
  animation-name: hero-fade-2;
  animation-duration: 10s;
}
.hero-show[data-n='2'] .hero-slide-1 {
  animation-name: hero-fade-first-2;
}
.hero-show[data-n='2'] .hero-dot {
  animation-name: hero-dot-2;
  animation-duration: 10s;
}
@keyframes hero-fade-2 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  12.5% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  62.5% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first-2 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
  }
  62.5% {
    opacity: 0;
    transform: scale(1.04);
  }
  87.5% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-dot-2 {
  0%,
  55% {
    background: #fff;
  }
  55.5%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
.hero-show[data-n='3'] .hero-slide {
  animation-name: hero-fade-3;
  animation-duration: 15s;
}
.hero-show[data-n='3'] .hero-slide-1 {
  animation-name: hero-fade-first-3;
}
.hero-show[data-n='3'] .hero-dot {
  animation-name: hero-dot-3;
  animation-duration: 15s;
}
@keyframes hero-fade-3 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  8.333% {
    opacity: 1;
  }
  33.333% {
    opacity: 1;
  }
  41.667% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first-3 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  33.333% {
    opacity: 1;
  }
  41.667% {
    opacity: 0;
    transform: scale(1.04);
  }
  91.667% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-dot-3 {
  0%,
  36.667% {
    background: #fff;
  }
  37.167%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
.hero-show[data-n='4'] .hero-slide {
  animation-name: hero-fade-4;
  animation-duration: 20s;
}
.hero-show[data-n='4'] .hero-slide-1 {
  animation-name: hero-fade-first-4;
}
.hero-show[data-n='4'] .hero-dot {
  animation-name: hero-dot-4;
  animation-duration: 20s;
}
@keyframes hero-fade-4 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6.25% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  31.25% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first-4 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 1;
  }
  31.25% {
    opacity: 0;
    transform: scale(1.04);
  }
  93.75% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-dot-4 {
  0%,
  27.5% {
    background: #fff;
  }
  28%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
.hero-show[data-n='5'] .hero-slide {
  animation-name: hero-fade-5;
  animation-duration: 25s;
}
.hero-show[data-n='5'] .hero-slide-1 {
  animation-name: hero-fade-first-5;
}
.hero-show[data-n='5'] .hero-dot {
  animation-name: hero-dot-5;
  animation-duration: 25s;
}
@keyframes hero-fade-5 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first-5 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
    transform: scale(1.04);
  }
  95% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-dot-5 {
  0%,
  22% {
    background: #fff;
  }
  22.5%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
.hero-show[data-n='6'] .hero-slide {
  animation-name: hero-fade-6;
  animation-duration: 30s;
}
.hero-show[data-n='6'] .hero-slide-1 {
  animation-name: hero-fade-first-6;
}
.hero-show[data-n='6'] .hero-dot {
  animation-name: hero-dot-6;
  animation-duration: 30s;
}
@keyframes hero-fade-6 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  4.167% {
    opacity: 1;
  }
  16.667% {
    opacity: 1;
  }
  20.833% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first-6 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  16.667% {
    opacity: 1;
  }
  20.833% {
    opacity: 0;
    transform: scale(1.04);
  }
  95.833% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-dot-6 {
  0%,
  18.333% {
    background: #fff;
  }
  18.833%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
.hero-show[data-n='7'] .hero-slide {
  animation-name: hero-fade-7;
  animation-duration: 35s;
}
.hero-show[data-n='7'] .hero-slide-1 {
  animation-name: hero-fade-first-7;
}
.hero-show[data-n='7'] .hero-dot {
  animation-name: hero-dot-7;
  animation-duration: 35s;
}
@keyframes hero-fade-7 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  3.571% {
    opacity: 1;
  }
  14.286% {
    opacity: 1;
  }
  17.857% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first-7 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  14.286% {
    opacity: 1;
  }
  17.857% {
    opacity: 0;
    transform: scale(1.04);
  }
  96.429% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-dot-7 {
  0%,
  15.714% {
    background: #fff;
  }
  16.214%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
.hero-show[data-n='8'] .hero-slide {
  animation-name: hero-fade-8;
  animation-duration: 40s;
}
.hero-show[data-n='8'] .hero-slide-1 {
  animation-name: hero-fade-first-8;
}
.hero-show[data-n='8'] .hero-dot {
  animation-name: hero-dot-8;
  animation-duration: 40s;
}
@keyframes hero-fade-8 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  3.125% {
    opacity: 1;
  }
  12.5% {
    opacity: 1;
  }
  15.625% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
  }
}
@keyframes hero-fade-first-8 {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  12.5% {
    opacity: 1;
  }
  15.625% {
    opacity: 0;
    transform: scale(1.04);
  }
  96.875% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-dot-8 {
  0%,
  13.75% {
    background: #fff;
  }
  14.25%,
  100% {
    background: rgba(255, 255, 255, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-show[data-n] .hero-slide,
  .hero-show[data-n] .hero-dot {
    animation: none;
  }
}

/* ---------- pop-up history: one folding row per year ---------- */
.history {
  border-top: 1px solid var(--line);
}
.history .year {
  border-bottom: 1px solid var(--line);
}
.history summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
}
.history summary::-webkit-details-marker {
  display: none;
}
.history summary::after {
  content: '+';
  font: 300 22px/1 var(--sans);
  color: var(--muted);
}
.history .year[open] summary::after {
  content: '\2212';
}
.history .y {
  font: 400 1.5rem/1.2 var(--serif);
  color: var(--ink);
}
.history .n {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.history ul {
  padding: 0 0 18px;
  display: grid;
  gap: 2px;
}
.history li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
}
.history time {
  color: var(--muted);
  font-size: 12px;
  padding-top: 1px;
}
.history .hw {
  color: var(--ink);
}
.history .hw span {
  color: var(--muted);
}
@media (min-width: 720px) {
  .history ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}
