/* ONSEMO v7: layout and card finish from the supplied design, using local brand fonts. */
.home-page .site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(75,98,139,.13); background: rgba(246,248,253,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.home-page .nav { width: min(100%, 1540px); min-height: 78px; padding: 0 clamp(24px,5.1vw,86px); gap: 20px; }
.home-page .brand img { width: 107px; height: auto; }
.home-page .nav-links { margin-inline: auto; gap: 29px; }
.home-page .language { margin-left: 18px; }
.home-page .mobile-menu summary { background: transparent; }
.v7-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg,#e4e9f7,#f5f7fc 79%,#f5f7fd); padding-bottom: 32px; min-height: 0; }
.v7-hero::before { content: ""; position: absolute; z-index: -2; inset: -79px 0 auto; height: min(63vw,610px); min-height: 390px; background-image: linear-gradient(90deg,rgba(245,232,241,.58) 0%,rgba(249,233,235,.10) 36%,rgba(255,255,255,0) 73%),url('/assets/v7/sunset-fixed.webp'); background-size: cover; background-position: center 76%; opacity: 1; transform: scale(1.03); }
.v7-hero::after { content: ""; position: absolute; z-index: -1; inset: 290px 0 auto; height: 380px; background: linear-gradient(0deg,#f6f8fd 0,rgba(246,248,253,.04) 94%); pointer-events: none; }
/* Keep the sun near its original position on wide screens, but reveal the
   reference photograph's mountain ridgeline before the lower image fades. */
@media (min-width:881px) {
  .v7-hero::before {
    inset: -180px 0 auto;
    height: 720px;
    min-height: 0;
    background-position: center 70%;
    background-image: linear-gradient(90deg,rgba(245,232,241,.28) 0%,rgba(249,233,235,.06) 37%,rgba(255,255,255,0) 73%),url('/assets/v7/sunset-fixed.webp');
    -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 86%,transparent 100%);
    mask-image: linear-gradient(to bottom,#000 0%,#000 86%,transparent 100%);
  }
  .v7-hero::after {
    inset: 410px 0 auto;
    height: 230px;
    background: linear-gradient(0deg,#f6f8fd 0%,rgba(246,248,253,0) 100%);
  }
}
/* Static photographic hero: no rotating backgrounds or color-grade animations. */

.v7-container { width: min(calc(100% - 112px),1420px); margin: auto; }
.v7-hero section { padding: 0; }
.v7-hero .v7-intro { padding-top: 77px; min-height: 335px; }
.v7-intro h1 { margin: 0 0 8px; height: clamp(61px,5.55vw,104px); display: flex; align-items: center; }
/* Light dimensional edge on the hero wordmark only; retain the approved SVG and flat tagline. */
.v7-intro h1 img {
  width: clamp(290px,25vw,420px);
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(255,187,148,.64))
          drop-shadow(1px 1px 0 rgba(25,38,55,.56))
          drop-shadow(0 5px 5px rgba(24,33,49,.24));
}
.v7-intro p { font-size: clamp(25px,3vw,42px); letter-spacing: -.035em; font-weight: 700; line-height: 1.25; margin: 0; text-shadow: 0 1px 12px rgba(255,248,242,.33); }
/* Keep natural word spacing. Track letters gently rather than justifying Korean words. */
html[lang=ko] .v7-intro p {
  font-size: clamp(19px,2.2vw,29px);
  font-weight: 600;
  letter-spacing: .005em;
  white-space: normal;
  text-align: left;
  margin-left: 6px;
  text-shadow: none;
}
/* Keep both Korean phrases intact, allowing a natural two-line fit on narrow phones. */
html[lang=ko] .v7-intro .v7-ko-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .3em;
  row-gap: 0;
}
html[lang=ko] .v7-ko-tagline span { white-space: nowrap; }
/* Stable word slot: the headline never changes width as the last word rotates. */
html[lang=ko] .v7-intro .v7-tagline-phrase { display: inline-flex; align-items: baseline; gap: .34em; }
html[lang=ko] .v7-intro .v7-rotating-word { display: inline-flex; position: relative; flex: 0 0 3em; width: 3em; align-items: baseline; line-height: inherit; }
/* Let the visible word share the same baseline as the sentence, not a raised absolute box. */
html[lang=ko] .v7-intro .v7-rotating-word-text {
  position: relative; display: inline-block;
  color: inherit; font-weight: 700;
  text-shadow: none;
  opacity: 1;
}
@media (prefers-reduced-motion:no-preference) {
  html[lang=ko] .v7-intro .v7-rotating-word-text { transition: opacity .15s ease; }
  html[lang=ko] .v7-intro .v7-rotating-word.is-leaving .v7-rotating-word-text,
  html[lang=ko] .v7-intro .v7-rotating-word.is-arriving .v7-rotating-word-text { opacity: 0; }
}
html[lang=ko] .v7-intro .v7-tagline-accessible {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.v7-featured { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; position: relative; }
.v7-feature { height: 252px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 23px 27px; color: #fff; border: 0; border-radius: 20px; background: #253b45; box-shadow: 0 12px 28px rgba(23,36,62,.13); transform: translate3d(0,0,0); transition: transform .32s cubic-bezier(.2,.75,.3,1),box-shadow .32s ease; }
.v7-feature--blog { --photo: url('/assets/v7/blog-photo.webp'); }
.v7-feature--invest { --photo: url('/assets/v7/invest-photo.webp'); }
.v7-feature--home { --photo: url('/assets/v7/home.webp'); }
.v7-feature::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--photo); background-size: cover; background-position: center; /* Keep the baked-in white frame outside the visible surface, even with reduced motion. */ transform: scale(1.11); transition: transform .65s cubic-bezier(.18,.8,.28,1); }
.v7-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg,rgba(9,19,22,.22) 0%,rgba(9,19,22,0) 30%,rgba(9,19,22,.035) 50%,rgba(9,19,22,.68) 100%); }
.v7-feature .v7-featuring { position: absolute; left: 26px; top: 21px; letter-spacing: .17em; font-size: 9px; font-weight: 800; color: rgba(255,255,255,.92); text-shadow: 0 1px 7px rgba(9,19,22,.24); }
.v7-feature h2 { font-size: clamp(28px,2.4vw,37px); margin: 0; line-height: 1.18; letter-spacing: -.06em; font-weight: 800; text-shadow: 0 1px 9px rgba(9,19,22,.12); }
.v7-feature p { max-width: 88%; font-size: 13px; margin: 7px 0 0; color: #fff; letter-spacing: -.02em; line-height: 1.5; font-weight: 500; text-shadow: 0 1px 8px rgba(9,19,22,.25); }
.v7-arrow { position: absolute; right: 24px; bottom: 24px; transition: transform .25s; display: grid; place-items: center; }
.v7-arrow svg { width: 28px; height: 28px; stroke-width: 1.5; }
.v7-hero svg { display: block; stroke-linecap: round; stroke-linejoin: round; }
#services { scroll-margin-top: 90px; }
.v7-section-minor { display: flex; align-items: center; gap: 13px; margin: 0 0 18px; color: #536075; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .095em; }
.v7-section-minor span { color: #637185; font-weight: 400; white-space: nowrap; }
.v7-section-minor::after { content: ""; height: 1px; background: rgba(30,51,82,.1); flex: 1; }
/* The approved comp has no extra divider label between the hero and the eight cards.
   Keep the one-group heading in the accessible document outline. */
.v7-service-section > .v7-section-minor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v7-feature--invest::before { background-position: 61% center; }
.v7-feature--home::before { background-position: 67% center; }
.v7-services { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; margin-top: 16px; }
.v7-service { position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: 196px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border: 0; border-radius: 20px; background: #35556e; color: #fff; box-shadow: 0 12px 28px rgba(23,36,62,.13); transform: translate3d(0,0,0); transition: transform .32s cubic-bezier(.2,.75,.3,1),box-shadow .32s ease; }
.service--tools { --service-photo: url('/assets/v7/service-photo/web-tools.webp'); }
.service--cart { --service-photo: url('/assets/v7/service-photo/cart.webp'); }
.service--connect { --service-photo: url('/assets/v7/service-photo/connect.webp'); }
.service--games { --service-photo: url('/assets/v7/service-photo/games.webp'); }
.service--food { --service-photo: url('/assets/v7/service-photo/food.webp'); }
/* Keep the identifiable subject inside the vertical mobile crop too. */
.service--tools::before { background-position: 51% center; }
.service--cart::before { background-position: 57% center; }
.service--connect::before { background-position: 69% center; }
.service--games::before { background-position: 54% center; }
.service--food::before { background-position: 58% center; }
.v7-service::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: var(--service-photo); background-size: cover; background-position: center; transform: scale(1.03); transition: transform .65s cubic-bezier(.18,.8,.28,1); }
.v7-service::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(9,19,32,.32),rgba(9,19,32,.02) 32%,rgba(9,19,32,.15) 51%,rgba(9,19,32,.83) 100%); pointer-events: none; }
.v7-service-eyebrow { position: absolute; left: 18px; top: 18px; font-size: 9px; line-height: 1.3; font-weight: 800; letter-spacing: .12em; text-shadow: 0 1px 8px rgba(9,19,32,.35); }
.v7-service-body { display: flex; flex-direction: column; min-width: 0; gap: 6px; padding-right: 12px; }
.v7-service-body h3 { margin: 0; font-size: clamp(21px,1.8vw,27px); font-weight: 800; line-height: 1.18; letter-spacing: -.045em; text-shadow: 0 2px 9px rgba(9,19,32,.25); }
.v7-service-body small { display: block; max-width: 95%; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.4; text-shadow: 0 1px 7px rgba(9,19,32,.3); overflow-wrap: anywhere; }
.v7-service-arrow { position: absolute; right: 14px; bottom: 15px; color: #fff; transition: transform .25s; }
.v7-service-arrow svg { width: 23px; height: 23px; stroke-width: 1.7; }
.home-page .mobile-nav-group--services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 8px; }
.home-page .mobile-nav-group--services .mobile-nav-label { grid-column: 1 / -1; }
.home-page .mobile-nav-group--services .mobile-menu-item { min-height: 44px; padding: 8px 10px; }
.home-page footer .wrap { width: min(calc(100% - 112px),1240px); }
.home-page .footer-grid { grid-template-columns: 1.55fr repeat(3,minmax(0,1fr)); gap: 38px 54px; }
.home-page .footer-brand .brand img { width: 130px; }
.home-page .footer-brand p { font-size: 16px; }
.home-page .footer-col a { display: flex; justify-content: space-between; gap: 10px; }
.home-page .footer-col a span { opacity: 0; transition: opacity .2s; }
.home-page .footer-col a:hover span,.home-page .footer-col a:focus-visible span { opacity: 1; }
.home-page .footer-bottom { display: flex; justify-content: space-between; gap: 15px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .v7-feature:hover { transform: translate3d(0,-5px,0); box-shadow: 0 18px 34px rgba(23,36,62,.18); }
  .v7-feature:hover::before { transform: scale(1.145); }
  .v7-feature:hover .v7-arrow { transform: translateX(5px); }
  .v7-service:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(23,36,62,.18); }
  .v7-service:hover::before { transform: scale(1.085); }
  .v7-service:hover .v7-service-arrow { transform: translateX(4px); }
}
@media (prefers-reduced-motion:no-preference) {
  .v7-feature:focus-visible { transform: translate3d(0,-5px,0); }
  .v7-feature:focus-visible::before { transform: scale(1.145); }
  .v7-feature:focus-visible .v7-arrow { transform: translateX(5px); }
}
@media (max-width:1160px) {
  .v7-container { width: calc(100% - 64px); }
  .home-page .nav { padding-inline: 32px; }
  .home-page .nav-links { gap: 23px; }
  .v7-featured { gap: 13px; }
  .v7-services { gap: 12px; }
  .v7-service { padding: 15px; min-height: 183px; }
  .v7-service-eyebrow { left: 15px; top: 15px; font-size: 8px; }
  .v7-service-body h3 { font-size: 22px; }
  .v7-service-body small { font-size: 10px; }
  .v7-service-arrow { right: 12px; bottom: 13px; }
  .v7-service-arrow svg { width: 19px; height: 19px; }
}
@media (max-width:880px) {
  .home-page .nav { min-height: 68px; padding-inline: 24px; gap: 12px; }
  .home-page .nav-links { gap: 0; margin-left: auto; margin-right: 0; }
  .home-page .language { margin: 0; }
  .v7-hero { min-height: 0; }
  .v7-hero .v7-intro { padding-top: 72px; min-height: 315px; }
  .v7-intro h1 { height: clamp(62px,10vw,88px); }
  .v7-intro h1 img { width: clamp(290px,44vw,380px); }
  .v7-intro p { font-size: clamp(29px,5.8vw,39px); }
  html[lang=ko] .v7-intro p { font-size: clamp(20px,2.9vw,27px); letter-spacing: .005em; margin-left: 4px; }
  .v7-featured { gap: 12px; }
  .v7-feature { height: 230px; padding: 20px; }
  .v7-feature .v7-featuring { top: 20px; left: 19px; font-size: 8px; letter-spacing: .12em; }
  .v7-feature h2 { font-size: 28px; }
  .v7-feature p { font-size: 12px; }
  .v7-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .v7-service { min-height: 188px; }
  .v7-hero::before { height: 520px; }
  .home-page .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px; }
  .home-page .footer-brand { grid-column: 1/-1; }
}
@media (max-width:620px) {
  .v7-container { width: calc(100% - 32px); }
  .home-page .nav { min-height: 66px; padding: 0 18px; gap: 7px; }
  .home-page .brand img { width: 96px; }
  .home-page .nav-links .language { background: transparent; padding: 0 7px; font-size: 11px; gap: 5px; }
  .home-page .mobile-menu summary { width: 35px; height: 39px; }
  .v7-hero { min-height: 0; padding-bottom: 25px; background: linear-gradient(180deg,#e4e9f7 0px,#f3cbd0 455px,#f5f7fc 810px,#f5f7fd 100%); }
  .v7-hero::before { height: 720px; min-height: 0; inset: -52px 0 auto; background-position: 46% 72%; background-image: linear-gradient(90deg,rgba(245,232,241,.58),rgba(249,233,235,.05) 78%),url('/assets/v7/sunset-fixed.webp'); -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 76%,transparent 99%); mask-image: linear-gradient(to bottom,#000 0%,#000 76%,transparent 99%); }
  .v7-hero::after { inset: 410px 0 auto; height: 390px; }
  .v7-hero .v7-intro { min-height: 243px; padding-top: 54px; }
  .v7-intro h1 { height: clamp(52px,14vw,78px); }
  .v7-intro h1 img { width: clamp(220px,61vw,300px); max-width: 100%; }
  .v7-intro p { font-size: clamp(23px,6.5vw,34px); font-weight: 700; }
  html[lang=ko] .v7-intro p { font-size: clamp(17px,4.7vw,21px); letter-spacing: 0; margin-left: 2px; }
  html[lang=en] .v7-intro p { font-size: clamp(19px,5.8vw,30px); max-width: 340px; }
  .v7-featured { grid-template-columns: 1fr; gap: 12px; }
  .v7-feature { height: 186px; border-radius: 19px; padding: 18px 22px; }
  .v7-feature .v7-featuring { font-size: 9px; left: 21px; top: 18px; letter-spacing: .17em; }
  .v7-feature h2 { font-size: 31px; }
  .v7-feature p { font-size: 12px; }
  .v7-arrow { bottom: 18px; right: 19px; }
  .v7-section-minor { margin: 0 0 13px; }
  .v7-services { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
  .v7-service { min-height: 174px; border-radius: 19px; padding: 15px; }
  .v7-service-eyebrow { left: 15px; top: 15px; font-size: 8px; letter-spacing: .08em; }
  .v7-service-body { padding-right: 10px; }
  .v7-service-body h3 { font-size: 23px; }
  .v7-service-body small { font-size: 10px; line-height: 1.35; }
  .service--games { grid-column: 1/-1; min-height: 174px; }
  .home-page footer .wrap { width: calc(100% - 42px); }
  .home-page .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 25px; }
  .home-page .footer-bottom span { display: inline; }
}
/* Long, subtle mobile-only depth: the sunset lags behind cards by at most 28px.
   Keep the original photo crop, fade overlay, cards, and desktop composition untouched. */
@media (max-width:620px) and (prefers-reduced-motion:no-preference) {
  .v7-hero::before {
    transform: translate3d(0,var(--v7-sunset-parallax,0px),0) scale(1.03);
  }
}
@media (max-width:340px) {
  .v7-hero .v7-intro { min-height: 220px; }
  .v7-intro h1 { height: 49px; }
  .v7-intro h1 img { width: 214px; }
  .v7-intro p { font-size: 22px; }
  html[lang=ko] .v7-intro p { font-size: 17px; letter-spacing: 0; margin-left: 2px; }
  .v7-feature { height: 163px; }
  .v7-feature h2 { font-size: 27px; }
  .v7-feature p { font-size: 11px; }
  .v7-service { min-height: 159px; padding: 13px; }
  .v7-service-eyebrow { top: 13px; left: 13px; }
  .v7-service-body h3 { font-size: 20px; }
  .v7-service-body small { font-size: 9px; }
}
@media (prefers-reduced-motion:reduce) {
  .v7-feature,.v7-feature::before,.v7-arrow,.v7-service,.v7-service::before,.v7-service-arrow { transition: none; }
  /* Cropping is structural, not animation: do not reset this scale to none. */
  .v7-feature::before { transform: scale(1.11); }
  .v7-service::before { transform: scale(1.03); }
}

/* Soften the background image's lower edge on the shorter tablet hero. */
@media (min-width:621px) and (max-width:880px) {
  .v7-hero::before { mask-image: linear-gradient(#000 68%,transparent 100%); }
}

/* Mobile service navigation uses the Blog's restrained grouped menu pattern. */
.home-page .mobile-panel-head { padding: 1px 4px 8px; }
.home-page .mobile-panel-head h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.035em; }
.home-page .mobile-nav { display: grid; gap: 12px; margin-top: 6px; }
.home-page .mobile-nav-group { display: grid; gap: 2px; }
.home-page .mobile-nav-group + .mobile-nav-group { padding-top: 11px; border-top: 1px solid var(--line); }
.home-page .mobile-nav-label { display: block; padding: 2px 10px 5px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.home-page .mobile-menu-item { display: flex; align-items: center; min-height: 44px; padding: 9px 11px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.4; }
.home-page .mobile-menu-item[aria-current="page"] { background: #e7edf7; color: #245f9e; }
.home-page .mobile-menu-item:hover, .home-page .mobile-menu-item:focus-visible { background: #edf2fa; }
.home-menu-search { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border: 1px solid #d2dfd7; border-radius: 10px; background: #edf5f0; color: #284b3b; font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; }
.home-menu-search:hover, .home-menu-search:focus-visible { border-color: #7f9d8d; background: #e1efe6; }
@media (max-width:880px) {
  .home-page .mobile-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(360px,calc(100vw - 32px)); max-height: min(72dvh,560px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid #dce3e5; border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(14,23,38,.13); }
}
@media (max-width:390px) {
  .home-page .mobile-panel { width: min(360px,calc(100vw - 24px)); padding: 16px; border-radius: 16px; }
  .home-page .mobile-panel-head h2 { font-size: 19px; }
}

/* Desktop five-card gallery: three even cards, then two centered at the same width. */
@media (min-width:881px) {
  .v7-services { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
  .v7-service { grid-column: span 2; min-height: 236px; }
  .v7-service:nth-child(4) { grid-column: 2 / span 2; }
  .v7-service:nth-child(5) { grid-column: 4 / span 2; }
}

/* Preserve the HOME card photos, order and proportions on the service directory. */
.v7-directory{position:relative;isolation:isolate;overflow:hidden;min-height:70vh;padding:44px 0 60px;background:linear-gradient(180deg,#f6edeb 0%,#f7f8fc 330px,#f6f8fd 100%)}
.v7-directory .v7-container{position:relative}
.v7-directory section{padding:0}
.v7-directory .v7-directory-intro{padding:0 0 28px}
.v7-directory-back{display:inline-flex;align-items:center;gap:7px;min-height:36px;color:#54647a;font-size:12px;font-weight:700}
.v7-directory-back:hover,.v7-directory-back:focus-visible{text-decoration:underline;text-underline-offset:4px}
.v7-directory-eyebrow{margin:25px 0 10px;color:#875b60;font-size:11px;font-weight:800;letter-spacing:.13em}
.v7-directory h1{max-width:none;font-size:clamp(34px,4.7vw,59px);font-weight:850;letter-spacing:-.055em;line-height:1.18;word-break:keep-all}
.v7-directory-lead{max-width:650px;margin:14px 0 0;color:#526176;font-size:clamp(14px,1.4vw,17px);line-height:1.65;word-break:keep-all}
.v7-directory .v7-featured,.v7-directory .v7-services{position:relative}
.v7-directory .v7-feature,.v7-directory .v7-service{color:#fff}
.v7-directory .v7-service-section{scroll-margin-top:84px}
@media(max-width:720px){
 .v7-directory{padding:22px 0 36px}
 .v7-directory .v7-directory-intro{padding-bottom:22px}
 .v7-directory-eyebrow{margin-top:16px}
 .v7-directory h1{font-size:clamp(30px,8vw,38px)}
 .v7-directory-lead{font-size:14px}
}
