/* Shared stylesheet for every page of the Baekseol mockup (header, menus, footer, cards, and the home sections). */
/* Layout: follows amarteskincare.com's home section by section (announcement, header, full-bleed hero,
   how-to-shop band, feature product, bestseller carousel, professionals, concerns, Instagram, footer).
   Only the palette (green/navy -> rose) and the Baekseol sections differ.
   Single light look on purpose: it previews a brand site. */
:root {
  --bg: #ffffff;
  /* tone taken from the earlier Baekseol page: white ground, near-black type and buttons, soft pink accents */
  --soft: #fbe9eb;
  --fg: #1d1d1f;
  --muted: #77777a;
  --line: #f1e2e4;
  --deep: #a9506a;      /* announcement bar: deep rose, same family as the logo and buttons */
  --ink: #3b1d2a;       /* headings: very dark plum (the reference uses navy) */
  --logo: #8a3550;      /* text logo: deep rose (the reference uses dark green) */
  --btn: #a44a64;       /* buttons and emphasis: rose, same family as the logo (the reference uses teal) */
  --on: #ffffff;
  --badge: #f3b2b4;
  --note: #5b6b8c;
  --note-bg: #eef1f7;
  --font: "Montserrat", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.6; }
.in {
  max-width: 1100px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.review { background: var(--note-bg); color: var(--note); font-size: 13px; }
.review .in { padding-block: 10px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--note); border: 1px dashed var(--note); border-radius: 4px; padding: 1px 7px; background: var(--note-bg); letter-spacing: 0; text-transform: none; }

.announce { background: var(--deep); color: var(--on); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; }
.announce .in { padding-block: 7px; }
.ann-m { display: none; }   /* the phone wording of the bar: shown instead of the full one at phone width */

/* header floats over the hero with no background, and turns white once the hero has scrolled past */
.header { background: transparent; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease; }
.header.hide { transform: translateY(-110%); }
/* over the hero: white logo and menu on a soft dark fade, so they read on light pink and on dark hair alike */
.header:not(.solid)::before { content: ""; position: absolute; inset: 0 0 -46px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(48, 16, 30, 0.4) 0%, rgba(48, 16, 30, 0.16) 60%, transparent 100%); }
.header:not(.solid) .logo, .header:not(.solid) .nav, .header:not(.solid) .lang button { color: #fff; }
.header .logo, .header .nav, .header .lang button { transition: color 0.25s ease; }
.header.solid { background: var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); }
.header + .hero { margin-top: calc(-1 * var(--hh, 62px)); }
.header .in { max-width: 1440px; padding-block: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.logo { font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: none; padding: 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--btn); color: var(--on); }

.hero { position: relative; height: 42.4vw; min-height: 320px; overflow: hidden; background: var(--soft); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
/* model slides: the square photo is scaled so the face fills about half the hero width, as on the reference site */
.slide img { position: absolute; max-width: none; height: auto; display: block; }
.slide.m1 { background: #dec9ad; }
.slide.m1 { background: #dec9ad; }
.slide.m1 img { width: 104%; height: auto; left: 15%; top: -20vw;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%); mask-image: linear-gradient(90deg, transparent 0, #000 6%); }

/* full-width pink band that separates sections, as on the earlier Baekseol page */
.bandsec { position: relative; height: 450px; margin-bottom: 100px; overflow: hidden; background: var(--soft); }
.bandsec img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bandtext { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-inline: 16px; color: var(--fg); }
.bandtext h2 { font-size: 24px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.bandtext p { margin-top: 22px; font-size: 16px; }
.bandtext a { margin-top: 16px; background: var(--btn); color: var(--on); border-radius: 6px; padding: 0 12px; height: 34px; line-height: 34px; font-size: 14px; font-weight: 500; }
/* sections rise 50px and fade in as they scroll into view (only applied by script, so the page works without it) */
.mov { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.mov.shown { opacity: 1; transform: none; }

/* product card: price, and the extra block that appears on hover (divider, pill button, quick view) */
.pprice { margin-top: 8px; font-size: 14px; line-height: 17px; font-weight: 600; color: var(--ink); }
.hov { display: flex; flex-direction: column; align-items: center; opacity: 0; transition: opacity 0.2s ease; }
.card:hover .hov, .card:focus-within .hov { opacity: 1; }
.hov i { width: 22px; height: 1px; background: var(--ink); margin-top: 8px; }
.hov .choose { margin-top: 19px; width: 190px; max-width: 100%; height: 34px; border: 0; border-radius: 17px; background: var(--soft); color: var(--ink); font-size: 13.5px; }
.hov .qv { margin-top: 20px; border: 0; background: none; padding: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.card .pic { display: block; }

.modal { position: fixed; inset: 0; z-index: 20; background: rgba(40, 20, 28, 0.45); display: grid; place-items: center; padding: 16px; }
.modal .panel { position: relative; background: var(--bg); border-radius: 10px; width: min(100%, 860px); max-height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 28px; align-items: center; }
.modal .panel img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.modal .mi { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.modal h3 { font-size: 20px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); line-height: 1.3; }
.modal .msub { font-size: 14px; color: var(--muted); }
.modal .mprice { font-size: 20px; font-weight: 600; color: var(--ink); }
.modal .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; padding: 6px 10px; color: var(--ink); }
@media (max-width: 620px) { .modal .panel { grid-template-columns: minmax(0, 1fr); } }
/* slide 2: head-and-shoulders portrait on the right, text on the left, backdrop colour continues the photo's own */
.slide.m2 { background: #fad3d0; }
/* slide 2: the portrait fills the right half as a clean rectangle; the left half is the same pink as slide 1 */
.slide.m2 img { width: 100%; height: 100%; left: 0; top: 0; object-fit: cover; object-position: 50% 35%; }
/* slide 3: tall portrait shown smaller on the right; the rest is the photo's own skin-beige tone, blended softly */
.slide.m3 { background: #cca995; }
.slide.m3 img { width: 100%; height: 100%; left: 0; top: 0; object-fit: cover; object-position: 50% 36%; }

/* rounded banner slider, as on the earlier Baekseol page */
.banner { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1920 / 450; min-height: 230px; width: 100%; background: var(--soft); }
.bslide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.bslide.on { opacity: 1; pointer-events: auto; }
.bslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btext { position: absolute; left: 0; top: 0; bottom: 0; width: min(100%, 620px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 16px 16px 16px max(64px, 4%); color: var(--fg); }
.btext h3 { font-size: clamp(18px, 2vw, 25px); font-weight: 500; line-height: 1.3; }
.btext p { font-size: clamp(13px, 1.3vw, 17px); }
.btext a { margin-top: 8px; background: var(--btn); color: var(--on); border-radius: 6px; padding: 9px 14px; font-size: 13px; font-weight: 500; text-transform: uppercase; }
.banner .arr { position: absolute; top: 50%; transform: translateY(-50%); }
.banner .arr.l { left: 14px; } .banner .arr.r { right: 14px; }
.bdots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.bdots button { height: 5px; width: 8px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.8); transition: width 0.3s; }
.bdots button[aria-pressed="true"] { width: 22px; background: var(--btn); }
@media (min-width: 821px) {
  .slide .hero-text { align-items: flex-start; text-align: left; right: 46%; padding-left: max(20px, 6vw); }
  .slide.m1 .hero-logo { font-size: clamp(52px, 6.6vw, 96px); }
}
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 1; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--on); background: transparent; box-shadow: 0 0 4px rgba(40, 10, 20, 0.35); }
.dots button[aria-pressed="true"] { background: var(--on); }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--on); text-shadow: 0 2px 14px rgba(40, 10, 20, 0.45); padding-inline: 16px; }
.hero-logo { font-weight: 700; font-size: clamp(52px, 8.4vw, 112px); line-height: 1; letter-spacing: -0.02em; }
.hero-a { font-weight: 700; font-size: clamp(15px, 2.1vw, 27px); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 10px; }
.hero-b { font-weight: 300; font-style: italic; font-size: clamp(15px, 2.1vw, 27px); letter-spacing: 0.06em; text-transform: uppercase; }

.how { background: linear-gradient(180deg, var(--soft) 0%, #fdf6f8 70%, var(--bg) 100%); }
.how .in { padding-block: 56px 28px; display: flex; flex-direction: column; gap: 30px; }
.how-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.how-left { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.how h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.22; letter-spacing: 0.04em; color: var(--ink); }
.how p { font-size: 13.5px; color: var(--fg); max-width: 44ch; }
.pill { display: inline-block; background: var(--btn); color: var(--on); border-radius: 999px; padding: 11px 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; border: 0; }
.pill.caps { text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.06em; padding: 12px 24px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { background: var(--bg); border-radius: 24px; box-shadow: 0 6px 24px rgba(111, 38, 64, 0.1); padding: 30px 16px 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.ico { position: relative; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; color: var(--btn); margin-bottom: 8px; }
.ico b { position: absolute; top: -7px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--on); font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.step p { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.help { text-align: center; font-size: 12px; color: var(--muted); }

.sec .in { padding-block: 40px; display: flex; flex-direction: column; gap: 30px; }
.title { text-align: center; font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.title-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.car { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
/* arrows of the carousels and of the banner: a drawn chevron, large and dark (the "‹" glyph alone was too faint to find),
   with no circle around it (the client found the round button odd) */
.car > button, .banner .arr { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink);
  font-size: 0; line-height: 0; display: flex; align-items: center; justify-content: center; transition: color 0.15s ease; }
.car > button::before, .banner .arr::before { content: ""; width: 16px; height: 16px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateX(4px) rotate(45deg); }
.car > button[data-dir="1"]::before, .banner .arr.r::before { transform: translateX(-4px) rotate(-135deg); }
.car > button:hover, .banner .arr:hover { color: var(--btn); }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.pic { position: relative; width: 100%; aspect-ratio: 1; }
.pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asia { position: absolute; top: 6%; right: 8%; background: var(--btn); color: var(--on); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 999px; }
.pname { font-size: 13.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); line-height: 1.35; }
.psub { font-size: 11.5px; font-weight: 300; color: var(--muted); }

.feat { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; max-width: 880px; margin: 0 auto; width: 100%; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { border: 2px solid transparent; border-radius: 6px; background: none; padding: 0; overflow: hidden; aspect-ratio: 1; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.big { position: relative; aspect-ratio: 1; }
.big img { width: 100%; height: 100%; object-fit: contain; display: block; }
.round { position: absolute; top: 4%; right: 2%; width: 88px; height: 88px; border-radius: 50%; background: var(--badge); color: var(--on); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; display: grid; place-items: center; text-align: center; }
.info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.info h3 { font-size: 20px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); line-height: 1.3; }
.info .sub { font-size: 13px; font-weight: 300; color: var(--muted); }
.info .row { font-size: 11px; letter-spacing: 0.04em; color: var(--ink); }
.info .row b { font-weight: 700; text-transform: uppercase; margin-right: 6px; }
.info ul { font-size: 12.5px; color: var(--fg); display: flex; flex-direction: column; gap: 2px; }

.pro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 840px; margin: 0 auto; width: 100%; }
.portrait .tag { align-self: flex-start; }
.sec.last .in:first-child { padding-bottom: 120px; }
.sec.bansec .in { padding-bottom: 120px; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.pro-text { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; min-width: 0; }
.pro-text p { font-size: 13px; max-width: 40ch; }
.pro-text strong { font-size: 17px; font-weight: 600; color: var(--ink); }

.concerns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.concern { position: relative; aspect-ratio: 5 / 4; overflow: hidden; display: block; border-radius: 14px; }
.cprod { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--fg); }
.cprod img { width: 84px; height: 84px; object-fit: contain; display: block; }
.cprod span { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cprice { font-size: 14px; font-weight: 600; color: var(--fg); }
.cprice s { color: var(--muted); font-weight: 400; margin-right: 8px; }
.subtitle { color: var(--muted); font-size: 14.5px; text-align: center; }
.concern img { width: 100%; height: 100%; object-fit: cover; display: block; }
.concern span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--on); font-size: clamp(16px, 2.3vw, 30px); font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(40, 10, 20, 0.4); padding: 8px; }

.insta-title { text-align: center; font-size: 15px; font-weight: 700; color: var(--fg); }
.insta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.footer .in { padding-block: 40px 48px; display: grid; grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)) 1.2fr; gap: 28px 20px; font-size: 12.5px; }
.footer .logo { font-size: 30px; }
.footer h4 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.footer li { padding-block: 3px; color: var(--fg); overflow-wrap: normal; }
.footer .soc { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-weight: 600; }

/* ---- sizes measured on amarteskincare.com at a 1920px viewport: 1360px content column, 76px header,
        34px section titles, 274px product cards 66px apart, 450px feature image, 453px portrait ---- */
.in { max-width: 1360px; }
.announce { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.announce .in { padding-block: 8px; }
.header .in { max-width: none; padding-block: 0; min-height: 76px; }
.logo { font-size: 44px; }
.nav { font-size: 13.5px; letter-spacing: 1.89px; gap: 6px 44px; }
.lang button { font-size: 13px; }
.how .in { padding-block: 94px 36px; gap: 36px; }
.how-row { grid-template-columns: minmax(0, 495px) minmax(0, 1fr); gap: 100px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.3px; }
.how h2 { letter-spacing: 1.7px; }
.how p { font-size: 16px; line-height: 28px; max-width: none; color: var(--muted); }
.pill { height: 50px; line-height: 50px; padding: 0 25px; border-radius: 30px; font-size: 15px; letter-spacing: 1px; }
.pill.caps { font-size: 13px; padding: 0 28px; }
.steps { grid-template-columns: repeat(3, minmax(0, 232px)); gap: 16px; justify-content: end; }
.step { padding: 44px 16px 36px; }
.step h3 { font-size: 16px; }
.step p { font-size: 13px; line-height: 19.5px; }
.ico { width: 56px; height: 56px; }
.help { font-size: 14px; }
.sec .in { padding-block: 58px; gap: 37px; }
.title { letter-spacing: 0.34px; line-height: 1.15; }
.car { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 14px; }
.track { gap: 66px; }
.card { flex-basis: calc((100% - 198px) / 4); gap: 4px; }
.pname { font-size: 17px; letter-spacing: 0.68px; line-height: 20.4px; margin-top: 10px; }
.psub { font-size: 13px; font-weight: 400; }
.feat { grid-template-columns: 50px minmax(0, 450px) minmax(0, 1fr); gap: 46px; max-width: 1273px; margin: 54px 0 0 87px; width: auto; }
.feat .info { padding-left: 40px; gap: 14px; }
.info h3 { font-size: 20px; letter-spacing: 1px; }
.info .sub { font-size: 14px; font-weight: 400; }
.info .row { font-size: 13px; }
.info ul { font-size: 14px; }
/* small solid seal: deep rose, tight caps, thin inner ring */
@media (max-width: 1399px) { .header .logo { font-size: 36px; } .nav { gap: 6px 22px; } .header .in { flex-wrap: nowrap; } }
.round { box-sizing: border-box; width: 76px; height: 76px; padding: 0 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.35;
  background: var(--btn); color: var(--on); box-shadow: inset 0 0 0 3px var(--btn), inset 0 0 0 4px rgba(255, 255, 255, 0.55); }
.announce { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 19.5px; }   /* as measured on the reference: 600 15px/19.5px, no tracking */
.pro { max-width: 1247px; grid-template-columns: minmax(0, 453px) minmax(0, 1fr); gap: 60px; }
.pro-text p { font-size: 16px; line-height: 28px; max-width: 46ch; }
.pro-text strong { font-size: 22px; }
.cprod { font-size: 16px; }
.footer .in { font-size: 14px; }
.footer .logo { font-size: 44px; }
.footer h4 { font-size: 14px; }
@media (min-width: 821px) {
  .header .in { padding-left: 44px; padding-right: 44px; }
}
.logo { color: var(--logo); }
/* ASIA mark: outline only, so the filled rose is kept for the main buttons */
.asia { background: transparent; color: var(--btn); border: 1px solid var(--btn); padding: 2px 8px; }
/* page end mirrors the start of the white area: white fades down into the same soft pink */
.footer { background: linear-gradient(180deg, var(--bg) 0%, #fdf6f8 30%, var(--soft) 100%); padding-top: 70px; }
.title-wrap .tag { display: none; }
.hero { height: auto; aspect-ratio: 1905 / 814; }
/* on desktop the hero plus the announcement bar fill the first screen exactly */
@media (min-width: 821px) {
  .hero { aspect-ratio: auto; height: calc(100vh - var(--herotop, 40px)); height: calc(100svh - var(--herotop, 40px)); min-height: 480px; max-height: 84vw; }
}
.logo { font-size: 49px; }
.footer .logo { font-size: 49px; }

/* ---- exact element positions from amarteskincare.com (every number below is a measured px value at 1920) ---- */
@media (min-width: 1400px) {
  .how .in { padding-block: 65px 75px; gap: 0; }
  .how-row { grid-template-columns: 495px 739px; column-gap: 82px; justify-content: start; align-items: start; }
  .how-left { gap: 0; }
  .eyebrow { line-height: 24px; }
  .how h2 { margin-top: 5px; line-height: 41.33px; font-size: 34px; }
  .how-left p { margin-top: 20px; }
  .how-left .pill { margin-top: 32px; }
  .steps { grid-template-columns: repeat(3, 233px); gap: 20px; margin-top: 38px; justify-content: start; }
  .step { height: 183px; padding: 54px 18px 0; gap: 0; border-radius: 28px; }
  .ico { width: 48px; height: 48px; margin: 0; }
  .ico b { width: 24px; height: 24px; top: -8px; right: -12px; font-size: 10px; }
  .step h3 { margin-top: 21px; line-height: 19px; }
  .step p { margin-top: 6px; }
  .help { margin-top: 36px; line-height: 24px; }

  .sec .in { padding-block: 0 58px; gap: 0; }
  .title { font-size: 34px; line-height: 41px; }
  .header .in { position: relative; }
  .nav { position: absolute; left: 50%; transform: translateX(-50%); gap: 0 36px; flex-wrap: nowrap; white-space: nowrap; }
  .car { margin-top: 36px; height: 350px; align-items: start; }
  .sec.cards .in { padding-bottom: 117px; }
  .car > button { margin-top: 109px; }   /* level with the middle of the pictures */
  .card { gap: 0; }
  .pname { margin-top: 14px; }
  .psub { line-height: 17px; }
  .sec.cards .in { padding-bottom: 142px; }

  .feat { grid-template-columns: 45px 440px minmax(0, 1fr); column-gap: 13px; margin: 24px 0 0 89px; max-width: none; align-items: start; height: 440px; }
  .thumbs { gap: 11px; align-self: center; }
  .big { width: 440px; height: 440px; }
  .round { top: 14px; right: 48px; }
  .feat .info { padding: 66px 0 0 119px; height: 312px; gap: 0; }
  .info h3 { line-height: 24px; }
  .info .sub { margin-top: 14px; line-height: 18px; }
  .info .row { margin-top: 24px; }
  .info ul { margin-top: 12px; }
  .info .pill { margin-top: auto; }

  .pro { grid-template-columns: 453px 470px; column-gap: 105px; margin: 42px 0 0 114px; width: auto; max-width: none; justify-content: start; align-items: start; }
  .pro-text { padding-top: 94px; gap: 0; }
  .pro-text p { font-size: 15px; line-height: 27.25px; max-width: none; }
  .pro-text strong { margin-top: 37px; line-height: 29px; }
  .pro-text .pill { margin-top: 44px; height: 46px; line-height: 46px; }
  .sec.prosec .in { padding-bottom: 120px; }
  .sec.last .in:first-child, .sec.bansec .in { padding-bottom: 120px; }

  .concerns { margin-top: 31px; }
  .title-wrap { gap: 6px; }

  .footer .in { padding-block: 45px 60px; grid-template-columns: 232.5px repeat(4, 231.5px) minmax(0, 1fr); gap: 0; }
  .footer h4 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
}
@media (max-width: 820px) {
  .track { gap: 20px; }
  .feat { margin: 24px 0 0; gap: 16px; }
  .feat .info { padding-left: 0; }
  .logo, .footer .logo { font-size: 32px; }
  .how .in { padding-block: 48px 28px; }
  .sec .in { padding-block: 36px; gap: 24px; }
  .header .in { min-height: 60px; padding-block: 10px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { font-size: 12px; letter-spacing: 1px; }
}

@media (max-width: 820px) {
  .nav { order: 3; width: 100%; gap: 6px 18px; }
  .how-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card { flex-basis: calc((100% - 20px) / 2); }
  .feat { grid-template-columns: 44px minmax(0, 1fr); }
  .feat .info { grid-column: 1 / -1; }
  .pro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .concerns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer .in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .insta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Shop mega menu: same build as amarteskincare.com (white 1400px sheet under the header, tab rail on the
        left, picture + arrow list on the right; px values measured at 1920). Categories follow baekseol1.cafe24.com. ---- */
.header.open { background: var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); }
.header.open::before { display: none; }
.header.open .logo { color: var(--logo); }
.header.open .nav { color: var(--ink); }
.header.open .lang button { color: var(--muted); }
.header.open .lang button[aria-pressed="true"] { color: var(--on); }
.mega { position: absolute; left: 0; right: 0; top: 100%; padding: 14px 28px 34px; visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
.mega.show { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.2s ease, transform 0.2s ease; }
.mega-sheet { max-width: 1400px; margin: 0 auto; display: flex; background: var(--bg); border-radius: 24px; box-shadow: 0 28px 60px rgba(59, 29, 42, 0.2);
  max-height: calc(100vh - 150px); overflow: auto; color: var(--ink); }
.mega-rail { flex: 0 0 250px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 30px 22px 34px 32px; border-right: 1px solid var(--line); }
.mega-eb { margin: 0 0 16px 16px; font-size: 10.5px; font-weight: 600; letter-spacing: 2.52px; line-height: 27px; text-transform: uppercase; color: var(--muted); }
.mega-tab { border: 0; background: none; text-align: left; padding: 11px 16px; border-radius: 8px; font-size: 14px; font-weight: 400; letter-spacing: 1px; line-height: 18px; color: var(--ink);
  box-shadow: inset 0 0 0 transparent; transition: background-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out; }
.mega-tab[aria-selected="true"] { background: var(--soft); font-weight: 600; box-shadow: inset 3px 0 0 var(--btn); }
.mega-div { height: 1px; margin: 10px 16px; background: var(--line); }
.mega-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-radius: 8px; font-size: 13px; line-height: 17px; color: var(--muted);
  transition: background-color 0.2s, color 0.2s; }
.mega-link:hover { background: var(--soft); color: var(--ink); }
.mega-link svg { flex: none; opacity: 0.7; }
.mega-main { flex: 1; min-width: 0; padding: 30px 38px 34px; }
.mega-panel { display: none; }
.mega-panel.on { display: block; }
.mega-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.mega-title { font-size: 16px; font-weight: 600; letter-spacing: 2.56px; text-transform: uppercase; color: var(--btn); }
.mega-all { display: flex; align-items: center; gap: 10px; padding: 11px 26px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 1.68px;
  line-height: 17px; text-transform: uppercase; white-space: nowrap; transition: background-color 0.2s; }
.mega-all:hover { background: #f6d5d9; }
.mega-grid { display: grid; grid-template-columns: minmax(300px, 40%) minmax(0, 1fr); gap: 26px; }
.mega-hero { position: relative; display: block; height: 340px; border-radius: 14px; overflow: hidden; background: var(--soft); color: #fff; }
.mega-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.mega-hero:hover img { transform: scale(1.03); }
.mega-hero i { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(48, 16, 30, 0) 35%, rgba(48, 16, 30, 0.62) 100%); }
.mega-badge { position: absolute; left: 14px; top: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--btn); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.575px; line-height: 14px; text-transform: uppercase; }
.mega-body { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.mega-ttl { font-size: 24px; font-weight: 500; letter-spacing: 0.24px; line-height: 28px; max-width: 250px; }
.mega-sc { margin-top: 7px; font-size: 12.5px; line-height: 18px; max-width: 250px; }
.mega-cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700;
  letter-spacing: 1.08px; line-height: 14px; text-transform: uppercase; }
.mega-index { display: flex; flex-direction: column; justify-content: center; }
.mega-ix { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 14px 6px 14px 4px; border-top: 1px solid var(--line); color: var(--ink);
  transition: padding 0.2s ease, color 0.2s ease; }
.mega-ix:last-child { border-bottom: 1px solid var(--line); }
.mega-ix span { font-size: 13.5px; font-weight: 600; letter-spacing: 0.405px; line-height: 17.5px; text-transform: uppercase; }
.mega-ix svg { color: var(--btn); transition: transform 0.2s ease; }
.mega-ix:hover { padding-left: 10px; color: var(--btn); }
.mega-ix:hover svg { transform: translateX(3px); }
@media (max-width: 820px) {
  .mega { padding: 8px 12px 20px; }
  .mega-sheet { flex-direction: column; border-radius: 18px; max-height: calc(100vh - 170px); }
  .mega-rail { flex: none; padding: 18px 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mega-eb { margin-bottom: 6px; }
  .mega-main { padding: 18px 20px 22px; }
  .mega-head { margin-bottom: 12px; }
  .mega-title { font-size: 14px; letter-spacing: 2px; }
  .mega-all { display: none; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-hero { display: none; }
}
/* footer: the logo column is as wide as the logo itself plus a clear gap, so the logo never touches the first link column */
@media (min-width: 821px) {
  .footer .in { grid-template-columns: auto repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 28px 32px; }
  .footer .in > .logo { margin-right: clamp(28px, 5vw, 88px); }
}
/* Product Type tab: picture left, list right as on the reference. The banner photo is very wide (1920x450), so it is shown
   zoomed out in a low frame with nothing laid over it, and the product name and button sit under the picture instead. */
.mega-grid.wide { grid-template-columns: minmax(300px, 58%) minmax(0, 1fr); align-items: center; }
.mega-grid.wide .mega-hero { height: auto; overflow: visible; border-radius: 0; background: none; color: var(--ink); }
.mega-ph { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 1.8; }
/* group shot of the whole line, already cut to 1.8:1, shown whole */
.mega-grid.wide .mega-hero img { position: static; height: 100%; object-position: 50% 50%; }
.mega-grid.wide .mega-hero:hover img { transform: scale(1.03); }
.mega-grid.wide .mega-hero i { display: none; }
.mega-grid.wide .mega-body { position: static; margin-top: 14px; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.mega-grid.wide .mega-ttl { font-size: 18px; line-height: 24px; max-width: none; }
.mega-grid.wide .mega-sc { display: none; }
.mega-grid.wide .mega-cta { margin-top: 0; flex: none; background: var(--soft); }
.mega-hero.con img { object-position: 50% 28%; }
.logo, .hero-logo { white-space: nowrap; }
/* registered mark beside the top of the final l */
.logo::after, .hero-logo::after { content: "®"; position: relative; top: -1.62em; margin-left: 0.14em; font-family: Arial, Helvetica, sans-serif; font-size: 0.3em; font-weight: 700; letter-spacing: 0; }
/* Brand tab: two pictures side by side, one per brand */
.mega-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
/* Baekseol card: the model is shown closer */
.mega-hero.bsk img { object-position: 60% 30%; transform: scale(1.35); transform-origin: 58% 38%; }
.mega-hero.bsk:hover img { transform: scale(1.39); }
.mega-hero.amt img { object-position: 78% 30%; }
@media (max-width: 820px) { .mega-duo { gap: 12px; } .mega-duo .mega-hero { display: block; height: 170px; } .mega-duo .mega-ttl { font-size: 18px; } .mega-duo .mega-sc, .mega-duo .mega-cta { display: none; } }
/* top menu hover, as on the reference: the word grows a little and gets an underline; Shop keeps it while its menu is open */
.nav a { position: relative; display: inline-block; transition: transform 0.2s ease, color 0.25s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 1.89px; bottom: -5px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 0.25s ease; }
.nav a:hover, .nav a:focus-visible, .nav a.cur { transform: scale(1.1); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.cur::after { transform: scaleX(1); }
.header.solid .nav a:hover, .header.open .nav a:hover, .nav a.cur { color: var(--btn); }
@media (prefers-reduced-motion: reduce) { .mega, .mega.show { transition: none; transform: none; } .nav a, .nav a::after { transition: none; } }
/* Featured tab, as on the reference: one large picture card (40%) and two product rows stacked beside it
   (px values measured at 1920: 434px tall, 22px between columns, 18px between rows, 274px picture tile) */
.mega-feat { display: grid; grid-template-columns: minmax(300px, 40%) minmax(0, 1fr); gap: 22px; }
.mega-feat .mega-hero { height: 434px; }
.mega-feat .mega-ttl { font-size: 26px; font-weight: 600; line-height: 29.64px; letter-spacing: 0.26px; max-width: 300px; }
.mega-feat .mega-cta { background: var(--soft); }
.mega-stack { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.mega-row { display: grid; grid-template-columns: minmax(0, 274px) minmax(0, 1fr); gap: 17px; align-items: center; min-height: 0; border-radius: 12px; color: var(--ink); }
.mega-rph { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--soft); }
/* the product photos have a white ground; multiply lets the tile colour show through it */
.mega-rph img { width: 76%; height: 76%; object-fit: contain; display: block; mix-blend-mode: multiply; transition: transform 0.4s ease; }
.mega-row:hover .mega-rph img { transform: scale(1.04); }
/* styled photo instead of a cut-out product: it fills the whole tile */
.mega-rph.ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.mega-chip { position: absolute; top: 10px; right: 10px; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 600; line-height: 15.4px; }
.mega-rtx { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mega-rnm { font-size: 15px; font-weight: 600; letter-spacing: 0.15px; line-height: 27px; text-transform: uppercase; }
.mega-rrd { margin-top: 7px; max-width: 281px; font-size: 12.5px; line-height: 18.75px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mega-rvw { margin-top: 13px; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.92px; line-height: 27px; text-transform: uppercase; color: var(--btn); }
.mega-rvw svg { transition: transform 0.2s ease; }
.mega-row:hover .mega-rvw svg { transform: translateX(3px); }
@media (max-width: 820px) {
  .mega-feat { grid-template-columns: minmax(0, 1fr); }
  .mega-stack { gap: 12px; }
  .mega-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .mega-rph { height: 96px; }
  .mega-rrd, .mega-chip { display: none; }
  .mega-rvw { margin-top: 2px; }
}
.modal[hidden] { display: none; }
.mlink { margin-left: 8px; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.framed .review { display: none; }   /* inside the phone preview only the site itself is shown */
html.framed { scrollbar-width: none; }
html.framed::-webkit-scrollbar { display: none; }

/* ---- menu drawer for phones, as on the reference: slides in from the left, Shop opens as an accordion with a
        picture card, an all-products row, plain links and two boxed sub-lists; a bar with one button at the bottom ---- */
.burger { display: none; border: 0; background: none; padding: 8px; margin-left: -8px; color: var(--ink); line-height: 0; }
.drawer { display: none; }
@media (max-width: 820px) {
  .drawer { display: block; position: fixed; inset: 0; z-index: 30; visibility: hidden; transition: visibility 0s linear 0.3s; }
  .drawer.open { visibility: visible; transition: none; }
  .drawer-bg { position: absolute; inset: 0; background: rgba(40, 20, 28, 0.55); opacity: 0; transition: opacity 0.3s ease; }
  .drawer.open .drawer-bg { opacity: 1; }
  .drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(90%, 380px); background: var(--bg); display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform 0.3s ease; padding-top: env(safe-area-inset-top, 0px); }
  .drawer.open .drawer-panel { transform: none; }
  .drawer-x { align-self: flex-end; margin: 16px 22px 4px 0; width: 36px; height: 24px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font-size: 16px; line-height: 20px; padding: 0; }
  .drawer-scroll { flex: 1; overflow-y: auto; padding: 0 22px 20px; }
  .drawer summary { list-style: none; cursor: pointer; }
  .drawer summary::-webkit-details-marker { display: none; }
  .d-sec > summary, .d-top { display: flex; justify-content: space-between; align-items: center; padding: 24px 14px; border-bottom: 1px solid var(--line);
    font-size: 14px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ink); }
  .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform 0.2s ease; }
  details[open] > summary .chev { transform: rotate(-135deg); margin-top: 4px; }
  .ar { color: var(--muted); font-size: 17px; line-height: 1; font-weight: 400; letter-spacing: 0; }
  .d-body { display: flex; flex-direction: column; padding: 22px 10px 16px; border-bottom: 1px solid var(--line); }
  .d-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 150px; margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: var(--soft); }
  .d-card img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; display: block; }
  .d-card-tx { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 14px 16px 16px; min-width: 0; }
  .d-eb { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--btn); }
  .d-ttl { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink); }
  .d-sc { font-size: 12px; line-height: 1.4; color: var(--muted); }
  .d-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--btn); }
  .d-go .ar { color: inherit; }
  .d-all, .d-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
  .d-all { padding: 14px 6px 14px 0; font-size: 13px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink); }
  .d-all .ar { color: var(--btn); }
  .d-link { padding: 11px 6px 11px 0; font-size: 14px; color: var(--btn); }
  .d-sub { margin-top: 12px; border-radius: 12px; background: var(--soft); }
  .d-sub > summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px 15px 12px; font-size: 12.5px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
  .d-sub > div { display: flex; flex-direction: column; padding: 0 12px 8px; }
  .d-sub .d-link { color: var(--ink); font-size: 13.5px; border-bottom-color: #f3d3d8; }
  .d-sub .d-link:last-child { border-bottom: 0; }
  .drawer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line);
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; color: var(--muted); }
  .d-ask { background: var(--btn); color: var(--on); border-radius: 999px; padding: 11px 20px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
}

/* ---- phone layout, section by section as amarteskincare.com shows on a phone: white header with a menu button and a
        centred logo, short hero, stacked step cards, picture-then-thumbnails feature, two-up product rows,
        a sideways concern strip and a two-column footer ---- */
@media (max-width: 820px) {
  .announce { font-size: clamp(9.5px, 2.8vw, 11.5px); font-weight: 600; letter-spacing: 0.04em; line-height: 1.45; white-space: nowrap; }   /* one line */
  .ann-d { display: none; }
  .ann-m { display: inline; }
  .announce .in { padding-block: 8px; }
  .header { background: var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); }
  .header:not(.solid)::before { display: none; }
  .header:not(.solid) .logo { color: var(--logo); }
  .header:not(.solid) .lang button { color: var(--muted); }
  .header:not(.solid) .lang button[aria-pressed="true"] { color: var(--on); }
  .header .in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 52px; padding-block: 0; }
  .burger { display: block; justify-self: start; }
  .header .lang { justify-self: end; }
  .header .lang { gap: 0; }
  .header .lang button { font-size: 10.5px; padding: 4px 5px; letter-spacing: 0.04em; }
  .logo, .header .logo { font-size: 28px; }
  .nav, .mega { display: none; }
  .header + .hero { margin-top: 0; }
  /* phone: the hero is tall and, with the bars above it, fills the first screen almost to its end (the client: "첫 화면에
     거의 가득찰만큼"); a strip of the next section stays in view. The words sit low, over a soft shade, clear of the face. */
  .hero { aspect-ratio: auto; height: calc(100vh - var(--herotop, 40px) - var(--hh, 52px) - 22px); height: calc(100svh - var(--herotop, 40px) - var(--hh, 52px) - 22px); min-height: 440px; max-height: 190vw; }
  .slide img, .slide.m1 img { width: 100%; height: 100%; left: 0; top: 0; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: none; mask-image: none; }
  .slide.m2 img { object-position: 60% 50%; }   /* a wide picture: keep the face, not the empty backdrop */
  .hero-text { justify-content: flex-end; padding-bottom: 58px; background: linear-gradient(180deg, rgba(40, 10, 20, 0) 52%, rgba(40, 10, 20, 0.38) 100%); }
  .hero-logo { font-size: 48px; }
  .hero-a { font-size: 14px; margin-top: 8px; }
  .hero-b { font-size: 14px; }
  .dots { bottom: 18px; gap: 6px; }
  .dots button { width: 7px; height: 7px; }

  .how .in { padding-block: 48px 40px; gap: 0; }
  .how-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .how-left { display: contents; }
  .eyebrow { order: 0; }
  .how h2 { order: 0; margin-top: 8px; font-size: 26px; line-height: 1.3; letter-spacing: 1.3px; }
  .how-left p { order: 0; margin-top: 16px; font-size: 16px; line-height: 28px; }
  .steps { order: 1; display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }
  .step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 26px; row-gap: 4px; align-items: center; text-align: left; padding: 30px 24px; border-radius: 28px; height: auto; }
  .step .ico { grid-row: 1 / span 2; width: 52px; height: 52px; margin: 0; }
  .step h3 { align-self: end; margin: 0; font-size: 16px; }
  .step p { align-self: start; margin: 0; font-size: 13px; line-height: 19.5px; }
  .step + .step::before { content: ""; position: absolute; top: -20px; left: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateX(-50%) rotate(45deg); opacity: 0.6; }
  .how-left .pill { order: 2; align-self: center; margin-top: 30px; }
  .help { margin-top: 28px; }

  .sec .in { padding-block: 40px; gap: 22px; }
  .title { font-size: 26px; line-height: 1.2; }
  .feat { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; height: auto; }
  .big { order: 1; width: min(100%, 300px); height: auto; }
  .round { top: 4%; right: -4%; }
  .thumbs { order: 2; flex-direction: row; justify-content: center; gap: 14px; }
  .thumbs button { width: 46px; }
  .feat .info { order: 3; align-items: center; text-align: center; padding: 0; height: auto; gap: 10px; }
  .info h3 { font-size: 20px; }
  .info .pill { margin-top: 10px; }

  .car { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; height: auto; margin-top: 0; }
  .car > button { margin-top: 0; width: 34px; height: 34px; }
  .car > button::before, .banner .arr::before { width: 12px; height: 12px; }
  .banner .arr { width: 34px; height: 34px; }
  .banner .arr.l { left: 8px; } .banner .arr.r { right: 8px; }
  .pname { font-size: 14px; line-height: 1.3; }
  .hov { opacity: 1; }            /* no hover on a phone: the size button and quick view are always there */
  .hov .choose { width: 100%; }
  .sec.cards .in { padding-bottom: 48px; }

  .bandsec { height: 300px; margin-bottom: 48px; }
  .bandtext h2 { font-size: 20px; }
  .bandtext p { margin-top: 14px; font-size: 14px; }

  .pro { display: flex; flex-direction: column; align-items: center; gap: 28px; margin: 0; }
  .portrait { width: min(100%, 280px); border-radius: 16px; }
  .pro-text { padding: 0; gap: 22px; }
  .pro-text p { font-size: 15px; line-height: 25px; }
  .pro-text strong { font-size: 19px; }
  .sec.prosec .in { padding-bottom: 56px; }

  .sec.last .in:first-child, .sec.bansec .in { padding-bottom: 56px; }
  .concerns { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding-left: 16px; }
  .concerns::-webkit-scrollbar { display: none; }
  .ccol { flex: 0 0 74%; scroll-snap-align: start; }
  .cprod { font-size: 14px; }

  .banner { min-height: 250px; }
  /* the picture is cropped hard at this width, so a soft pink veil keeps the words readable over the product */
  .btext { box-sizing: border-box; width: 100%; padding: 16px 44px; background: linear-gradient(90deg, rgba(253, 238, 240, 0.88) 0%, rgba(253, 238, 240, 0.55) 100%); }

  .footer { padding-top: 30px; }
  .footer .in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 36px 48px; }
  .footer .in > .logo, .footer .soc { grid-column: 1 / -1; }
  .footer .logo { font-size: 38px; }
}

/* Wrapping, every page and language: Korean never breaks inside a word, a last line is not left with one short word, and a long token cannot push a block wider than the screen. */
body { word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
/* footer company info (same facts as baekseol.kr), one full-width row under the link columns */
.footer .fco { grid-column: 1 / -1; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.footer .fco b { font-size: 14px; font-weight: 700; color: var(--ink); }
.footer .fco p { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.footer .fco small { font-size: 11.5px; opacity: 0.8; }
.footer .fco { align-items: flex-end; text-align: right; }
.footer .fco p { justify-content: flex-end; }
