/* nesh B2B site - shared styles */
:root {
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --line: #e6e6e6;
  --paper: #ffffff;
  --mist: #f6f6f6;
  --blue: #dbe7f5;      /* main banner color */
  --blue-deep: #c9dbf0;
  --pink: #f3d9d7;
  --radius: 0px;
  --max: 1440px;
  --pad: clamp(20px, 3.4vw, 48px);
  --header-h: 72px;
  --font: "Poppins", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.section-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.section-head { text-align: center; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head .eyebrow { margin-bottom: 6px; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.site-header.is-solid, .site-header.always-solid {
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}
.nav-main { display: flex; gap: 28px; }
.nav-main a, .nav-side a {
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav-main a::after, .nav-side a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-main a:hover::after, .nav-side a:hover::after, .nav-main a.is-active::after { transform: scaleX(1); }
.logo img { height: 22px; width: auto; }
.nav-side { display: flex; justify-content: flex-end; gap: 24px; align-items: center; }
.btn-pill, .nav-side .btn-pill {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff !important; font-size: 12px; font-weight: 500; letter-spacing: .04em;
  transition: background .25s ease, transform .25s ease;
}
.btn-pill:hover { background: #333; }
.btn-pill::after { display: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .04em; transition: all .25s ease;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.menu-toggle { display: none; width: 28px; height: 28px; position: relative; }
.menu-toggle span { position: absolute; left: 3px; right: 3px; height: 1.5px; background: var(--ink); transition: transform .3s ease, top .3s ease, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 9px; }
.menu-toggle span:nth-child(2) { top: 18px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 13.5px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 13.5px; transform: rotate(-45deg); }
.mobile-drawer {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 49; padding: 28px var(--pad);
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
body.menu-open .mobile-drawer { opacity: 1; transform: none; pointer-events: auto; }
.mobile-drawer a { display: block; font-size: 22px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-drawer .drawer-mail { font-size: 13px; color: var(--ink-2); border: 0; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); }
.hero-track { position: relative; aspect-ratio: 2560 / 960; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active img { animation: heroZoom 7s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero-dots { position: absolute; z-index: 3; right: var(--pad); bottom: 22px; display: flex; gap: 8px; }
.hero-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(17,17,17,.25); transition: all .3s ease; }
.hero-dots button.is-active { background: var(--ink); width: 22px; border-radius: 4px; }
.hero-dots[hidden] { display: none; }

/* ---------- Care That Shows ---------- */
.care {
  position: relative; padding: clamp(64px, 6.5vw, 96px) 0; background: #f7f7f7; overflow: hidden;
}
.care::before {
  content: ""; position: absolute; inset: -20% -10%; pointer-events: none;
  background: radial-gradient(55% 70% at 75% 40%, rgba(255,255,255,.6), rgba(255,255,255,0) 70%);
}
.care-grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.care-copy h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; }
.shutter {
  --item-h: 74px; --gap: 14px;
  height: calc(var(--item-h) * 3 + var(--gap) * 2); overflow: hidden; position: relative;
}
.shutter-track { list-style: none; display: flex; flex-direction: column; gap: var(--gap); transition: transform 1.4s cubic-bezier(.65,0,.35,1); will-change: transform; }
.shutter-item {
  flex: 0 0 var(--item-h); height: var(--item-h); min-height: 0; overflow: hidden; display: block; text-align: center; padding: 0 24px;
  line-height: var(--item-h); white-space: nowrap;
  background: rgba(255,255,255,.38); border-radius: 14px; color: var(--ink-3);
  transition: background 1.2s ease, color 1.2s ease, opacity 1.2s ease; opacity: .7;
}
.shutter-item.is-active { background: rgba(255,255,255,.82); color: var(--ink); opacity: 1; }
.shutter-item > span { display: inline-block; vertical-align: baseline; line-height: 1; margin: 0 5px; }
.shutter-item .pre, .shutter-item .next { font-size: 15px; font-weight: 300; }
.shutter-item .num { font-size: 30px; font-weight: 300; letter-spacing: -.01em; }
.shutter-item .when { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-left: 4px; opacity: .7; }
.care-note { position: relative; margin-top: 22px; font-size: 11px; color: var(--ink-3); text-align: right; }
/* ---------- Best sellers ---------- */
.bestsellers { padding: clamp(80px, 8vw, 120px) 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { text-align: center; }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mist); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s ease; }
.product-media .tex { opacity: 0; transform: scale(1.06); }
.product-card.show-tex .product-media .main { opacity: 0; }
.product-card.show-tex .product-media .tex { opacity: 1; transform: scale(1); }
@media (hover: hover) {
  .product-card:hover .product-media .main { opacity: 0; }
  .product-card:hover .product-media .tex { opacity: 1; transform: scale(1); }
}
.product-tag {
  position: absolute; z-index: 2; left: 14px; top: 14px; font-size: 10px; font-weight: 500; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 999px; background: #fff; text-transform: uppercase;
}
.product-info { padding: 18px 8px 0; }
.product-info h3 { font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; line-height: 1.45; }
.product-info p { font-size: 12px; color: var(--ink-2); margin-top: 6px; letter-spacing: .03em; }

/* ---------- Video ---------- */
.film { position: relative; background: #000; }
.film video { width: 100%; height: auto; max-height: 92vh; object-fit: cover; }
.film-sound {
  position: absolute; right: var(--pad); bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.film-sound svg { width: 14px; height: 14px; }

/* ---------- Gateway cards ---------- */
.gateway { padding: clamp(64px, 7vw, 100px) 0; }
.gateway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gate-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mist); }
.gate-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.gate-card:hover img { transform: scale(1.04); }
.gate-card::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.55)); pointer-events: none; }
.gate-card .gate-label { position: absolute; left: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 26px); z-index: 2; }
.gate-card h3 { font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.gate-card .gate-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.gate-card .gate-cta svg { width: 14px; height: 14px; transition: transform .3s ease; }
.gate-card:hover .gate-cta svg { transform: translateX(4px); }

/* ---------- Creators ---------- */
.creators { padding: 0 0 clamp(80px, 8vw, 120px); }
.creator-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.creator-slot { position: relative; aspect-ratio: 9 / 16; background: var(--mist); overflow: hidden; display: grid; place-items: center; }
.creator-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creator-slot .placeholder { text-align: center; color: var(--ink-3); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.creator-slot .placeholder svg { display: block; width: 28px; height: 28px; margin: 0 auto 10px; opacity: .5; }
.creator-handle { font-size: 12px; text-align: center; margin-top: 10px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a1a; color: #d9d9d9; padding: clamp(56px, 6vw, 80px) 0 32px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.6fr; gap: 40px; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #9a9a9a; line-height: 1.8; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { list-style: none; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; color: #9a9a9a; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid #2e2e2e; font-size: 12px; color: #7d7d7d; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid #3a3a3a; border-radius: 50%; display: grid; place-items: center; transition: all .25s; }
.footer-social a:hover { border-color: #fff; color: #fff; }
.footer-social svg { width: 15px; height: 15px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- Simple pages ---------- */
.page-top { padding-top: var(--header-h); }
.placeholder-page { min-height: 70vh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, #fff, var(--blue)); }
.placeholder-page h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: -.02em; margin: 10px 0 14px; }
.placeholder-page p { color: var(--ink-2); margin-bottom: 28px; }

/* ---------- Inquiry ---------- */
.inquiry { display: grid; grid-template-columns: 5fr 7fr; min-height: calc(100vh - var(--header-h)); }
.inquiry-visual { position: relative; background: var(--mist); }
.inquiry-visual-inner { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; }
.inquiry-visual img { width: 100%; height: 100%; object-fit: cover; }
.inquiry-visual-inner::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(180deg, rgba(246,246,246,0), rgba(246,246,246,.92) 55%, #f6f6f6); pointer-events: none; }
.inquiry-visual .visual-copy { z-index: 2; }
.inquiry-visual .visual-copy { position: absolute; left: clamp(24px, 3vw, 44px); bottom: clamp(24px, 3vw, 44px); right: 24px; }
.inquiry-visual .visual-copy h1 { font-size: clamp(30px, 3vw, 44px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; margin: 10px 0 12px; }
.inquiry-visual .visual-copy p { font-size: 14px; color: var(--ink-2); max-width: 380px; }
.inquiry-form-wrap { padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px); max-width: 820px; width: 100%; }
.steps { display: flex; gap: 10px; margin-bottom: 44px; }
.step-ind { flex: 1; }
.step-ind .bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.step-ind .bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.step-ind.is-done .bar::after, .step-ind.is-current .bar::after { transform: scaleX(1); }
.step-ind .step-name { display: flex; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.step-ind.is-current .step-name, .step-ind.is-done .step-name { color: var(--ink); }
.form-step { display: none; animation: stepIn .5s ease both; }
.form-step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.form-step h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; letter-spacing: -.01em; margin-bottom: 6px; }
.form-step .step-desc { color: var(--ink-2); font-size: 14px; margin-bottom: 32px; }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label, .field .label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .04em; margin-bottom: 8px; }
.field label .req, .field .label .req { color: #c0392b; margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 13px 0; border: 0; border-bottom: 1px solid #cfcfcf; background: transparent;
  border-radius: 0; outline: none; transition: border-color .25s ease; color: var(--ink);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 16px; padding-right: 26px; }
.field textarea { min-height: 120px; resize: vertical; border: 1px solid #cfcfcf; padding: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field .error-msg { display: none; font-size: 12px; color: #c0392b; margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border: 1px solid #d5d5d5; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: all .2s ease; user-select: none;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 12px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: .05em; transition: background .25s ease;
}
.btn-primary:hover { background: #333; }
.btn-primary[disabled] { opacity: .5; cursor: wait; }
.btn-primary svg, .btn-outline svg { width: 15px; height: 15px; }
.btn-text { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.btn-text:hover { color: var(--ink); }
.btn-text svg { width: 15px; height: 15px; }
.form-done { display: none; text-align: left; animation: stepIn .5s ease both; }
.form-done.is-active { display: block; }
.form-done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 26px; }
.form-done .check svg { width: 24px; height: 24px; }
.form-done h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; margin-bottom: 12px; }
.form-done p { color: var(--ink-2); margin-bottom: 30px; max-width: 480px; }
.form-done .done-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-main, .nav-side .hide-m { display: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: 40px 1fr 40px; }
  .logo { justify-self: center; }
  .logo img { height: 19px; }
  .nav-side { gap: 0; }
  .hero-dots { bottom: 12px; }
  .site-header { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
  .hero { margin-top: var(--header-h); }
  .care-grid { grid-template-columns: 1fr; }
  .hero-track { aspect-ratio: 4 / 5; }
  .care-grid { gap: 28px; }
  .care-copy { text-align: center; }
  .shutter { --item-h: 60px; --gap: 10px; }
  .shutter-item { padding: 0 10px; }
  .shutter-item > span { margin: 0 3px; }
  .shutter-item .pre, .shutter-item .next { font-size: 13px; }
  .shutter-item .num { font-size: 23px; }
  .shutter-item .when { display: none; }
  .care-note { text-align: center; }
  .product-grid { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-card { scroll-snap-align: start; }
  .gateway-grid { grid-template-columns: 1fr; gap: 12px; }
  .gate-card { aspect-ratio: 4 / 3; }
  .creator-grid { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .creator-grid::-webkit-scrollbar { display: none; }
  .creator-item { scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column-reverse; gap: 18px; align-items: flex-start; }
  .inquiry { grid-template-columns: 1fr; }
  .inquiry-visual-inner { position: relative; top: 0; height: 46vh; min-height: 300px; }
  .field-row { grid-template-columns: 1fr; }
  .steps { margin-bottom: 32px; }
  .step-ind .step-name b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
