/* Miele Beauty: mobile first. Multi-column rules live only inside min-width queries. */

:root {
  --mb-cream: #F7F1E8;
  --mb-fold: #ECE2D2;
  --mb-sage: #9AA295;
  --mb-ink: #2A211C;
  --mb-body: #4A3F38;
  --mb-muted: #74675D;
  --mb-honey: #8A5A2B;
  --mb-honey-deep: #5E3B19;
  --mb-honey-light: #C4925E;
  --mb-slate: #252B29;
  --mb-on-slate: #F1EADF;
  --mb-on-slate-muted: #B7B9B0;
  --mb-veil: rgba(247, 241, 232, .88);
  --mb-line: rgba(42, 33, 28, .16);
  --mb-line-slate: rgba(241, 234, 223, .18);

  --mb-serif: "Cormorant Garamond", "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mb-sans: "Helvetica Neue", Helvetica, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mb-ease: cubic-bezier(.22, 1, .36, 1);

  --side: 20px;
  --head: 56px;
  --head-s: 52px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--mb-cream);
  color: var(--mb-body);
  font: 400 16px/1.65 var(--mb-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.mb-lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--mb-honey); outline-offset: 2px; }
.mb-nowrap { white-space: nowrap; }

.mb-wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--side));
  margin-inline: auto;
  padding-inline: var(--side);
}

/* ---------- Glyphs ---------- */
.mb-glyph {
  display: block;
  flex: none;
  width: 44px;
  height: 22px;
  fill: none;
  stroke: var(--mb-honey);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.mb-glyphs { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Type ---------- */
.mb-label {
  font: 500 11px/1.5 var(--mb-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mb-honey);
  margin: 0 0 20px;
}
.mb-label:has(.mb-glyphs), .mb-head .mb-label, .mb-split__a .mb-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.mb-h2 {
  font: italic 400 clamp(2.6rem, 6.4vw, 5.6rem)/.95 var(--mb-serif);
  letter-spacing: -.025em;
  color: var(--mb-ink);
  margin: 0 0 24px;
}
.mb-h2 > span { display: block; }
.mb-h2 .mb-h2__accent { color: var(--mb-honey); padding-left: .3em; }

.mb-h3 {
  font: italic 500 clamp(2rem, 3.6vw, 3.2rem)/1 var(--mb-serif);
  color: var(--mb-ink);
  margin: 12px 0 12px;
}

.mb-big {
  font: italic 400 clamp(1.6rem, 3vw, 2.6rem)/1.2 var(--mb-serif);
  color: var(--mb-ink);
  margin: 0 0 32px;
}

.mb-lead { max-width: 34em; color: var(--mb-body); }

/* ---------- Links & buttons ---------- */
.mb-tlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 15px/1.4 var(--mb-sans);
  color: var(--mb-ink);
  text-decoration: none;
  transition: color 240ms var(--mb-ease);
}
.mb-tlink span {
  background-image: linear-gradient(var(--mb-honey), var(--mb-honey));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 3px;
}
.mb-tlink:hover { color: var(--mb-honey-deep); }
.mb-tlink:hover span, .mb-tlink:focus-visible span { animation: mb-ul 320ms var(--mb-ease); }
@keyframes mb-ul { from { background-size: 0 1px; } to { background-size: 100% 1px; } }

.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 24px;
  border: 0;
  border-radius: 0;
  background: var(--mb-ink);
  color: var(--mb-cream);
  font: 500 12px/1.3 var(--mb-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 240ms var(--mb-ease), transform 120ms var(--mb-ease);
}
.mb-btn:hover { background: var(--mb-honey-deep); }
.mb-btn:active { transform: scale(.98); }
.mb-btn:focus-visible { outline: 2px solid var(--mb-honey); outline-offset: 2px; }
.mb-btn--full { width: 100%; }

/* ---------- Header ---------- */
.mb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--mb-veil);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mb-line);
  transition: background-color 240ms var(--mb-ease);
}
.mb-header.is-scrolled, .mb-header.is-menu { background: var(--mb-cream); }
.mb-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--head);
  transition: height 240ms var(--mb-ease);
}
.mb-header.is-scrolled .mb-header__in { height: var(--head-s); }

.mb-logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  color: var(--mb-ink);
  text-decoration: none;
  line-height: 1;
}
.mb-logo__name {
  font: 500 20px/1 var(--mb-serif);
  letter-spacing: .22em;
}
.mb-logo__sub {
  font: 500 9px/1 var(--mb-sans);
  letter-spacing: .3em;
  color: var(--mb-muted);
  margin-top: 5px;
}

.mb-nav { display: none; }
.mb-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 12px/1 var(--mb-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mb-ink);
  text-decoration: none;
  transition: color 240ms var(--mb-ease);
}
.mb-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: .18em; bottom: 10px;
  height: 1px;
  background: var(--mb-honey);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--mb-ease);
}
.mb-nav__link:hover { color: var(--mb-honey-deep); }
.mb-nav__link:hover::after, .mb-nav__link:focus-visible::after { transform: scaleX(1); }

.mb-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}
.mb-toggle__bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.25px;
  background: var(--mb-ink);
  transition: transform 240ms var(--mb-ease);
}
.mb-toggle__bar:nth-child(1) { top: 18px; }
.mb-toggle__bar:nth-child(2) { top: 25px; }
.mb-toggle[aria-expanded="true"] .mb-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.mb-toggle[aria-expanded="true"] .mb-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mb-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--mb-honey);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Mobile menu ---------- */
.mb-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--head) + 24px) var(--side) 112px;
  background: var(--mb-cream);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 240ms var(--mb-ease);
}
.mb-menu[hidden] { display: none; }
.mb-menu.is-open { opacity: 1; }
.mb-menu__nav { display: flex; flex-direction: column; }
.mb-menu__link {
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--mb-line);
  font: italic 400 clamp(2.2rem, 10vw, 3rem)/1.1 var(--mb-serif);
  color: var(--mb-ink);
  text-decoration: none;
}
.mb-menu__link:hover { color: var(--mb-honey-deep); }
.mb-menu__contact { display: flex; flex-direction: column; gap: 8px; }
.mb-menu__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Hero ---------- */
.mb-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--head);
  min-height: 680px;
  min-height: max(680px, 100vh);
  min-height: max(680px, 100svh);
}
.mb-hero__media { position: relative; min-width: 0; }
.mb-hero__frame {
  height: 46vh;
  height: clamp(42svh, calc(100svh - 410px), 54svh);
  overflow: hidden;
  background: var(--mb-sage);
}
.mb-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 83%;
  transform: scale(1.4);
  transform-origin: 58% 83%;
}
.mb-hero__cut {
  position: absolute;
  right: var(--side);
  bottom: -28px;
  width: clamp(128px, 22vw, 200px);
  aspect-ratio: 8 / 5;
  border: 4px solid var(--mb-cream);
  background: var(--mb-cream);
  overflow: hidden;
  z-index: 2;
}
.mb-hero__cut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.mb-hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 44px var(--side) 16px;
}
.mb-hero__label { margin-bottom: 12px; }
.mb-hero__title {
  font: italic 400 clamp(3.6rem, 12vw, 10.5rem)/.88 var(--mb-serif);
  letter-spacing: -.03em;
  color: var(--mb-ink);
  margin: 0 0 20px;
}
.mb-line { display: block; }
.mb-line__in { display: block; white-space: nowrap; }
.mb-line--accent { color: var(--mb-honey); }
.mb-line--accent .mb-line__in { padding-left: .3em; }

.mb-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.mb-index__item {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  font: 500 11px/1 var(--mb-sans);
  letter-spacing: .22em;
  color: var(--mb-ink);
  text-decoration: none;
  transition: color 240ms var(--mb-ease);
}
.mb-index__item:hover { color: var(--mb-honey-deep); }
.mb-index__item:hover .mb-glyph path { stroke-dasharray: 1 2; animation: mb-draw 900ms var(--mb-ease); }

.mb-hero__intro { max-width: 34em; color: var(--mb-body); }
.mb-hero__actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.mb-hero__wa { align-self: flex-end; }

/* ---------- Notice band ---------- */
.mb-notice { background: var(--mb-fold); }
.mb-notice__in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 28px;
  padding-bottom: 16px;
}
.mb-notice__label { margin: 0; }
.mb-notice__text { color: var(--mb-ink); min-width: 0; }

/* ---------- Sections ---------- */
.mb-sec { padding: 72px 0; }
.mb-head { margin-bottom: 48px; }
.mb-head > * { min-width: 0; }
.mb-end { margin-top: 48px; display: flex; }

/* Photo frames */
.mb-ph {
  position: relative;
  overflow: hidden;
  background: var(--mb-sage);
}
.mb-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--mb-ease);
}
.mb-ph--sq { aspect-ratio: 1 / 1; }
.mb-ph--34 { aspect-ratio: 3 / 4; }
.mb-ph--45 { aspect-ratio: 4 / 5; }
.mb-ph--45 img { object-position: 50% 58%; }
.mb-ph--nat img { height: auto; }
.mb-img--top { object-position: 50% 40%; }

/* Treatments */
.mb-treats { display: flex; flex-direction: column; gap: 64px; }
.mb-treat { min-width: 0; }
.mb-treat__meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.mb-num { font: italic 400 28px/1 var(--mb-serif); color: var(--mb-honey); }
.mb-treat__desc { max-width: 30em; }
.mb-deposit {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--mb-line);
  font: 500 12px/1.4 var(--mb-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mb-ink);
}

/* Work */
.mb-work { background: var(--mb-slate); color: var(--mb-on-slate); }
.mb-work .mb-label { color: var(--mb-on-slate-muted); }
.mb-work .mb-glyph { stroke: var(--mb-honey-light); }
.mb-work .mb-h2 { color: var(--mb-on-slate); }
.mb-work .mb-h2__accent { color: var(--mb-honey-light); }
.mb-work .mb-tlink { color: var(--mb-on-slate); }
.mb-work .mb-tlink span { background-image: linear-gradient(var(--mb-honey-light), var(--mb-honey-light)); }
.mb-work .mb-tlink:hover { color: #fff; }
.mb-work :focus-visible, .mb-foot :focus-visible { outline-color: var(--mb-honey-light); }

.mb-group {
  margin: 0 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--mb-line-slate);
}
.mb-group--lash { margin-top: 72px; }
.mb-mason { display: flex; flex-direction: column; gap: 40px; }
.mb-col { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.mb-lash { display: flex; flex-direction: column; gap: 40px; }
.mb-fig { min-width: 0; }
.mb-fig .mb-ph { background: var(--mb-slate); }
.mb-cap {
  margin-top: 12px;
  font: 400 13px/1.5 var(--mb-sans);
  color: var(--mb-on-slate-muted);
}
.mb-cap span {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.mb-cap span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--mb-honey-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--mb-ease);
}
.mb-fig:active .mb-ph img { transform: scale(1.04); transition-duration: 600ms; }
.mb-fig:active .mb-cap span::after { transform: scaleX(1); }

/* About */
.mb-about { background: var(--mb-fold); }
.mb-split > * { min-width: 0; }
.mb-facts { margin-top: 24px; border-bottom: 1px solid var(--mb-line); }
.mb-facts li {
  position: relative;
  padding: 20px 0 20px 44px;
  border-top: 1px solid var(--mb-line);
  font-size: 17px;
  line-height: 1.55;
  color: var(--mb-ink);
}
.mb-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 33px;
  width: 12px;
  height: 1px;
  background: var(--mb-honey);
  transition: width 240ms var(--mb-ease);
}
.mb-facts li:hover::before { width: 28px; }

/* Booking */
.mb-steps { margin-top: 24px; border-bottom: 1px solid var(--mb-line); }
.mb-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--mb-line);
  color: var(--mb-ink);
}
.mb-steps li > * { min-width: 0; }
.mb-steps li::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 12px;
  height: 1px;
  background: var(--mb-honey);
  transition: width 240ms var(--mb-ease);
}
.mb-steps li:hover::before { width: 28px; }
.mb-steps__n { font: italic 400 30px/.9 var(--mb-serif); color: var(--mb-honey); }

.mb-formwrap { margin-top: 64px; }
.mb-field { margin-bottom: 28px; }
.mb-field__label {
  display: block;
  font: 500 11px/1.5 var(--mb-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mb-honey);
}
.mb-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--mb-ink);
  border-radius: 0;
  background: transparent;
  font: 400 16px/1.4 var(--mb-sans);
  color: var(--mb-ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 240ms var(--mb-ease), box-shadow 240ms var(--mb-ease);
}
.mb-input:focus { border-bottom-color: var(--mb-honey); box-shadow: 0 1px 0 var(--mb-honey); }
.mb-input::placeholder { color: var(--mb-muted); opacity: 1; }
.mb-select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232A211C' stroke-width='1.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
input[type="date"].mb-input { line-height: 50px; }
.mb-textarea { height: auto; min-height: 120px; padding: 14px 0; resize: vertical; }
.mb-form__send { width: 100%; margin-top: 8px; }

.mb-status__box {
  margin-top: 24px;
  padding: 24px;
  background: var(--mb-fold);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.mb-status__box[hidden] { display: none; }
.mb-status__box.is-shown { animation: mb-fade 600ms var(--mb-ease) backwards; }
.mb-status__text { color: var(--mb-ink); }
.mb-status__row { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.mb-note { margin-top: 16px; font: 400 13px/1.5 var(--mb-sans); color: var(--mb-muted); }

/* Find us */
.mb-contacts { margin-top: 40px; border-bottom: 1px solid var(--mb-line); }
.mb-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 20px 0;
  border-top: 1px solid var(--mb-line);
  color: var(--mb-ink);
  text-decoration: none;
}
.mb-contact::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 12px;
  height: 1px;
  background: var(--mb-honey);
  transition: width 240ms var(--mb-ease);
}
.mb-contact:hover::before, .mb-contact:focus-visible::before { width: 28px; }
.mb-contact__k {
  font: 500 11px/1.5 var(--mb-sans);
  letter-spacing: .22em;
  color: var(--mb-honey);
}
.mb-contact__v {
  font: italic 400 clamp(1.6rem, 3vw, 2.6rem)/1.2 var(--mb-serif);
  overflow-wrap: anywhere;
  transition: color 240ms var(--mb-ease);
}
.mb-contact:hover .mb-contact__v { color: var(--mb-honey-deep); }

/* Footer */
.mb-foot {
  background: var(--mb-slate);
  color: var(--mb-on-slate);
  padding: 72px 0 148px;
  overflow: hidden;
}
.mb-foot__name {
  font: italic 400 clamp(3rem, 11vw, 9rem)/.9 var(--mb-serif);
  letter-spacing: -.03em;
  color: rgba(241, 234, 223, .22);
  margin: 0 0 28px;
}
.mb-foot__glyphs { display: flex; gap: 10px; margin-bottom: 32px; }
.mb-foot .mb-glyph { stroke: var(--mb-on-slate-muted); }
.mb-foot__row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--mb-line-slate);
}
.mb-foot__line { font: 400 13px/1.5 var(--mb-sans); color: var(--mb-on-slate-muted); min-width: 0; }
.mb-foot__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.mb-foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 13px/1 var(--mb-sans);
  color: var(--mb-on-slate);
  text-decoration: none;
  transition: color 240ms var(--mb-ease);
}
.mb-foot__links a:hover { color: var(--mb-honey-light); }
.mb-foot__top { margin-top: 16px; color: var(--mb-on-slate); }
.mb-foot__top span { background-image: linear-gradient(var(--mb-honey-light), var(--mb-honey-light)); }
.mb-foot__top:hover { color: #fff; }

/* Mobile contact bar */
.mb-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--mb-cream);
  border-top: 1px solid var(--mb-line);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 240ms var(--mb-ease), visibility 0s linear 240ms;
}
.mb-bar.is-on {
  transform: none;
  visibility: visible;
  transition: transform 240ms var(--mb-ease), visibility 0s;
}
.mb-bar > * { min-width: 0; }
.mb-btn--bar {
  min-height: 48px;
  padding: 6px 14px;
  letter-spacing: .12em;
}

/* ---------- Hover (pointer devices) ---------- */
@media (hover: hover) {
  .mb-treat:hover .mb-ph img { transform: scale(1.03); transition-duration: 600ms; }
  .mb-treat:hover .mb-treat__meta .mb-glyph path { stroke-dasharray: 1 2; animation: mb-draw 900ms var(--mb-ease); }
  .mb-fig:hover .mb-ph img { transform: scale(1.04); transition-duration: 600ms; }
  .mb-fig:hover .mb-cap span::after { transform: scaleX(1); }
}

/* ---------- Motion (only when JS adds html.mb-motion) ---------- */
@keyframes mb-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes mb-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mb-zoom { from { transform: scale(1.5); } to { transform: scale(1.4); } }
@keyframes mb-cut { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes mb-draw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }

.mb-motion .mb-hero .mb-line {
  overflow: hidden;
  padding-top: .12em;
  padding-bottom: .2em;
  padding-right: .12em;
  margin-top: -.12em;
  margin-bottom: -.2em;
}
.mb-motion .mb-hero .mb-line__in { animation: mb-rise 900ms var(--mb-ease) 100ms backwards; }
.mb-motion .mb-hero .mb-line:nth-child(2) .mb-line__in { animation-delay: 220ms; }
.mb-motion .mb-hero [data-in] {
  animation: mb-fade 600ms var(--mb-ease) backwards;
  animation-delay: calc(520ms + var(--d, 0) * 80ms);
}
.mb-motion .mb-hero__frame img { animation: mb-zoom 1600ms var(--mb-ease) backwards; }
.mb-motion .mb-hero__cut { animation: mb-cut 700ms var(--mb-ease) 600ms backwards; }
.mb-motion .mb-index .mb-glyph path {
  stroke-dasharray: 1 2;
  animation: mb-draw 900ms var(--mb-ease) backwards;
  animation-delay: calc(560ms + var(--g, 0) * 150ms);
}
.mb-settled .mb-hero *, .mb-settled .mb-hero__cut { animation: none !important; }
.mb-settled .mb-index__item:hover .mb-glyph path { animation: mb-draw 900ms var(--mb-ease) !important; }

/* Scroll reveal: wrapper (.mb-rv) stays visible and is observed; children fade in. */
.mb-motion .mb-rv .rv {
  transition: opacity 700ms var(--mb-ease), transform 700ms var(--mb-ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.mb-motion .mb-rv:not(.is-in) .rv { opacity: 0; transform: translateY(24px); }
.mb-motion .mb-rv:not(.is-in) .mb-ph img { transform: scale(1.08); }
.mb-motion .mb-rv .mb-label .mb-glyph path {
  stroke-dasharray: 1 2;
  transition: stroke-dashoffset 900ms var(--mb-ease) 150ms;
}
.mb-motion .mb-rv:not(.is-in) .mb-label .mb-glyph path { stroke-dashoffset: 1.02; }
.mb-col--mid { will-change: transform; }

/* ---------- ≥400px ---------- */
@media (min-width: 400px) {
  .mb-label, .mb-field__label, .mb-contact__k { letter-spacing: .3em; }
}

/* ---------- ≥600px ---------- */
@media (min-width: 600px) {
  :root { --side: 32px; }
  .mb-index__item { flex-direction: row; align-items: center; gap: 10px; }
  .mb-hero__actions { flex-direction: row; align-items: center; gap: 28px; }
  .mb-hero__btnwrap { order: -1; }
  .mb-hero__btn { width: auto; padding-inline: 32px; }
  .mb-hero__wa { align-self: auto; }
  .mb-form__send { width: auto; padding-inline: 40px; }
}

/* ---------- ≥761px: desktop nav ---------- */
@media (min-width: 761px) {
  :root { --head: 64px; --head-s: 56px; }
  .mb-nav { display: flex; align-items: center; gap: 28px; }
  .mb-toggle { display: none; }
  .mb-menu, .mb-menu[hidden] { display: none; }
  .mb-bar { display: none; }
  .mb-logo__name { font-size: 22px; }
  .mb-foot { padding-bottom: 96px; }
}

/* ---------- ≥768px: 12-column layouts ---------- */
@media (min-width: 768px) {
  .mb-sec { padding: 112px 0; }

  .mb-notice__in {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .mb-notice__label { flex: none; }
  .mb-notice__text { flex: 1 1 auto; }
  .mb-notice__link { flex: none; }

  .mb-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
    margin-bottom: 72px;
  }
  .mb-head__a { grid-column: 1 / 8; }
  .mb-head > .mb-lead { grid-column: 8 / 13; margin-bottom: 28px; }

  .mb-treats {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 112px;
    align-items: start;
  }
  .mb-treat:nth-child(1) { grid-column: 1 / 6; }
  .mb-treat:nth-child(2) { grid-column: 7 / 12; margin-top: 112px; }
  .mb-treat:nth-child(3) { grid-column: 2 / 7; }
  .mb-treat:nth-child(4) { grid-column: 8 / 13; margin-top: -64px; }
  .mb-end { margin-top: 72px; }

  .mb-mason {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
  .mb-col { gap: 48px; }
  .mb-col--mid { margin-top: 72px; }
  .mb-group--lash { margin-top: 112px; }
  .mb-lash {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .mb-fig--a { grid-column: 1 / 7; }
  .mb-fig--b { grid-column: 8 / 13; margin-top: 72px; }
  .mb-end--right { justify-content: flex-end; }

  .mb-split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .mb-split__a { grid-column: 1 / 6; }
  .mb-split__b { grid-column: 7 / 13; }
  .mb-facts, .mb-contacts { margin-top: 0; }
  .mb-formwrap { margin-top: 0; }
  .mb-steps { margin-top: 40px; }

  .mb-foot__row { flex-direction: row; justify-content: space-between; align-items: center; gap: 32px; }
  .mb-foot__line { flex: 1 1 auto; }
  .mb-foot__links { justify-content: flex-end; flex: 0 1 auto; }
}

/* ---------- ≥1024px: split hero ---------- */
@media (min-width: 1024px) {
  :root { --side: 48px; }
  .mb-sec { padding: 144px 0; }

  .mb-hero {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) repeat(12, minmax(0, 78px)) minmax(24px, 1fr);
    column-gap: 24px;
    padding-top: 0;
    min-height: clamp(640px, 100vh, 900px);
    min-height: clamp(640px, 100svh, 900px);
  }
  .mb-hero__media { grid-column: 8 / -1; grid-row: 1; height: 100%; }
  .mb-hero__frame { height: 100%; }
  .mb-hero__cut {
    right: auto;
    left: calc(-1 * min(120px, 8vw));
    bottom: 32px;
    width: clamp(200px, 20vw, 260px);
  }
  .mb-hero__body {
    grid-column: 2 / 8;
    grid-row: 1;
    justify-content: flex-end;
    padding: 104px 0 56px;
  }
  .mb-hero__body > :not(.mb-hero__title) { max-width: calc(83.333% - 4px); }
  .mb-hero__title { font-size: clamp(3.6rem, 9.2vw, 8.4rem); margin-bottom: 28px; }
  .mb-hero__label { margin-bottom: 20px; }
  .mb-index { margin-bottom: 24px; }
  .mb-hero__actions { margin-top: 0; padding-top: 28px; }

  .mb-foot { padding: 112px 0 72px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 120ms !important;
    transition-delay: 0s !important;
  }
  .mb-col--mid { transform: none !important; }
}

/* 사진 판 고르기용 감싸개 (optimize_images.py): 배치에 끼지 않음 */
picture{display:contents}
