.header .logo .mobile-logo-line { display: none; }
@font-face {
  font-family: "Opening Title";
  src: url("assets/fonts/OpeningTitle.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Opening Title";
  src: url("assets/fonts/OpeningKeop.woff2") format("woff2");
  font-weight: 800;
  unicode-range: U+cefe;
  font-display: swap;
}
.cupfi-opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff2cb;
  text-align: center;
}
.cupfi-opening .opening-copy {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  padding: clamp(18px, 2.35vw, 54px) 10px 0;
  font-family: "Opening Title", "Cupfi Pretendard", sans-serif;
}
.cupfi-opening .opening-copy p {
  margin: 0;
  font: 500 3.2292vw/normal "Opening Title", "Cupfi Pretendard", sans-serif;
  color: #000;
  letter-spacing: -1px;
}

.cupfi-opening .opening-copy h1 {
  margin: .06em 0 0;
  font: 800 3.9744vw/normal "Opening Title", "Cupfi Pretendard", sans-serif;
  color: #ff7800;
  letter-spacing: normal;
}
.cupfi-opening .opening-picture { margin: 0; position: relative; }
.opening-picture .table-photo { position: relative; width: 100%; }
.opening-picture .table-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.opening-picture::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18%;
  background: linear-gradient(to bottom, #fff2cb 0%, #fff2cb 35%, rgba(255,242,203,.9) 55%, transparent);
  pointer-events: none;
}
.opening-picture .type-window {
  position: absolute;
  inset: 31% 0 auto;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.type-line {
  display: flex;
  width: max-content;
  white-space: nowrap;
  color: white;
  font: 850 clamp(50px, 8.5vw, 186px)/1 "Cupfi Pretendard", sans-serif;
  letter-spacing: -.045em;
  --flow-period: 48s;
  filter: drop-shadow(0 1px 2px rgba(75, 45, 18, .35));
  animation: cupfi-type-flow var(--flow-period) linear infinite;
}
.type-run { display: inline-flex; align-items: center; gap: .25em; padding-right: .25em; }
.type-run i { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px white; }
@keyframes cupfi-type-flow { to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 760px) {
  .header, .header nav { background: #39271e; color: white; }
  .header .header-cta { background: transparent; color: white; border: 1px solid #a99a8e; }
  .header .menu-toggle span { background: white; }
  .header .logo {
    justify-content: center; padding: 8px 0; flex: none;
    color: #fff; background: transparent;
    text-align: center; font-size: 23px; line-height: 1.05;
  }
  .header .logo .brand-mark, .header .logo .desktop-logo-line { display: none; }
  .header .logo .mobile-logo-line {
    display: block; margin: 5px 0 0; color: #fff;
    font: 650 8px/1.1 "Cupfi Pretendard", sans-serif; letter-spacing: .17em;
  }
  .cupfi-opening { background: #f5eddf; }
  .cupfi-opening .opening-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
  .opening-picture::after { display: none; }
  .type-line { font-size: clamp(48px, 13vw, 95px); --flow-period: 32s; }
  .type-run i { -webkit-text-stroke-width: 1px; }
}

/* Give the opening its own playback control, including on reduced-motion devices. */
.flow-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.flow-switch {
  position: absolute; z-index: 4; bottom: 10px; left: 12px;
  display: grid; width: 44px; height: 44px; place-items: center;
  cursor: pointer; touch-action: manipulation;
}
.flow-switch span {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: rgba(49,35,24,.78); color: white; border-radius: 50%;
}
.flow-switch span::after { content: ""; width: 8px; height: 10px; border-inline: 2px solid currentColor; box-sizing: border-box; }
.flow-toggle:checked + .flow-switch span::after { width: 0; height: 0; border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: currentColor; }
.flow-toggle:focus-visible + .flow-switch span { outline: 3px solid white; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cupfi-opening .type-line { animation: cupfi-type-flow calc(var(--flow-period) * 2) linear infinite !important; }
}
.flow-toggle:checked ~ .type-window .type-line { animation-play-state: paused !important; }


.sb-video-section {
  padding: clamp(36px, 6vw, 88px) max(18px, 5vw);
  text-align: center;
  background: #fffaf1;
}
.sb-video-section h2 {
  margin: 0 auto clamp(18px, 2.5vw, 34px);
  color: #35261e;
  width: min(100%, 920px);
  container-type: inline-size;
  line-height: 1.25;
  letter-spacing: -.045em;
  word-break: keep-all;
}
.sb-title-line { display: block; font-size: 5.93cqw; letter-spacing: -.045em; white-space: nowrap; }
.sb-title-line strong { display: inline-block; color: #e85408; }
.sb-video-section video {
  display: block;
  width: min(100%, 920px);
  height: auto;
  aspect-ratio: 1074 / 400;
  margin-inline: auto;
  background: #201c19;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .sb-title-line { font-size: 9.52cqw; }
  .sb-title-line strong { display: block; font-size: 16.16cqw; letter-spacing: -.045em; }
}

.sb-player { position: relative; width: min(100%, 920px); margin-inline: auto; }
.sb-load:not([hidden]) { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid #ffffff80; background: #35261eee; color: white; padding: 12px 22px; border-radius: 28px; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }

@media (max-width: 760px) {
  .menu-section .menu-tabs { display: flex; flex-wrap: wrap; gap: 5px 4px; }
  .menu-section .menu-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 5px clamp(4px, 1.25vw, 9px);
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  #menu-panel { --menu-columns: 3; grid-template-columns: repeat(var(--menu-columns), minmax(0, 1fr)); gap: 10px 8px; align-items: stretch; }
  #menu-panel .product { min-width: 0; border-radius: 9px; }
  #menu-panel .product img, #menu-panel .menu-placeholder { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: var(--cream); }
  #menu-panel .product h3 { min-height: 0; margin: 0; padding: 8px 7px 3px; font-size: clamp(13px, 3.3vw, 16px); line-height: 1.32; overflow-wrap: anywhere; }
  #menu-panel .product p { margin: 0; padding: 0 7px 9px; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
  #menu .menu-pagination { margin-top: 16px; }
}
@media (max-width: 359px) { #menu-panel { --menu-columns: 2; } }

#sb-video { padding-bottom: clamp(10px, 1vw, 16px); }
#sb-video + #brand { padding-top: clamp(16px, 2vw, 32px); }
