/* บริษัท เอ็มซี ดีไซน์ แพคเกจจิ้ง จำกัด — สไตล์ชีตหลัก
   แนวคิด: แบบคลี่กล่อง (dieline) เป็นองค์ประกอบเด่นของหน้าแรก
   เส้นตัดสีฟ้า เส้นพับเป็นเส้นประสีชมพู และแถบสี C M Y K แบบงานพิมพ์บรรจุภัณฑ์ */

:root {
  --board: #f2f3f5;      /* พื้นกระดาษแข็งสีเทาอ่อน */
  --white: #ffffff;
  --k: #1a1a1a;          /* ดำ (K) */
  --muted: #55585f;
  --rule: #d5d8de;
  --c: #0095d9;          /* ฟ้า (C): เส้นตัด */
  --c-text: #006f9e;     /* ฟ้าเข้มสำหรับตัวหนังสือ */
  --m: #d6007a;          /* ชมพู (M): เส้นพับและปุ่ม */
  --m-deep: #a5005e;
  --y: #ffd400;          /* เหลือง (Y) */

  --display: "Chakra Petch", "Sarabun", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --body: "Sarabun", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;

  --s--1: 0.88rem;
  --s-0: 1rem;
  --s-1: 1.22rem;
  --s-2: 1.5rem;
  --s-3: 1.9rem;
  --s-4: 2.4rem;
  --s-5: 3rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 74rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--white); color: var(--k);
  font-family: var(--body); font-size: var(--s-0); line-height: 1.8;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--c-text); text-underline-offset: 0.2em; }
a:hover { color: var(--m); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--m); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.4; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(var(--s-3), 3.9vw, var(--s-5)); line-height: 1.32; font-weight: 700; }
h2 { font-size: clamp(var(--s-2), 2.8vw, var(--s-4)); }
h3 { font-size: var(--s-1); }

p { margin: 0 0 1em; max-width: 40em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.nw { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--k); color: #fff; padding: 0.6em 1em; z-index: 60; }
.skip:focus { left: 0; }

/* แถบสี C M Y K ใต้หัวข้อ */
.cmyk { display: flex; gap: 0; margin-top: 0.9rem; }
.cmyk i { display: block; width: 1.05rem; height: 0.55rem; }
.cmyk i:nth-child(1) { background: var(--c); }
.cmyk i:nth-child(2) { background: var(--m); }
.cmyk i:nth-child(3) { background: var(--y); }
.cmyk i:nth-child(4) { background: var(--k); }
.band--k .cmyk i:nth-child(4), .page-head .cmyk i:nth-child(4) { background: #fff; }

/* ---------- ส่วนหัว ---------- */
.site-head { background: var(--white); border-bottom: 2px solid var(--k); position: sticky; top: 0; z-index: 30; }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--k); text-decoration: none; }
.brand:hover { color: var(--k); }
.brand svg { width: 2.6rem; height: 2.6rem; flex: none; }
.brand__name { display: block; font-family: var(--display); font-weight: 700; font-size: var(--s-1); line-height: 1.2; }
.brand__legal { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }

.nav ul { list-style: none; display: flex; gap: 0.1rem; }
.nav a {
  display: block; padding: 0.55em 0.75em;
  color: var(--k); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 0.93rem;
  border-bottom: 4px solid transparent;
}
.nav a:hover { border-bottom-color: var(--c); }
.nav a[aria-current="page"] { border-bottom-color: var(--m); font-weight: 700; }

.nav-toggle {
  display: none; font: inherit; font-family: var(--display); font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--k); border: 2px solid var(--k); border-radius: var(--radius); padding: 0.3em 1em;
}
@media (max-width: 66rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 2px solid var(--k); padding: 0.5rem var(--gutter) 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 0.75em 0.6em; border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; }
  .nav a:hover { border-bottom-color: var(--rule); border-left-color: var(--c); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); border-left-color: var(--m); }
}
@media (max-width: 30rem) { .brand__legal { display: none; } .brand__name { font-size: 1rem; } }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.4;
  padding: 0.75em 1.4em; border-radius: var(--radius); cursor: pointer; text-decoration: none;
  background: var(--m); color: #fff; border: 2px solid var(--m);
}
.btn:hover { background: var(--m-deep); border-color: var(--m-deep); color: #fff; }
.btn--line { background: transparent; border-color: var(--k); color: var(--k); }
.btn--line:hover { background: var(--k); border-color: var(--k); color: #fff; }
.band--k .btn--line { border-color: #fff; color: #fff; }
.band--k .btn--line:hover { background: #fff; border-color: #fff; color: var(--k); }
.band--k .btn { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* ---------- แบนเนอร์หน้าแรก + แบบคลี่กล่อง ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem) 0; background: var(--k); }
.hero__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 3rem 3rem,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 3rem 3rem,
    var(--k);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(26,26,26,.28); }
.hero__credit { position: absolute; z-index: 2; right: 0.9rem; bottom: 0.5rem; font-size: 0.72rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.hero__credit a { color: inherit; }

.dieline {
  position: relative; z-index: 1;
  display: grid; width: min(100%, 62rem);
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  grid-template-areas: "top ." "main side" "bottom .";
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.35));
}
.dl-main {
  grid-area: main; background: var(--white);
  border: 2px solid var(--c);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
}
.dl-flap {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.94); border: 2px solid var(--c);
  margin-inline: 2.4rem; padding: 0.7rem 1.4rem; max-width: none;
  font-family: var(--display); font-weight: 500; font-size: 0.95rem; line-height: 1.5; color: var(--k);
}
.dl-flap--top { grid-area: top; border-bottom: 2px dashed var(--m); border-radius: 1.5rem 1.5rem 0 0; margin-bottom: -2px; }
.dl-flap--bottom {
  grid-area: bottom; border-top: 2px dashed var(--m); border-radius: 0 0 1.5rem 1.5rem; margin-top: -2px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; justify-content: space-between;
  font-weight: 400; font-size: 0.86rem; color: var(--muted);
}
.dl-flap--bottom .cmyk { margin-top: 0; }
.dl-side {
  grid-area: side; position: relative; z-index: 1;
  background: rgba(255,255,255,.94); border: 2px solid var(--c); border-left: 2px dashed var(--m);
  margin: 1.8rem 0 1.8rem -2px; border-radius: 0 1.3rem 1.3rem 0;
  padding: 1.1rem 1.2rem; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
}
.dl-side div { margin: 0; }
.dl-side dt { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.dl-side dd { margin: 0.1rem 0 0; font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.45; overflow-wrap: anywhere; }
.dl-side dd a { color: var(--k); text-decoration: none; }
.dl-side dd a:hover { color: var(--m); text-decoration: underline; }
.dl-lead { font-size: var(--s-1); line-height: 1.75; color: var(--muted); margin-top: 1rem; }

@media (max-width: 56rem) {
  .dieline { grid-template-columns: 1fr; grid-template-areas: "top" "main" "side" "bottom"; }
  .dl-flap { margin-inline: 1.4rem; }
  .dl-side {
    margin: -2px 0 0; border-radius: 0; border-left: 2px solid var(--c); border-top: 2px dashed var(--m);
    flex-direction: row; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: flex-start;
  }
}

@media (max-width: 34rem) { .dl-main h1 { font-size: 1.55rem; text-wrap: pretty; } }

/* ---------- แบนเนอร์หน้าใน ---------- */
.page-head { position: relative; overflow: hidden; color: #fff; background: var(--k); }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,26,26,.94) 0%, rgba(26,26,26,.82) 50%, rgba(26,26,26,.35) 100%); }
.page-head--plain::after { display: none; }
.page-head__body { position: relative; z-index: 1; padding: clamp(2.6rem, 7vw, 5rem) 0; }
.page-head__body p { font-size: var(--s-1); line-height: 1.75; margin-top: 1.1rem; color: #e4e6ea; max-width: 36em; }
.page-head__credit { position: absolute; z-index: 1; right: 0.9rem; bottom: 0.5rem; font-size: 0.72rem; color: #cfd2d8; }
.page-head__credit a { color: inherit; }

/* ---------- ส่วนเนื้อหา ---------- */
.band { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.band--board { background: var(--board); }
.band--k { background: var(--k); color: #fff; }
.band--k p { color: #dcdfe4; }
.band--k a { color: #fff; }

.band__head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); max-width: 44rem; }
.band__head p { margin-top: 1rem; color: var(--muted); font-size: var(--s-1); line-height: 1.75; }
.band--k .band__head p { color: #dcdfe4; }

.split { display: grid; gap: clamp(1.8rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.split--top { align-items: start; }
.split--flip { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 54rem) { .split, .split--flip { grid-template-columns: 1fr; } }

/* ---------- ภาพถ่าย ---------- */
.photo { margin: 0; }
.photo__frame {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 2rem 2rem,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 2rem 2rem,
    #2c2e33;
}
.photo--tall .photo__frame { aspect-ratio: 4 / 5; }
.photo--wide .photo__frame { aspect-ratio: 3 / 2; }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 0.74rem; color: var(--muted); margin-top: 0.4rem; }
.photo figcaption a { color: inherit; }
.band--k .photo figcaption { color: #b9bdc5; }
img.is-missing { visibility: hidden; }

/* ---------- บริการออกแบบ ---------- */
.designs { list-style: none; display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.3rem, 3vw, 2.4rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 56rem) { .designs { grid-template-columns: 1fr; max-width: 34rem; } }
.designs h3 { margin-top: 1rem; font-size: var(--s-2); }
.designs p { margin-top: 0.5rem; color: var(--muted); }
.more { display: inline-block; margin-top: 0.7rem; font-family: var(--display); font-weight: 600; }

/* ---------- กลุ่มสินค้าบรรจุภัณฑ์ ---------- */
.goods { list-style: none; display: grid; gap: 1.3rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .goods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .goods { grid-template-columns: 1fr; } }
.goods li { background: var(--white); border: 2px solid var(--c); border-bottom: 2px dashed var(--m); border-radius: var(--radius) var(--radius) 0 0; padding: 0 0 1.2rem; overflow: hidden; }
.goods .photo__frame { border-radius: 0; }
.goods .photo figcaption { padding: 0 1.1rem; }
.goods h3 { padding: 0.7rem 1.1rem 0; }
.goods p { padding: 0.3rem 1.1rem 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- ขั้นตอนการทำงาน ---------- */
.steps { list-style: none; counter-reset: st; display: grid; gap: 1.8rem 1.4rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { counter-increment: st; border-top: 2px dashed rgba(255,255,255,.5); padding-top: 1rem; }
.steps li::before { content: "0" counter(st); display: block; font-family: var(--display); font-weight: 700; font-size: var(--s-4); line-height: 1; color: var(--y); margin-bottom: 0.6rem; }
.steps h3 { color: #fff; }
.steps p { margin-top: 0.4rem; font-size: 0.97rem; line-height: 1.7; }
@media (max-width: 64rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }
.note { margin-top: 2rem; font-size: 0.95rem; color: var(--muted); }
.band--k .note { color: #b9bdc5; }

/* ---------- กลุ่มลูกค้า ---------- */
.audience { list-style: none; display: grid; gap: 1.5rem 2.2rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; }
@media (max-width: 62rem) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .audience { grid-template-columns: 1fr; } }
.audience li { padding-left: 1.1rem; border-left: 4px solid var(--c); }
.audience p { margin-top: 0.3rem; color: var(--muted); }

/* ---------- รายการหัวข้อ-คำอธิบาย ---------- */
.deflist { margin: 0; }
.deflist div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.4rem 2rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.deflist div:last-child { border-bottom: 1px solid var(--rule); }
.deflist dt { font-family: var(--display); font-weight: 600; font-size: var(--s-1); line-height: 1.5; }
.deflist dd { margin: 0; color: var(--muted); max-width: 40em; }
@media (max-width: 46rem) { .deflist div { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin-top: 0.7rem; }
.ticks li { position: relative; padding-left: 1.5rem; margin-top: 0.35rem; max-width: 38em; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.6rem; height: 0.6rem; background: var(--m); }

/* ---------- รายละเอียดบริการ (หน้าสินค้าและบริการ) ---------- */
.item { padding: clamp(2.2rem, 5vw, 3.6rem) 0; border-top: 1px solid var(--rule); }
.item:first-of-type { border-top: 0; padding-top: 0; }
.item:last-of-type { padding-bottom: 0; }
.item h3 { font-size: clamp(var(--s-2), 2.4vw, var(--s-3)); }
.item h4 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 1.3rem 0 0; }
.item p { margin-top: 0.8rem; }
.item:nth-of-type(even) .split > .photo { order: -1; }
@media (max-width: 54rem) { .item .split > .photo { order: -1; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 2px solid var(--k); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.5;
  padding: 1rem 3rem 1rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-size: 1.7rem; font-weight: 500; color: var(--m); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); }

/* ---------- ช่องติดต่อท้ายหน้า ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
@media (max-width: 54rem) { .cta { grid-template-columns: 1fr; } }
.cta__card { background: #fff; color: var(--k); border: 2px solid var(--c); border-radius: var(--radius); padding: 0.3rem 1.5rem; }
.cta__card div { padding: 0.9rem 0; border-top: 2px dashed var(--m); }
.cta__card div:first-child { border-top: 0; }
.cta__card small { display: block; font-size: var(--s--1); color: var(--muted); }
.band--k .cta__card a, .cta__card a { font-family: var(--display); font-weight: 600; font-size: var(--s-1); line-height: 1.5; color: var(--k); text-decoration: none; overflow-wrap: anywhere; }
.band--k .cta__card a:hover, .cta__card a:hover { color: var(--m); text-decoration: underline; }

/* ---------- ตารางข้อมูลบริษัท ---------- */
.spec { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--k); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 0.85em 1.1em; border-top: 1px solid var(--rule); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 13rem; font-weight: 500; color: var(--muted); border-right: 1px solid var(--rule); }
.spec td { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .spec th, .spec td { display: block; width: auto; border-right: 0; }
  .spec td { border-top: 0; padding-top: 0; }
}

/* ---------- หน้าเนื้อหายาว (นโยบาย) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--s-2); margin-top: 2.6rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-top: 0.35rem; max-width: 38em; }
.prose .meta { color: var(--muted); font-size: 0.95rem; margin-top: 0; }

/* ---------- หน้าติดต่อ ---------- */
.contact-list { margin: 1.8rem 0 0; }
.contact-list div { padding: 1.05rem 0; border-top: 1px solid var(--rule); }
.contact-list div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); font-size: var(--s--1); }
.contact-list dd { margin: 0.15rem 0 0; font-family: var(--display); font-weight: 600; font-size: var(--s-1); line-height: 1.55; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list dd small { display: block; font-family: var(--body); font-weight: 400; font-size: var(--s--1); color: var(--muted); }
.contact-list .big a { font-size: var(--s-3); line-height: 1.3; }

.form { background: var(--board); border: 2px solid var(--c); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.form h2 { font-size: var(--s-2); }
.form > p { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; }
.field { margin-top: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--k); background: #fff;
  padding: 0.6em 0.8em; border: 1.5px solid #7b7f88; border-radius: 4px;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--c); outline-offset: 0; border-color: var(--k); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }
.form .btn { margin-top: 1.4rem; }
.form__hint { font-size: var(--s--1); color: var(--muted); margin-top: 0.8rem; }

.map { background: var(--white); border: 2px solid var(--k); }
.map iframe { display: block; width: 100%; height: clamp(18rem, 45vw, 26rem); border: 0; }
.map p { padding: 0.8rem 1.2rem; font-size: 0.95rem; max-width: none; border-top: 1px solid var(--rule); }

/* ---------- ส่วนท้าย ---------- */
.site-foot { background: var(--k); color: #dcdfe4; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: 0.95rem; border-top: 6px solid var(--c); }
.site-foot a { color: #fff; }
.site-foot__grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr); }
@media (max-width: 54rem) { .site-foot__grid { grid-template-columns: 1fr; } }
.site-foot h2 { font-size: var(--s-1); color: #fff; margin-bottom: 0.7rem; }
.site-foot ul { list-style: none; }
.site-foot li { margin-top: 0.3rem; }
.site-foot address { font-style: normal; overflow-wrap: anywhere; }
.site-foot__base {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2);
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between;
  font-size: var(--s--1); color: #b9bdc5;
}
.site-foot__base p { max-width: none; margin: 0; }

/* ---------- การเคลื่อนไหว: ฝากล่องกางออกครั้งเดียวตอนเปิดหน้าแรก ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dl-flap--top { animation: unfold-top 0.7s 0.15s ease-out both; transform-origin: 50% 100%; }
  .dl-flap--bottom { animation: unfold-bottom 0.7s 0.3s ease-out both; transform-origin: 50% 0; }
  .dl-side { animation: unfold-side 0.7s 0.45s ease-out both; transform-origin: 0 50%; }
  @keyframes unfold-top { from { opacity: 0; transform: perspective(40rem) rotateX(-80deg); } to { opacity: 1; transform: none; } }
  @keyframes unfold-bottom { from { opacity: 0; transform: perspective(40rem) rotateX(80deg); } to { opacity: 1; transform: none; } }
  @keyframes unfold-side { from { opacity: 0; transform: perspective(40rem) rotateY(80deg); } to { opacity: 1; transform: none; } }
}
@media (max-width: 56rem) { .dl-side { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-head { position: static; }
  .nav, .nav-toggle, .btn-row, .map { display: none; }
}
