:root {
  --ivory: #faf6f0;
  --cream: #f2ebe1;
  --ink: #2a1f24;
  --muted: #6e6268;
  --plum: #6b2a45;
  --plum-dark: #4a1c30;
  --gold: #b8894a;
  --line: #e4d9cc;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--ivory); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: .8rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 400; font-size: .95rem; letter-spacing: .02em; border: 1px solid var(--plum); cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.btn:hover { background: var(--plum-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-light { background: var(--ivory); color: var(--plum-dark); border-color: var(--ivory); }
.btn-light:hover { background: #fff; }
.btn-small { padding: .5rem 1.1rem; font-size: .85rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--plum); letter-spacing: .04em; }
.brand span { font-family: var(--sans); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-left: .5rem; font-weight: 400; }
.nav-links { display: flex; gap: 2rem; align-items: center; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--plum); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); background:
  radial-gradient(circle at 85% 20%, rgba(184, 137, 74, .16), transparent 45%),
  radial-gradient(circle at 10% 90%, rgba(107, 42, 69, .10), transparent 50%); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1.4rem; }
.hero h1 em { color: var(--plum); font-style: italic; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Category cards */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.cat-card { position: relative; padding: 3.8rem 2rem 2.4rem; border-radius: var(--radius); min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; transition: transform .25s; }
.cat-card:hover { transform: translateY(-4px); }
.cat-custom { background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%); }
.cat-shop { background: linear-gradient(135deg, #a07438 0%, #7a5426 100%); }
.cat-classes { background: linear-gradient(135deg, #3b2d35 0%, #241a20 100%); }
.cat-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border: 1px dashed rgba(255,255,255,.35); border-radius: 50%; }
.cat-num { position: absolute; top: 1.6rem; left: 2rem; font-family: var(--serif); font-size: 1.1rem; opacity: .7; }
.cat-card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .4rem; }
.cat-card p { opacity: .85; }
.cat-link { margin-top: 1rem; font-size: .9rem; letter-spacing: .05em; font-weight: 400; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--plum-dark); color: var(--ivory); }
.section-dark .lead { color: rgba(250, 246, 240, .75); }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.section-sub { color: var(--muted); max-width: 52ch; margin: .8rem auto 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.2rem; }
.filters button { font: inherit; font-size: .88rem; padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: .2s; }
.filters button:hover { border-color: var(--plum); color: var(--plum); }
.filters button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Portfolio gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 1.6rem; }
.g-item { display: block; width: 100%; cursor: zoom-in; border: 0; padding: 0; background: none; text-align: center; font: inherit; color: inherit; }
.g-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #f4ece2; box-shadow: 0 1px 2px rgba(74, 28, 48, .06), 0 12px 30px -12px rgba(74, 28, 48, .18); transition: box-shadow .4s; }
.g-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(184, 137, 74, .35); border-radius: 2px; pointer-events: none; opacity: 0; transition: opacity .4s, inset .4s; }
.g-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover .g-frame { box-shadow: 0 2px 4px rgba(74, 28, 48, .06), 0 22px 44px -14px rgba(74, 28, 48, .28); }
.g-item:hover .g-frame::after { opacity: 1; inset: 14px; }
.g-item:hover img { transform: scale(1.035); }
.g-cap { padding: 1rem .5rem 0; }
.g-cap small { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.g-cap h3 { font-size: 1.35rem; font-weight: 500; }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.4rem; padding: 2rem 0; }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.p-card { background: var(--ivory); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.p-card:hover { box-shadow: 0 14px 34px rgba(74, 28, 48, .12); transform: translateY(-3px); }
.p-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #f4ece2; }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.p-cat { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.p-body h3 { font-size: 1.35rem; font-weight: 600; }
.p-price { font-size: 1.1rem; font-weight: 500; color: var(--plum); }
.p-body .btn { margin-top: auto; text-align: center; padding: .6rem 1rem; font-size: .88rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { padding: 1.8rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps li > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: var(--plum); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Materials */
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; gap: 1.4rem; }
.m-card { padding: 2rem 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: .5rem; text-align: center; }
.m-card h3 { font-size: 1.7rem; }
.m-price { font-size: 1.5rem; font-weight: 500; color: var(--plum); }
.m-price span { font-size: .9rem; font-weight: 300; color: var(--muted); }
.m-note { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.m-card .btn { margin-top: auto; }
section[hidden] { display: none; }

/* Classes */
.levels { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.levels li { padding: 2rem 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.level-tag { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--plum); background: var(--cream); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.levels h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.levels p { color: var(--muted); font-size: .95rem; }
.classes-cta { text-align: center; margin-top: 2.4rem; }
.classes-cta p { color: var(--muted); margin-bottom: 1rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; padding: 2rem; border: 1px solid rgba(250, 246, 240, .2); border-radius: var(--radius); }
.contact-list li { display: grid; gap: .1rem; overflow-wrap: anywhere; }
.contact-list li[hidden] { display: none; }
.contact-list small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #e8c99a; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer { padding: 1.6rem 0; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 10, 15, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(560px, 100%); width: 100%; }
.lb-media { aspect-ratio: 4 / 5; max-height: 76vh; border-radius: var(--radius); overflow: hidden; margin-inline: auto; }
.lb-media img { width: 100%; height: 100%; object-fit: contain; background: #f4ece2; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; display: grid; gap: .2rem; }
.lb-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.lb-note { color: rgba(255,255,255,.7); font-size: .95rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .levels, .categories { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: .5rem 16px 1.2rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; width: 100%; text-align: center; }
  .nav-links .btn { margin-top: .5rem; }
  .categories, .contact { grid-template-columns: 1fr; }
  .gallery, .products { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .cat-card { min-height: 190px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .p-body { padding: .9rem; }
  .p-body h3 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- One-screen board: four boxes, 2 x 2 ---------- */
:root { --head-h: 60px; --foot-h: 36px; }
.nav { height: var(--head-h); gap: 1rem; }
.nav-tag { flex: 1; font-size: .85rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-footer { padding: 0; height: var(--foot-h); display: flex; align-items: center; font-size: .78rem; border-top: 0; }

.board {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1.45fr 1fr; gap: 14px;
  height: calc(100vh - var(--head-h) - var(--foot-h)); height: calc(100dvh - var(--head-h) - var(--foot-h));
  padding: 14px 0 0; min-height: 520px;
}
.box { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.box-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: .8rem 1.1rem .6rem; border-bottom: 1px solid var(--line); background: var(--ivory); }
.box-head h2 { font-size: 1.45rem; line-height: 1.1; }
.box-head p { font-size: .8rem; color: var(--muted); }
.box-link { font-size: .8rem; font-weight: 500; color: var(--plum); white-space: nowrap; }
.box-link:hover { text-decoration: underline; }
.box-body { flex: 1; min-height: 0; overflow-y: auto; padding: .8rem; scrollbar-width: thin; }
.box-body .empty { font-size: 1.1rem; padding: 1rem 0; }

/* thumbnail grids */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; align-content: start; }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--cream); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb:hover img { transform: scale(1.06); }
.thumb:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.thumb-name { position: absolute; inset: auto 0 0 0; padding: 1.2rem .4rem .35rem; font-size: .66rem; line-height: 1.2; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(30, 15, 22, .78)); opacity: 0; transition: opacity .25s; }
.thumb:hover .thumb-name, .thumb:focus-visible .thumb-name { opacity: 1; }
.thumb-price { position: absolute; top: 6px; right: 6px; font-size: .72rem; font-weight: 500; padding: .1rem .45rem; border-radius: 999px; background: var(--plum); color: #fff; }

/* materials list */
.mats { list-style: none; display: grid; gap: .6rem; }
.mats li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); }
.mats strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.mats li small { display: block; font-size: .78rem; color: var(--muted); }
.mat-price { font-size: 1.2rem; font-weight: 500; color: var(--plum); text-align: right; }
.mat-price small { text-align: right; }

/* classes */
#classes .box-body { display: flex; flex-direction: column; gap: .7rem; }
#classes .levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
#classes .levels li { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); }
#classes .level-tag { margin-bottom: .45rem; }
#classes .levels p { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.classes-btn { align-self: center; margin-top: auto; }

/* enlarged view */
.lb-action { margin: .6rem auto 0; padding: .55rem 1.3rem; font-size: .88rem; }
.lb-note { color: #e8c99a; font-weight: 500; }
.lb-nav[hidden] { display: none; }

/* small screens: boxes stack and the page scrolls */
@media (max-width: 760px) {
  .nav-tag { display: none; }
  .board { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; min-height: 0; }
  .box-head { flex-wrap: wrap; align-items: flex-start; }
  .box-body { overflow: visible; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #classes .levels { grid-template-columns: 1fr; }
  .mats li { grid-template-columns: 1fr auto; }
  .mats li .btn { grid-column: 1 / -1; text-align: center; }
  .site-footer { height: auto; padding: 1rem 0; }
}

/* shorter laptop screens: tighten everything so the four boxes still fit */
@media (min-width: 761px) and (max-height: 820px) {
  :root { --head-h: 52px; --foot-h: 28px; }
  .board { gap: 10px; padding-top: 10px; grid-template-rows: 1.3fr 1fr; }
  .box-head { padding: .5rem 1rem .4rem; }
  .box-head h2 { font-size: 1.2rem; }
  .box-head p { font-size: .72rem; }
  .box-body { padding: .55rem; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .45rem; }
  .mats { gap: .4rem; }
  .mats li { padding: .45rem .8rem; gap: .7rem; }
  .mats strong { font-size: 1.05rem; }
  .mats li small { font-size: .7rem; }
  .mat-price { font-size: 1rem; }
  .mats .btn { padding: .3rem .9rem; }
  #classes .box-body { gap: .45rem; }
  #classes .levels li { padding: .5rem .7rem; }
  #classes .level-tag { font-size: .62rem; padding: .2rem .6rem; margin-bottom: .3rem; }
  #classes .levels p { font-size: .72rem; line-height: 1.35; }
  .classes-btn { padding: .4rem 1rem; font-size: .8rem; }
}

/* ---------- Bolder, more prominent text ---------- */
.brand { font-size: 2rem; font-weight: 700; }
.brand span { font-size: .78rem; font-weight: 500; color: var(--gold); }
.nav-tag { font-size: .98rem; font-weight: 500; color: var(--ink); }
.site-header .btn-small { font-size: .95rem; font-weight: 500; padding: .55rem 1.3rem; }

/* each box gets a coloured title band */
.box { border: 0; box-shadow: 0 6px 22px rgba(74, 28, 48, .10); }
.box-head { border-bottom: 0; padding: .7rem 1.2rem .6rem; color: #fff; align-items: center; }
#portfolio .box-head { background: linear-gradient(120deg, #6b2a45, #4a1c30); }
#shop .box-head { background: linear-gradient(120deg, #a87a3d, #7a5426); }
#materials .box-head { background: linear-gradient(120deg, #3f6b5c, #2a4a3f); }
#classes .box-head { background: linear-gradient(120deg, #3b2d35, #241a20); }
.box-head h2 { font-size: 1.85rem; font-weight: 700; letter-spacing: .01em; color: #fff; }
.box-head p { font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .92); }
.box-link { font-size: .92rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .16); padding: .35rem .85rem; border-radius: 999px; }
.box-link:hover { background: rgba(255, 255, 255, .28); text-decoration: none; }

/* thumbnails: bigger price tags, names always readable */
.thumb-price { font-size: .85rem; font-weight: 700; padding: .15rem .55rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.thumb-name { font-size: .74rem; font-weight: 600; padding-top: 1.6rem; }

/* materials */
.mats strong { font-size: 1.55rem; font-weight: 700; color: var(--ink); }
.mats li small { font-size: .88rem; font-weight: 500; color: #3b2f35; }
.mat-price { font-size: 1.7rem; font-weight: 700; }
.mat-price small { font-size: .82rem; font-weight: 500; color: #4a3d43; }
.mats .btn { font-weight: 600; background: var(--plum); color: #fff; border-color: var(--plum); }

/* classes */
#classes .level-tag { font-size: .8rem; font-weight: 700; background: var(--plum); color: #fff; }
#classes .levels p { font-size: .86rem; font-weight: 500; color: #3b2f35; line-height: 1.4; }
.classes-btn { font-size: 1rem; font-weight: 600; padding: .6rem 1.5rem; }

/* enlarged view */
.lb-title { font-size: 2rem; font-weight: 700; }
.lb-note { font-size: 1.3rem; font-weight: 700; }
.lb-action { font-size: 1rem; font-weight: 600; }

@media (min-width: 761px) and (max-height: 820px) {
  .brand { font-size: 1.7rem; }
  .nav-tag { font-size: .9rem; }
  .box-head { padding: .5rem 1rem .45rem; }
  .box-head h2 { font-size: 1.55rem; }
  .box-head p { font-size: .8rem; }
  .box-link { font-size: .8rem; padding: .25rem .7rem; }
  .mats strong { font-size: 1.2rem; }
  .mats li small { font-size: .74rem; }
  .mat-price { font-size: 1.25rem; }
  #classes .level-tag { font-size: .66rem; }
  #classes .levels p { font-size: .76rem; }
  .classes-btn { font-size: .86rem; padding: .4rem 1.1rem; }
}
@media (max-width: 760px) {
  .brand { font-size: 1.7rem; }
  .box-head h2 { font-size: 1.7rem; }
}


/* ---------- Phones: each clothes box is one row you swipe sideways ---------- */
@media (max-width: 760px) {
  .board { gap: 12px; }
  .box-body { padding: .6rem; }
  .thumbs {
    display: flex; gap: .5rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -.6rem; padding: 0 .6rem .2rem;   /* thumbnails run to the box edge */
  }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumb { flex: 0 0 27%; scroll-snap-align: start; }
  .box-head h2 { font-size: 1.55rem; }
  .box-head p { font-size: .82rem; }
}

@media (max-width: 760px) {
  .thumbs { scroll-padding-left: .6rem; }
  /* materials: price and Order button on one line */
  .mats li { grid-template-columns: 1fr auto auto; gap: .6rem; padding: .6rem .8rem; }
  .mats li .btn { grid-column: auto; padding: .4rem .9rem; }
  .mats strong { font-size: 1.25rem; }
  .mats li small { font-size: .78rem; }
  .mat-price { font-size: 1.3rem; }
  /* classes: tighter cards */
  #classes .levels { gap: .45rem; }
  #classes .levels li { padding: .55rem .75rem; }
  #classes .level-tag { margin-bottom: .3rem; }
  #classes .levels p { font-size: .82rem; }
}

/* ---------- Phones: all four boxes at a glance ---------- */
.swipe-count { display: none; }
@media (max-width: 760px) {
  :root { --head-h: 54px; }
  .site-header .btn-small { padding: .45rem 1rem; font-size: .88rem; }
  .board { gap: 10px; padding-top: 10px; }
  .box-head { flex-wrap: nowrap; align-items: center; padding: .45rem .8rem; gap: .5rem; }
  .box-head > div { min-width: 0; }
  .box-head h2 { font-size: 1.35rem; white-space: nowrap; }
  .box-head p { display: none; }
  .box-link { display: none; }   /* same action is in the enlarged view */
  .swipe-count { display: inline; margin-left: auto; font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap; }
  .box-body { padding: .5rem; }
  .thumbs { margin: 0 -.5rem; padding: 0 .5rem; scroll-padding-left: .5rem; gap: .4rem; }
  .thumb { flex: 0 0 23%; }

  /* materials: small cards side by side */
  .mats { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mats::-webkit-scrollbar { display: none; }
  .mats li { flex: 0 0 calc(50% - .25rem); scroll-snap-align: start; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: .3rem .5rem; padding: .55rem .7rem; }
  .mats li > div { grid-column: 1; }
  .mats li small { display: none; }
  .mats strong { font-size: 1.15rem; }
  .mat-price { grid-column: 2; grid-row: 1; font-size: 1.15rem; line-height: 1.1; }
  .mat-price small { display: block !important; font-size: .68rem; }
  .mats li .btn { grid-column: 1 / -1; grid-row: 2; padding: .3rem; font-size: .82rem; text-align: center; }

  /* classes: three level cards in a swipe row, button beside the title */
  #classes .box-body { gap: .45rem; }
  #classes .levels { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  #classes .levels::-webkit-scrollbar { display: none; }
  #classes .levels li { flex: 0 0 64%; scroll-snap-align: start; padding: .5rem .65rem; }
  #classes .level-tag { font-size: .62rem; padding: .18rem .55rem; margin-bottom: .25rem; }
  #classes .levels p { font-size: .76rem; line-height: 1.35; }
  .classes-btn { padding: .4rem 1rem; font-size: .82rem; }
}
