/* CARROT — design tokens
   Following 지침서 with Carrot Orange as the single accent
   (replacing Action Blue). Warm-tinted neutrals match the brand.        */

:root {
  /* ── brand & accent ─────────────────────────────────────────────── */
  --carrot:           #E07A2F;  /* amber — current selection */
  --carrot-focus:     #EE8838;
  /* 옅은 주황 틴트 위에 얹는 텍스트용 진한 주황. --carrot(#E07A2F) 은
     rgba(224,122,47,0.045) 배경 위에서 대비가 모자란다. */
  --carrot-deep:      #C9651F;
  --carrot-on-dark:   #FFA968;
  --carrot-press:     rgba(224, 122, 47, 0.92);

  /* ── surface ────────────────────────────────────────────────────── */
  --canvas:           #ffffff;
  --canvas-parchment: #F5F2EC;  /* warm parchment — replaces #f5f5f7 */
  --canvas-soil:      #EDE7DC;  /* warmer band used for hero / story */
  --surface-pearl:    #FAF8F4;
  --surface-tile-1:   #1E1B16;  /* warm near-black */
  --surface-tile-2:   #232019;  /* micro-step lighter */
  --surface-tile-3:   #1A1813;  /* micro-step darker */
  --surface-black:    #0A0907;  /* true void — global nav */
  --chip-translucent: #d2cfc7;

  /* ── text ───────────────────────────────────────────────────────── */
  --ink:              #1A1814;
  --body:             #1A1814;
  --body-on-dark:     #FAF8F4;
  --body-muted:       #C9C5BB;
  --ink-muted-80:     #34322C;
  --ink-muted-48:     #7A766C;
  --ink-muted-on-dark:#9C988E;

  /* ── hairlines & borders ────────────────────────────────────────── */
  --divider-soft:     #F0EDE6;
  --hairline:         #DDD9D0;
  --hairline-strong:  #C7C2B6;
  --hairline-on-dark: rgba(250, 248, 244, 0.10);

  /* ── radii ──────────────────────────────────────────────────────── */
  --r-none: 0px;
  --r-xs:   5px;
  --r-sm:   8px;
  --r-md:   11px;
  --r-lg:   18px;
  --r-pill: 9999px;

  /* ── spacing ────────────────────────────────────────────────────── */
  --s-xxs: 4px;
  --s-xs:  8px;
  --s-sm:  12px;
  --s-md:  17px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* ── shadows (single product shadow only) ───────────────────────── */
  --product-shadow: 3px 5px 30px 0 rgba(0, 0, 0, 0.22);

  /* ── type families ──────────────────────────────────────────────── */
  --f-display: "Pretendard", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body:    "Pretendard", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
}

/* ── base reset ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }

/* Reserve the vertical scrollbar gutter at all times so pages with no
   scroll (chat, dashboard with overflow:hidden) don't shift the layout
   horizontally relative to scrollable pages. */
html { scrollbar-gutter: stable; }

.carrot-root {
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.011em; /* Inter substitution tighten */
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  /* container queries — mobile responsiveness inside each artboard. */
  container-type: inline-size;
  container-name: app;
}
.carrot-root * { box-sizing: border-box; }
.carrot-root img { display: block; max-width: 100%; }
.carrot-root a { color: inherit; text-decoration: none; }
.carrot-root button { font-family: inherit; }

/* ── type hierarchy ───────────────────────────────────────────────── */
.t-hero       { font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.022em; }
.t-display-lg { font-size: 40px; font-weight: 600; line-height: 1.10; letter-spacing: -0.018em; }
.t-display-md { font-size: 34px; font-weight: 600; line-height: 1.20; letter-spacing: -0.016em; }
.t-lead       { font-size: 24px; font-weight: 400; line-height: 1.20; letter-spacing: -0.005em; }
.t-lead-airy  { font-size: 22px; font-weight: 300; line-height: 1.45; letter-spacing: 0; }
.t-tagline    { font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: -0.008em; }
.t-body-strong{ font-size: 17px; font-weight: 600; line-height: 1.30; letter-spacing: -0.011em; }
.t-body       { font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -0.011em; }
.t-dense-link { font-size: 15px; font-weight: 400; line-height: 2.20; letter-spacing: -0.006em; }
.t-caption    { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.008em; }
.t-caption-strong{ font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.008em; }
.t-button-lg  { font-size: 18px; font-weight: 300; line-height: 1.0;  letter-spacing: 0; }
.t-button     { font-size: 14px; font-weight: 400; line-height: 1.29; letter-spacing: -0.008em; }
.t-fine       { font-size: 12px; font-weight: 400; line-height: 1.0;  letter-spacing: -0.004em; }
.t-micro      { font-size: 10px; font-weight: 400; line-height: 1.30; letter-spacing: -0.003em; }
.t-nav        { font-size: 12px; font-weight: 400; line-height: 1.0;  letter-spacing: -0.004em; }
.t-mono       { font-family: var(--f-mono); font-size: 13px; font-weight: 400; letter-spacing: 0; }

.muted { color: var(--ink-muted-48); }
.muted-strong { color: var(--ink-muted-80); }
.muted-on-dark { color: var(--ink-muted-on-dark); }
.body-muted { color: var(--body-muted); }

/* ── tiles ────────────────────────────────────────────────────────── */
.tile        { padding: var(--s-section) 0; }
.tile-tight  { padding: 48px 0; }
.tile-light  { background: var(--canvas); color: var(--ink); }
.tile-parch  { background: var(--canvas-parchment); color: var(--ink); }
.tile-soil   { background: var(--canvas-soil); color: var(--ink); }
.tile-dark   { background: var(--surface-tile-1); color: var(--body-on-dark); }
.tile-dark-2 { background: var(--surface-tile-2); color: var(--body-on-dark); }
.tile-dark-3 { background: var(--surface-tile-3); color: var(--body-on-dark); }
.tile-black  { background: var(--surface-black); color: var(--body-on-dark); }

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-tight { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ── buttons ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center;
       gap: 8px; cursor: pointer; border: none; background: none;
       transition: transform 0.12s cubic-bezier(.2,.7,.3,1), background 0.12s, color 0.12s;
       user-select: none; white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--carrot-focus); outline-offset: 2px; }

.btn-primary   { background: var(--carrot); color: #fff;
                 border-radius: var(--r-pill); padding: 11px 22px;
                 font-size: 17px; font-weight: 400; line-height: 1; }
.btn-primary:hover { background: var(--carrot-focus); }

.btn-secondary { background: transparent; color: var(--carrot);
                 border: 1px solid var(--carrot);
                 border-radius: var(--r-pill); padding: 10px 21px;
                 font-size: 17px; font-weight: 400; line-height: 1; }
.btn-secondary:hover { background: rgba(217, 83, 30, 0.08); }

.btn-dark-utility { background: var(--ink); color: #fff;
                    border-radius: var(--r-sm); padding: 8px 15px;
                    font-size: 14px; font-weight: 400; letter-spacing: -0.008em; }
.btn-dark-utility:hover { background: #2A2820; }

.btn-pearl     { background: var(--surface-pearl); color: var(--ink-muted-80);
                 border: 3px solid var(--divider-soft);
                 border-radius: var(--r-md); padding: 8px 14px;
                 font-size: 14px; }

.btn-store-hero { background: var(--carrot); color: #fff;
                  border-radius: var(--r-pill); padding: 14px 28px;
                  font-size: 18px; font-weight: 300; line-height: 1; }
.btn-store-hero:hover { background: var(--carrot-focus); }

.btn-icon-circle { width: 44px; height: 44px; border-radius: var(--r-pill);
                   background: rgba(210, 207, 199, 0.64); color: var(--ink);
                   backdrop-filter: blur(20px) saturate(180%); }

/* ── links ────────────────────────────────────────────────────────── */
.tlink   { color: var(--carrot); }
.tlink:hover { text-decoration: underline; }
.tlink-on-dark { color: var(--carrot-on-dark); }
.tlink-on-dark:hover { text-decoration: underline; }
.tlink-arrow::after { content: " ›"; font-feature-settings: normal; }

/* ── cards / chips ────────────────────────────────────────────────── */
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
}
.card-soft {
  background: var(--canvas-parchment);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
}
.chip {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 12px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.chip:hover { border-color: var(--hairline-strong); }
.chip-selected { border: 2px solid var(--carrot-focus); padding: 11px 15px; }

/* ── nav strip ────────────────────────────────────────────────────── */
.global-nav {
  background: var(--surface-black);
  color: #fff;
  height: 64px;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.global-nav-inner {
  height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 32px;
}
.global-nav a { color: rgba(255,255,255,0.85); font-size: 14px; }
.global-nav a:hover { color: #fff; }

.sub-nav {
  background: rgba(245, 242, 236, 0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 44px; z-index: 49;
  height: 52px;
}
.sub-nav-inner {
  height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 28px;
}
.sub-nav-cat { font-size: 21px; font-weight: 600; letter-spacing: -0.008em; }
.sub-nav-links { display: flex; gap: 22px; }
.sub-nav-links a { font-size: 14px; color: var(--ink-muted-80); }
.sub-nav-links a:hover { color: var(--ink); }

/* ── placeholders (per instructions) ──────────────────────────────── */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.025) 0 1px,
      transparent 1px 8px),
    var(--canvas-parchment);
  color: var(--ink-muted-48);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  user-select: none;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  border: 1px dashed rgba(0,0,0,0.10);
  border-radius: inherit;
  pointer-events: none;
}
.ph-dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 8px),
    #14110D;
  color: var(--ink-muted-on-dark);
}
.ph-dark::after { border-color: rgba(255,255,255,0.08); }

.ph-product { box-shadow: var(--product-shadow); border-radius: var(--r-lg); }

/* ── wordmark ─────────────────────────────────────────────────────── */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  font-size: 18px;
  color: inherit;
}
.wordmark-mark {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--carrot);
  transform: translateY(-1px);
}
.wordmark-text {
  font-variant-ligatures: discretionary-ligatures;
}

/* ── eyebrow label ────────────────────────────────────────────────── */
.eyebrow {
  position: relative;
  display: inline-block;
  /* Use the same Pretendard sans-serif as the rest of the site so the
     eyebrow visually belongs with the heading and body text. */
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--carrot);
  padding-bottom: 8px;
}
/* Underline under EVERY .eyebrow, exact width of the text */
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--carrot);
  transform-origin: left center;
}
.reveal:not(.is-in-view) .eyebrow::after,
.reveal-stagger:not(.is-in-view) .eyebrow::after {
  transform: scaleX(0);
}
.reveal .eyebrow::after,
.reveal-stagger .eyebrow::after {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: 0.15s;
}
.eyebrow-on-dark { color: var(--carrot-on-dark); }
.eyebrow-on-dark::after { background: var(--carrot-on-dark); }
.eyebrow-accent { color: var(--carrot); }

/* ── divider ──────────────────────────────────────────────────────── */
.hr-soft { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.hr-on-dark { height: 1px; background: rgba(255,255,255,0.08); border: 0; margin: 0; }

/* ── inputs ───────────────────────────────────────────────────────── */
.input {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  font-size: 17px; font-family: inherit;
  color: var(--ink);
  height: 44px;
  width: 100%;
  outline: none;
  transition: border-color 0.12s;
}
.input:focus { border-color: var(--carrot); }
.input-rect {
  border-radius: var(--r-sm);
}

/* ── focus ring helpers ───────────────────────────────────────────── */
.ring-on-light:focus-visible { outline: 2px solid var(--carrot-focus); outline-offset: 2px; }

/* ── scroll utilities ─────────────────────────────────────────────── */
.scroll-shadow {
  background: linear-gradient(180deg, rgba(0,0,0,0.06), transparent 30%);
  height: 1px;
}

/* ── prototype scroll containers (inside artboards) ──────────────── */
.artboard-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.artboard-scroll::-webkit-scrollbar { display: none; }

/* ── grid utilities ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-lg); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-lg); }

/* ── tweak overrides — headline tracking ─────────────────────────── */
html.hd-normal .t-hero       { letter-spacing: 0; }
html.hd-normal .t-display-lg { letter-spacing: -0.005em; }
html.hd-normal .t-display-md { letter-spacing: -0.005em; }
html.hd-normal .t-body,
html.hd-normal .t-body-strong{ letter-spacing: 0; }

/* ── tweak overrides — density ───────────────────────────────────── */
html.density-compact .tile           { padding-top: 56px; padding-bottom: 56px; }
html.density-compact .tile-tight     { padding-top: 32px; padding-bottom: 32px; }
html.density-compact .container      { padding-left: 24px; padding-right: 24px; }
html.density-compact .card           { padding: 18px; }
html.density-compact .t-hero         { font-size: 44px; line-height: 1.08; }
html.density-compact .t-display-lg   { font-size: 32px; }
html.density-compact .t-display-md   { font-size: 26px; }
html.density-compact .t-lead         { font-size: 19px; line-height: 1.30; }

/* ── arrow link ──────────────────────────────────────────────────── */
.arrow-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--carrot); font-size: 17px;
  transition: gap 0.15s;
}
.arrow-link:hover { gap: 8px; }
.arrow-link.on-dark { color: var(--carrot-on-dark); }

/* ── Hero carousel ───────────────────────────────────────────────── */
.hero-carousel {
  position: relative; width: 100%;
  height: clamp(560px, 86vh, 760px);
  background: var(--surface-black);
  overflow: hidden;
}
.carousel-slide {
  position: absolute; inset: 0;
  transition: transform 1000ms cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.carousel-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.carousel-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,0.45) 0%, rgba(10,9,7,0.62) 100%);
}
@keyframes carousel-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.carousel-bg > .ph,
.carousel-bg > img {
  width: 100%; height: 100%; object-fit: cover;
  animation: carousel-ken-burns 12s ease-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-bg > .ph,
  .carousel-bg > img { animation: none; }
}
.carousel-content {
  position: relative; z-index: 10;
  height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 0 32px; text-align: center; color: #fff;
}
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 40px;
  z-index: 30; display: flex; justify-content: center; gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: rgba(255,255,255,0.4); border: none; padding: 0;
  cursor: pointer; transition: all 300ms ease;
}
.carousel-dot:hover { background: rgba(255,255,255,0.7); }
.carousel-dot.is-active { width: 32px; background: var(--carrot); }

/* ── Carrot Viewer — Interactive list with sliding bar ───────────── */
.viewer-list {
  position: relative;
}

.viewer-bar, .viewer-bar-glow {
  position: absolute; left: 0; top: 0;
  width: 3px; border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, height;
}
.viewer-bar.is-ready, .viewer-bar-glow.is-ready { opacity: 1; }

.viewer-bar {
  background: linear-gradient(180deg, var(--carrot) 0%, var(--carrot-on-dark) 100%);
  transition: transform 540ms cubic-bezier(.65,0,.05,1),
              height    540ms cubic-bezier(.65,0,.05,1),
              opacity   220ms ease;
}
.viewer-bar-glow {
  background: var(--carrot);
  filter: blur(10px);
  opacity: 0;
  transition: transform 720ms cubic-bezier(.65,0,.05,1),
              height    720ms cubic-bezier(.65,0,.05,1),
              opacity   220ms ease;
}
.viewer-bar-glow.is-ready { opacity: 0.55; }

.viewer-btn {
  position: relative;
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0 22px 28px;
  width: 100%; text-align: left;
  cursor: pointer;
  transition: background 280ms ease;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 18px;
  font-family: inherit;
}
.viewer-btn:hover      { background: rgba(255,255,255,0.02); }
.viewer-btn:last-child { border-bottom: none; }

.viewer-btn .v-num {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.25);
  font-variant-numeric: tabular-nums;
  transition: color 380ms cubic-bezier(.2,.7,.3,1);
}
.viewer-btn.is-active .v-num { color: var(--carrot-on-dark); }

.viewer-btn .v-title {
  font-size: 20px; font-weight: 400; line-height: 1.25;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.008em;
  transition: color 380ms cubic-bezier(.2,.7,.3,1),
              transform 540ms cubic-bezier(.34,1.2,.64,1),
              font-weight 380ms ease;
}
.viewer-btn.is-active .v-title {
  color: #fff; font-weight: 500;
  transform: translateX(4px);
}

/* ── "당근!" — Custom carrot-leaf chip ────────────────────────────
   Bespoke SVG carrot icon + airy mono label. Solid amber fill with
   a leaf-vein stroke, gentle floating animation, and back-out
   easing on entrance. Reads as "designed", not stock. */
.viewer-btn .v-label {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  padding: 6px 14px 6px 10px;
  background: linear-gradient(135deg,
    rgba(255, 169, 104, 0.14) 0%,
    rgba(224, 122, 47, 0.08) 100%);
  border: 1px solid rgba(255, 169, 104, 0.22);
  border-radius: 9999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px -6px rgba(224, 122, 47, 0.45);
  transform: translateX(20px) scale(0.7);
  opacity: 0;
  transition: transform 520ms cubic-bezier(.34,1.56,.64,1),
              opacity   260ms ease-out;
}
.viewer-btn.is-active .v-label {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.viewer-btn .v-leaf {
  width: 14px; height: 14px;
  color: var(--carrot);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(224, 122, 47, 0.55));
  transform-origin: center bottom;
}
.viewer-btn.is-active .v-leaf {
  animation: v-leaf-sway 3.2s ease-in-out infinite;
}
@keyframes v-leaf-sway {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(6deg)  translateY(-1px); }
}

.viewer-btn .v-label-text {
  /* ⚠ --f-mono 를 쓰지 않는다 — 이 칩에는 한글이 들어간다(chip.carrot = "당근!").
     JetBrains Mono 에 한글 글리프가 없어 시스템 폰트로 폴백되면 자간만 벌어진
     채 어긋나 보인다. 같은 이유로 company.jsx 는 숫자와 단위를 분리해 조판하고
     .eyebrow 도 Pretendard 를 쓴다. mono 는 숫자·키 이름 같은 라틴 문자에만. */
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--carrot-on-dark);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* ── Image stack: cross-fade with layered scale ─────────────────── */
.viewer-image-wrap {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.viewer-image-stack {
  position: relative;
  height: 420px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #14110D;
  box-shadow: 3px 5px 30px 0 rgba(0, 0, 0, 0.40);
}
.viewer-img-slot {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 520ms cubic-bezier(.4,0,.2,1),
              transform 760ms cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.viewer-img-slot.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.viewer-img-slot > .ph {
  width: 100% !important; height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.viewer-counter {
  position: absolute; top: 16px; right: 16px;
  z-index: 2;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 14px;
  background: rgba(20, 17, 13, 0.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-family: var(--f-mono); font-size: 12px;
  color: #fff; font-variant-numeric: tabular-nums;
}
.viewer-counter-cur { color: var(--carrot-on-dark); font-weight: 600; }
.viewer-counter-sep { opacity: 0.4; }
.viewer-counter-tot { opacity: 0.6; }

.viewer-progress {
  display: flex; gap: 4px;
}
.viewer-progress-tick {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.10);
  transition: background 420ms cubic-bezier(.4,0,.2,1),
              flex 540ms cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: none; padding: 0;
}
.viewer-progress-tick:hover  { background: rgba(255, 255, 255, 0.18); }
.viewer-progress-tick.is-past   { background: rgba(255, 169, 104, 0.45); }
.viewer-progress-tick.is-active {
  background: var(--carrot);
  flex: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .viewer-bar, .viewer-bar-glow,
  .viewer-btn .v-num, .viewer-btn .v-title,
  .viewer-btn .v-label, .viewer-img-slot,
  .viewer-progress-tick                  { transition: none !important; }
  .viewer-btn .v-leaf                    { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   Mobile — container queries
   The .carrot-root is its own container, so a 390px-wide artboard in
   the design canvas reads as "mobile" even though the page viewport is
   much wider. In production these layouts kick in at the device width.
   ──────────────────────────────────────────────────────────────────── */

/* — Tablet portrait — */
@container app (max-width: 833px) {
  .container, .container-tight { padding: 0 24px; }
  .tile                        { padding-top: 64px; padding-bottom: 64px; }
  .grid-5, .grid-4             { grid-template-columns: repeat(2, 1fr); }
}

/* — Phone — */
@container app (max-width: 640px) {
  /* spacing */
  .container, .container-tight { padding: 0 20px; }
  .tile                        { padding-top: 48px; padding-bottom: 48px; }
  .tile-tight                  { padding-top: 32px; padding-bottom: 32px; }

  /* type */
  .t-hero                      { font-size: 34px; line-height: 1.1; }
  .t-display-lg                { font-size: 28px; line-height: 1.15; }
  .t-display-md                { font-size: 24px; line-height: 1.20; }
  .t-lead                      { font-size: 17px; line-height: 1.35; }
  .t-lead-airy                 { font-size: 17px; line-height: 1.45; }

  /* grids collapse */
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .feature-grid                      { grid-template-columns: 1fr !important; gap: 12px !important; }
  .pricing-tiers                     { grid-template-columns: 1fr !important; gap: 16px !important; }
  .docs-quickstart                   { grid-template-columns: 1fr !important; gap: 12px !important; }
  .docs-topics                       { grid-template-columns: 1fr !important; gap: 12px !important; }
  .docs-examples                     { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* cards */
  .card                        { padding: 18px; }

  /* global nav — 좁은 폭 패딩만(접힘 전환은 아래 전용 쿼리에서 더 넓은 폭부터) */
  .global-nav-inner            { padding: 0 16px; gap: 12px; }

  /* sub-nav — only category + cta */
  .sub-nav-inner               { padding: 0 16px; gap: 12px; }
  .sub-nav-links               { display: none !important; }
  .sub-nav-cat                 { font-size: 17px; }

  /* Hero tile spacing */
  .hero-tile-cta               { flex-direction: column; align-items: stretch; }
  .hero-tile-cta .btn-primary,
  .hero-tile-cta .btn-secondary{ width: 100%; justify-content: center; }

  /* ProductTile split → stack */
  .product-tile-split          { grid-template-columns: 1fr !important; gap: 32px !important; }
  .product-tile-split-media    { min-height: 240px !important; }

  /* StatsRow → 1-col */
  .stats-row-grid              { grid-template-columns: 1fr !important; gap: 24px !important; }
  .stats-row-grid .t-hero      { font-size: 48px !important; }

  /* SpecSheet 3-col → 1-col */
  .specsheet-grid              { grid-template-columns: 1fr !important; }
  .specsheet-cell              { border-left: none !important; border-top: 1px solid var(--hairline); }
  .specsheet-cell:first-child  { border-top: none !important; }

  /* Footer 4-col → 2-col on phone */
  .footer-cols                 { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .footer-meta                 { flex-direction: column; align-items: flex-start !important; gap: 12px; }
  .footer-meta-links           { flex-wrap: wrap; gap: 12px !important; }

  /* Signup split → stack */
  .signup-shell                { grid-template-columns: 1fr !important; }
  .signup-side                 { padding: 24px !important; }
  .signup-side-title           { display: none; }
  .signup-side-lead            { display: none; }
  .signup-main                 { padding: 32px 20px !important; }
  .signup-steps                { flex-direction: row !important; gap: 8px !important; overflow-x: auto; }
  .signup-steps li             { flex-shrink: 0; }
  .signup-steps-label          { display: none; }
  .signup-footer-meta          { display: none; }

  /* Dashboard sidebar → drawer (just hide for mobile artboard preview) */
  .dashboard-body              { grid-template-columns: 1fr !important; }
  .dashboard-sidebar           { display: none !important; }
  .dashboard-topbar-search     { display: none !important; }
  .dashboard-topbar-invite     { display: none !important; }
  .dashboard-main              { padding: 18px 16px !important; }
  .dashboard-tabs              { overflow-x: auto; flex-wrap: nowrap !important; }
  .dashboard-server-header     { flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
  .dashboard-server-actions    { flex-wrap: wrap; gap: 8px !important; }
  .dashboard-overview          { grid-template-columns: 1fr !important; }
  .dashboard-metric-row        { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

  /* SectionHeader breathing room */
  .section-header              { padding-top: 48px !important; padding-bottom: 32px !important; }

  /* Hide search bar's keyboard hint on mobile */
  .search-kbd                  { display: none; }

  /* Tabs in pricing FAQ stack tighter */
  details summary              { gap: 8px; }

  /* Mobile-only menu button */
  .nav-mobile-menu             { display: block; }
}

/* ──────────────────────────────────────────────────────────────────────
   CARROT motion layer
   Goal: signature warm/editorial motion. Not particle networks (Wisenut),
   not heavy scroll-pin (Neurophet). The carrot brand is parchment + amber,
   so the motion is grain-drift, ink-stroke draws, and gentle lifts.
   ────────────────────────────────────────────────────────────────────── */

/* Reduce or remove motion if the user opts out */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal *, .reveal-stagger > *,
  .kb-zoom, .marquee-track, .pulse-dot, .underline-draw::after,
  .hover-lift {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── Scroll reveal (single class, observed by JS) ───────────────────── */
/* Slower, more dynamic: rise + slight scale-up + blur-to-focus.
   Duration ~1.2s, easing leaves a hint of inertia at the end. */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  filter: blur(4px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 1.0s ease-out;
  will-change: opacity, transform, filter;
}
.reveal.is-in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger children — children fade up one after another, with a wider
   delay so the cascade feels deliberate, not flickery. */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(3px);
  transition:
    opacity 1.0s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.85s ease-out;
}
.reveal-stagger.is-in-view > * { opacity: 1; transform: none; filter: blur(0); }
.reveal-stagger.is-in-view > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.is-in-view > *:nth-child(2) { transition-delay: 0.16s; }
.reveal-stagger.is-in-view > *:nth-child(3) { transition-delay: 0.32s; }
.reveal-stagger.is-in-view > *:nth-child(4) { transition-delay: 0.48s; }
.reveal-stagger.is-in-view > *:nth-child(5) { transition-delay: 0.64s; }
.reveal-stagger.is-in-view > *:nth-child(6) { transition-delay: 0.80s; }
.reveal-stagger.is-in-view > *:nth-child(7) { transition-delay: 0.96s; }
.reveal-stagger.is-in-view > *:nth-child(8) { transition-delay: 1.12s; }

/* ── Card hover lift — used on .card and similar tiles ──────────────── */
/* Multi-layer highlight: lift + soft scale + floor shadow + amber ring
   + outer glow + a thin amber stripe that grows along the top edge. */
.hover-lift {
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.25s;
}
.hover-lift::after {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--carrot), transparent);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 3;
}
.hover-lift:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 32px 72px rgba(26, 24, 20, 0.18),    /* deep floor shadow      */
    0 8px 22px  rgba(26, 24, 20, 0.08),    /* mid shadow             */
    0 0 0 1.5px var(--carrot),             /* amber ring (sharp)     */
    0 0 36px rgba(224, 122, 47, 0.22);     /* amber outer glow       */
  border-color: var(--carrot);
}
.hover-lift:hover::after {
  width: 64%;
}
/* Optional arrow-slide-on-hover inside hover-lift */
.hover-lift .arrow-slide {
  display: inline-block;
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hover-lift:hover .arrow-slide { transform: translateX(6px); }

/* ── Ken Burns — slow zoom for hero images ──────────────────────────── */
@keyframes kb-zoom {
  0%   { transform: scale(1.00) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}
.kb-zoom {
  animation: kb-zoom 9s ease-out both;
  will-change: transform;
}

/* ── Marquee — endless horizontal logo strip ────────────────────────── */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg,
    transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Pulse dot — small amber dot pulsing (CARROT signature) ─────────── */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--carrot);
}
.pulse-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--carrot);
  opacity: 0;
  animation: pulse-dot-wave 2.2s ease-out infinite;
}
@keyframes pulse-dot-wave {
  0%   { opacity: 0.6; transform: scale(0.6); }
  60%  { opacity: 0.0; transform: scale(1.6); }
  100% { opacity: 0.0; transform: scale(1.6); }
}

/* ── Eyebrow underline draw — when in-view, the line draws in ───────── */
.underline-draw {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.underline-draw::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--carrot);
  transform-origin: left center;
}
/* Hidden + drawn-in only inside a .reveal block (consistent with .eyebrow). */
.reveal:not(.is-in-view) .underline-draw::after,
.reveal-stagger:not(.is-in-view) .underline-draw::after {
  transform: scaleX(0);
}
.reveal .underline-draw::after,
.reveal-stagger .underline-draw::after {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: 0.15s;
}


/* ── Hero text stagger (eyebrow → title → lead → CTA) ───────────────── */
.hero-text > * {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-text > *:nth-child(1) { animation-delay: 0.10s; }
.hero-text > *:nth-child(2) { animation-delay: 0.22s; }
.hero-text > *:nth-child(3) { animation-delay: 0.36s; }
.hero-text > *:nth-child(4) { animation-delay: 0.52s; }
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* ── Carousel slide cross-fade (replaces the old slide-translate jump) ─ */
.carousel-slide.cf-fade {
  transition: opacity 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
.carousel-slide.cf-fade.is-active   { opacity: 1; z-index: 20; }
.carousel-slide.cf-fade.is-inactive { opacity: 0; z-index: 10; }

/* ── Sticky viewer scroll-spotlight (CARROT signature)
      Used by CarrotViewerSection — left list is sticky, right image
      cross-fades as you scroll. A standard pattern but here the active
      tick gets the carrot pulse-dot. ─────────────────────────────────── */
.viewer-img-slot {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ──────────────────────────────────────────────────────────────────────
   Hero "oval to fullbleed" scroll reveal
   The wrap is taller than the viewport. The sticky inner stays pinned
   while the user scrolls through it, and JS writes `--reveal` (0..1)
   onto the sticky element. CSS reads it to grow the frame from a long
   pill into a full-bleed hero.
   ────────────────────────────────────────────────────────────────────── */
.hero-reveal-wrap {
  position: relative;
  height: 200vh;
  background: var(--canvas-parchment);
}
.hero-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  --reveal: 0;
  --text-op: 0;
}
/* Big brand wordmark that floats above the oval and shrinks as the
   oval grows. Color is interpolated black → gray → white via HSL
   lightness, tied to scroll progress so it stays readable on the
   parchment surround (black at start) and the dark X-ray image
   inside the frame (white at end). Sits ABOVE the frame via z-index. */
.hero-brandmark {
  position: absolute;
  left: 0; right: 0;
  /* Position drifts from 18vh (above small oval) → 28vh (just above
     the in-frame eyebrow at full bleed). */
  top: calc(18vh + 10vh * var(--reveal));
  text-align: center;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  /* "살짝씩 작아지는" — start big, end medium */
  /* 🔴 폭(vw)만 보면 낮은 창(예: 1220×480)에서 글자가 화면 높이에 비해 너무 커져
     아래 삼각형 · 슬라이드 문구와 겹친다. 높이(vh)로도 상한을 둔다.
     1440×900 처럼 보통 창은 vw 쪽이 작아 예전과 같은 크기. */
  font-size: calc(clamp(56px, min(10vw, 15vh), 132px) - clamp(16px, min(3.5vw, 6vh), 56px) * var(--reveal));
  line-height: 0.95;
  /* Black → white via HSL lightness with a SLOW ramp:
       reveal 0 .. 0.30 → pure black (still over parchment)
       reveal 0.30 .. 0.95 → ramps gently through dark / mid / light grays
       reveal 0.95 .. 1.0 → pure white (fully over dark image)
     Lightness in % = clamp(0, (reveal - 0.30) * 154, 100). */
  color: hsl(0 0% clamp(0%,
                        calc((var(--reveal) - 0.30) * 154%),
                        100%));
  /* Subtle shadow so transitional grays still read against either
     parchment or the dark image. Shadow fades out at the extremes. */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, calc(0.18 * var(--reveal))),
    0 0   8px rgba(255, 255, 255, calc(0.12 * (1 - var(--reveal))));
  pointer-events: none;
  z-index: 20;                /* ← keep above the frame and its image */
  white-space: nowrap;
  will-change: top, font-size, color;
  user-select: none;
}
@media (max-width: 720px) {
  .hero-brandmark { top: calc(12vh + 10vh * var(--reveal)); }
}

/* Tagline beneath the prism logo — full sentence centered. */
.hero-tagline {
  position: absolute;
  left: 0; right: 0;
  top: 70vh;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(18px, 2.6vw, 36px);
  line-height: 0.95;
  color: var(--ink);
  opacity: clamp(0, calc(1 - var(--reveal) * 4), 1);
  pointer-events: none;
  z-index: 18;
  user-select: none;
  white-space: nowrap;
  transition: none;
}
.hero-tagline-plus { color: var(--carrot); margin: 0 0.3em; }
@media (max-width: 720px) {
  .hero-tagline { top: 72vh; font-size: clamp(14px, 3.6vw, 20px); }
}

.hero-reveal-frame {
  position: relative;
  z-index: 1;               /* below the brandmark (z-index: 20) */
  /* Frame is always full-screen — only the mask grows. This keeps the
     X-ray underneath full-size and avoids any in-between frame state. */
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-black);
  transition: none;
  will-change: mask-size;

  /* Two-layer mask:
       layer 1 — the MEDIPRISM logo SVG. Grows modestly (15vw → 110vw)
                 so the silhouette + inner divisions stay readable. Does
                 NOT need to cover the whole frame on its own.
       layer 2 — a solid white overlay whose alpha (var --logo-fill) goes
                 0 → 1 between reveal 0.4 and 0.9. It fills in the holes
                 between the logo's inner rings as the silhouette dissolves
                 into a full-screen reveal.
     Composite "add" unions the two — opaque pixels in either layer stay
     opaque, and the overlay's fill-in masks out the inner-gap pattern. */
  --logo-fill: clamp(0, calc((var(--reveal) - 0.4) * 2), 1);

  mask-image:
    url("/static/images/logo-mask.e406a9ad3343.svg?v=2"),
    linear-gradient(rgba(255, 255, 255, var(--logo-fill)),
                    rgba(255, 255, 255, var(--logo-fill)));
  mask-position: center, center;
  mask-repeat: no-repeat, no-repeat;
  mask-size:
    calc(min(15vw, 25vh) + 95vw * var(--reveal)) auto,
    100% 100%;
  mask-composite: add;

  -webkit-mask-image:
    url("/static/images/logo-mask.e406a9ad3343.svg?v=2"),
    linear-gradient(rgba(255, 255, 255, var(--logo-fill)),
                    rgba(255, 255, 255, var(--logo-fill)));
  -webkit-mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size:
    calc(min(15vw, 25vh) + 95vw * var(--reveal)) auto,
    100% 100%;
  -webkit-mask-composite: source-over;
}
/* When the frame is wrapping the carousel, force the carousel to fit */
.hero-reveal-frame .hero-carousel {
  position: absolute; inset: 0;
  width: 100%; height: 100% !important;
  border-radius: inherit;
  overflow: hidden;
}
/* Text + dots fade in only after the frame is mostly expanded */
.hero-reveal-frame .carousel-content,
.hero-reveal-frame .carousel-dots {
  opacity: var(--text-op);
  transition: opacity 0.25s ease-out;
}
/* When reveal is small, scale down text inside the small frame so it
   doesn't poke out of the capsule before fading in. */
.hero-reveal-frame .carousel-content > .hero-text {
  transform: scale(calc(0.7 + 0.3 * var(--reveal)));
  transform-origin: center;
  transition: transform 0.2s ease-out;
}
/* 낮은 창 — 슬라이드 제목이 위 MEDIPRISM 글자와 겹치지 않게 높이에 맞춰 줄인다.
   (높이 800px 이하에서만. 1440×900 같은 보통 창은 그대로) */
@media (max-height: 800px) {
  .hero-reveal-frame .t-hero { font-size: min(56px, 8.5vh); }
  /* 제목 묶음을 MEDIPRISM 글자 아래 남은 칸의 가운데로 내린다 */
  .hero-reveal-frame .carousel-content { padding-top: 14vh; }
}
@media (max-height: 800px) and (max-width: 640px) {
  .hero-reveal-frame .t-hero { font-size: min(34px, 8.5vh); }
}
/* Pull the var --reveal / --text-op up from sticky to the frame */
.hero-reveal-sticky .hero-reveal-frame {
  --reveal: inherit;
}
/* Mobile: shrink the initial capsule less drastically so the headline
   still has room. */
@media (max-width: 720px) {
  .hero-reveal-wrap   { height: 180vh; }
  .hero-reveal-frame  {
    /* Bigger starting mask on mobile so the prism is recognizable */
    mask-size:
      calc(30vw + 90vw * var(--reveal)) auto,
      100% 100%;
    -webkit-mask-size:
      calc(30vw + 90vw * var(--reveal)) auto,
      100% 100%;
  }
}

/* ── Scroll progress bar — thin amber line at top of viewport ───────── */
.carrot-scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.carrot-scroll-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--carrot) 0%, var(--carrot-focus) 100%);
  box-shadow: 0 0 8px rgba(224, 122, 47, 0.45);
  transition: width 0.08s linear;
}

/* ── Button shine — sweeping highlight across .btn-primary on hover ─── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg,
    transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ── Carousel dot active pulse ──────────────────────────────────────── */
.carousel-dot.is-active {
  position: relative;
}
.carousel-dot.is-active::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: inherit;
  border: 1px solid var(--carrot);
  opacity: 0;
  animation: carousel-dot-pulse 2.4s ease-out infinite;
}
@keyframes carousel-dot-pulse {
  0%   { opacity: 0.55; transform: scale(0.85); }
  60%  { opacity: 0;    transform: scale(1.6); }
  100% { opacity: 0;    transform: scale(1.6); }
}

/* ── Lenis baseline (so the html element scrolls smoothly) ──────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* — Default state for elements that the mobile rules hide — */
.global-nav-hamburger          { display: none; }
.global-nav-mobile-panel       { display: none; }

/* — 전역 내비 접힘 —
   항목이 많아 겹치기 전에 햄버거로 전환한다. 로그인 시(.authed) 우측 항목이
   더 많으므로 더 넓은 폭(≤1200)부터, 비로그인은 ≤900 부터 접는다. */
@container app (max-width: 900px) {
  .global-nav-links-desktop    { display: none !important; }
  .global-nav-cta-desktop      { display: none !important; }
  .global-nav-hamburger        { display: inline-flex !important; }
  .global-nav-mobile-panel     { display: block; }
}
@container app (max-width: 1240px) {
  .global-nav.authed .global-nav-links-desktop { display: none !important; }
  .global-nav.authed .global-nav-cta-desktop   { display: none !important; }
  .global-nav.authed .global-nav-hamburger     { display: inline-flex !important; }
  .global-nav.authed .global-nav-mobile-panel  { display: block; }
}

/* — narrow tablet column count — */
@container app (max-width: 980px) and (min-width: 641px) {
  .grid-3                      { grid-template-columns: repeat(2, 1fr); }
  .product-tile-split          { gap: 40px !important; }
  .product-tile-split          { grid-template-columns: 1fr !important; }
  .footer-cols                 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── 준비 중 가림막 ──────────────────────────────────────────────────
 * 본문은 그대로 두고 흐리게 가린 뒤, 그 위에 준비 중임을 알린다.
 * 비워 두는 것보다 낫다 — 무엇이 준비되고 있는지 윤곽은 보인다.
 *
 * 🔴 .soon-veil-body 에 filter 를 걸면 그 안의 position:fixed · sticky 가
 *    화면이 아니라 이 상자를 기준으로 잡힌다. 그래서 상단 내비·서브내비·
 *    푸터는 가림막 **밖**에 둔다 — 가려서도 안 되고(길이 끊긴다) 붙박이가
 *    풀려서도 안 된다.
 * 🔴 가려 놓고 눌리면 안 된다. pointer-events 로 마우스를, inert 로 키보드
 *    탭 이동을 함께 막는다(둘 중 하나만으로는 새는 길이 남는다).
 * 안내 카드는 sticky 로 화면 가운데에 머문다 — 본문이 길어도 스크롤하는
 *    동안 계속 보인다. 늘 보이는 편이 낫다: 흐린 화면만 남으면 고장으로 읽힌다.
 */
/* 🔴 overflow:hidden 을 쓰면 안 된다 — 그 순간 이 상자가 sticky 의 스크롤
 *    기준이 돼 안내 카드가 화면에 머물지 않고 그대로 올라가 버린다.
 *    흐림의 번짐만 잡으면 되므로 clip-path 로 자른다. */
.soon-veil        { position: relative; clip-path: inset(0); }
.soon-veil-body   { filter: blur(7px) saturate(0.88); pointer-events: none; user-select: none; }
.soon-veil-over   { position: absolute; inset: 0; z-index: 6; background: rgba(255,255,255,0.46); }
.soon-veil-card   {
  position: sticky; top: 50vh; transform: translateY(-50%);
  width: min(520px, calc(100% - 48px)); margin: 0 auto;
  padding: 40px 36px 42px; text-align: center;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -28px rgba(20, 16, 8, 0.34);
}
.soon-veil-t      {
  font-family: var(--f-display); font-size: 34px; font-weight: 700;
  letter-spacing: -0.024em; color: var(--ink);
  margin: 14px 0 12px; text-wrap: balance;
}
.soon-veil-d      { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-muted-80); }

@media (max-width: 720px) {
  .soon-veil-body { filter: blur(5px) saturate(0.88); }
  .soon-veil-card { padding: 32px 24px 34px; }
  .soon-veil-t    { font-size: 27px; }
}

/* 🔴 가려진 본문에서는 등장 연출(.reveal)을 하지 않고 끝난 모습으로 둔다.
 *
 * 가림막의 일은 '원래 화면을 흐릿하게 보여 주는 것' 이다. 그런데 .reveal 은
 * opacity 0 에서 시작해 화면에 들어올 때 1 로 올라간다 — 가림막 뒤에서는
 * 브라우저가 그 전환을 끝까지 돌리지 않고 중간(0.11 정도)에 세워 두는 일이
 * 생긴다. 그러면 본문이 거의 지워진 것처럼 보여 가릴 내용조차 남지 않는다.
 * 연출은 처음 보는 사람에게 보여 주려고 있는 것인데 어차피 가려져 있다 —
 * 돌릴 이유가 없다. 끝난 모습으로 고정한다.
 */
.soon-veil-body .reveal,
.soon-veil-body .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}
.soon-veil-body .reveal .eyebrow::after,
.soon-veil-body .reveal-stagger .eyebrow::after,
.soon-veil-body .reveal .underline-draw::after,
.soon-veil-body .reveal-stagger .underline-draw::after {
  transform: none !important;
  transition: none !important;
}

/* 문장마다 한 줄 — shared/components.jsx 의 SentenceLines.
   칸보다 긴 문장만 둘 이상으로 나뉘는데, 그때도 balance 로 줄 길이를 고르게
   나눠 마지막 줄에 단어 하나둘만 남는 꼬리를 막는다(2026-10-16). */
.sent-line { display: block; text-wrap: balance; }

/* 로그인 · 가입 · 비밀번호 찾기(.auth-shell) — 좁은 창에서는 한 단으로 쌓는다.
   🔴 두 단 그대로면 왼쪽 소개 칸이 최소 420px 를 잡아, 768 폭 가입 화면은 이메일
   입력칸이 납작해지고 단추가 창 밖으로 밀려 가로 스크롤이 생겼고, 휴대폰(390)에서는
   입력 양식이 통째로 화면 오른쪽 밖으로 밀려났다(2026-10-19 점검).
   두 단이 넉넉한 넓은 창의 모습은 그대로 둔다. */
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr;
  }
  .auth-shell > aside { padding: 28px 24px 32px !important; }
  .auth-shell > aside > div:not(:last-child) { margin-bottom: 28px !important; }
  .auth-shell > main { padding: 40px 24px 56px !important; align-items: flex-start !important; }
}
