/* Figma revisions 1–23, 2026-11-09. Scoped overrides; original files preserved. */
:root { --figma-navy: #19273f; }
.hero-lead { word-break:keep-all; overflow-wrap:normal; }
.header-contact { display:inline-flex; align-items:center; justify-content:space-between; gap:22px; padding:10px 18px; min-height:44px; border:1px solid #d9e1cf66; border-radius:32px; background:linear-gradient(120deg,#4d5a40aa,#153e3680); color:#fff8ed; font-size:13px; text-decoration:none; white-space:nowrap; }
.header-contact:hover,.header-contact:focus-visible { background:#345747; border-color:#f4e9cf; }
.header-contact>span:last-child { font-size:19px; }
.header-right { gap:14px; }
/* 5–6: clip the photograph itself, not just its surrounding frame. */
.story-visual { border-radius:16px; }
.story-visual>img { border-radius:10px; }
.value-card.education .value-visual { border-radius:14px; overflow:hidden; }
.value-card.education .value-visual>img { border-radius:10px; }
/* 10: only the signature copy's line spacing. */
.brand-signature>p { line-height:1.35; }
.brand-signature>p small { display:block; line-height:1.3; margin-top:4px; }
/* 11: preserve the explanatory copy and put the illustration in its empty right side. */
.math-lead-layout { display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:48px; margin:48px 0 64px; }
.math-lead-layout .math-opening { margin:0 0 42px; max-width:none; }
.math-lead-layout .math-definition { margin:0; max-width:none; text-align:center; }
.math-future-visual { margin:0; }
.math-future-visual img { display:block; width:100%; height:auto; mix-blend-mode:multiply; }
/* 12–14 and 21: selected text only; keep FIVE / YAKGWA accent colors. */
#product>.wrap>.section-kicker>span:last-child { color:var(--figma-navy); }
#product .product-choices a,#product .product-choices a:hover,#product .product-choices a:focus-visible { color:var(--figma-navy); border-color:#19273f55; }
#product .product-choices a:hover,#product .product-choices a:focus-visible { background:#e6e6dc; }
#product .product-choices a { transition:background-color .2s,border-color .2s; }
#product .product-copy .eyebrow,#six-yakgwa .product-copy .eyebrow,
#product .product-copy .product-name,#six-yakgwa .product-copy .product-name,
#product .product-copy h3,#six-yakgwa .product-copy h3,
#product .product-copy .body-copy,#six-yakgwa .product-copy .body-copy,
#product .product-spec dt,#six-yakgwa .product-spec dt,
#product .product-spec dd,#six-yakgwa .product-spec dd { color:var(--figma-navy); }
#product .product-actions>a.button { background:#dce4f2; color:var(--figma-navy); }
/* 15 and 23: allow the entire first glyph to clear the rounded clipping edge. */
.package-stage .stage-top { padding-left:12px; }
/* 16: align both arrow centers to the actual image center. */
.package-carousel { display:block; position:relative; flex:0 0 auto; margin-block:auto; padding:0; }
.package-carousel .product-zoom { display:block; width:calc(100% - 84px); margin:0 auto; }
.package-carousel .package-arrow { position:absolute; top:50%; transform:translateY(-50%); width:34px; min-width:34px; }
.package-carousel .package-prev { left:0; }
.package-carousel .package-next { right:0; }
/* 17: gentle repeatable movement; do not move the frame or controls. */
@media (hover:hover) and (pointer:fine) {
  .package-carousel .product-zoom:hover>img { animation:package-gentle-sway 1.8s ease-in-out infinite; transform-origin:50% 75%; }
}
@keyframes package-gentle-sway { 0%,100% { transform:translateY(0) rotate(0); } 25% { transform:translateY(-3px) rotate(-.65deg); } 75% { transform:translateY(-3px) rotate(.65deg); } }
/* 18–19: shared dialog, image-centered arrows for front and back. */
#productDialog .dialog-media { position:relative; padding:0 46px 30px; }
#productDialog .dialog-media>img { display:block; width:100%; height:auto; max-height:73vh; object-fit:contain; transform:none; }
#productDialog .dialog-controls { position:static; margin:0; }
#productDialog .dialog-controls button { position:absolute; top:calc((100% - 30px)/2); transform:translateY(-50%); width:38px; height:42px; }
#productDialog .dialog-prev { left:0; }
#productDialog .dialog-next { right:0; }
#productDialog .dialog-side { position:absolute; bottom:2px; left:0; right:0; text-align:center; pointer-events:none; }
/* 20: only PICK FIVE catalog button. 22: SIX YAKGWA inquiry replaces play CTA. */
#product .catalog-link { background:var(--figma-navy); color:#fff8ed; }
#six-yakgwa .product-actions .primary-inquiry { background:var(--figma-navy); color:#fff8ed; text-decoration:none; }
#product .catalog-link:hover,#six-yakgwa .product-actions .primary-inquiry:hover { background:#2b3c5b; }
@media (max-width:1100px) { .desktop-nav { gap:16px; } .header-inner { gap:16px; } .header-contact { gap:12px; padding:9px 14px; } }
@media (max-width:900px) { .header-contact { font-size:12px; min-height:40px; padding:8px 12px; gap:10px; } .math-lead-layout { gap:24px; } }
@media (max-width:700px) {
  .header-inner { gap:10px; } .header-right { gap:8px; } .header-contact { gap:7px; padding:7px 10px; min-height:38px; font-size:11px; }
  .header-contact>span:last-child { font-size:15px; } .header-right .language button { min-width:0; font-size:10px; padding:2px; } .header-right .flag-icon { width:15px; height:10px; margin-right:2px; }
  .site-header .brand img.brand-original { width:135px; }
  .math-lead-layout { grid-template-columns:1fr; gap:20px; margin:28px 0 36px; }
  .math-lead-layout .math-opening { margin-bottom:30px; }
  .math-future-visual { max-width:360px; margin:0 auto; }
  .package-carousel .product-zoom { width:calc(100% - 72px); }
  .package-carousel .package-arrow { width:30px; min-width:30px; }
  .package-stage .stage-top { padding-left:8px; }
  #productDialog { padding:14px; }
  #productDialog .dialog-media { padding:0 35px 28px; }
  #productDialog .dialog-controls button { width:30px; height:38px; top:calc((100% - 28px)/2); }
  #productDialog .dialog-side { font-size:12px; }
}
@media (max-width:380px) { .site-header .brand img.brand-original { width:112px; } .header-contact { padding:7px 9px; } .header-contact>span:last-child { display:none; } }
@media (prefers-reduced-motion:reduce) { .package-carousel .product-zoom:hover>img { animation:none!important; transform:none!important; } }
