/* ============================================================
   INLET — Korea Market Entry Consultancy
   Monochrome editorial  ·  Didone display (Bodoni Moda)
   No accent color. Contrast comes from weight, scale, tracking.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:        #050504;
  --black:      #0a0908;
  --panel:      #0f0e0c;
  --white:      #f4f2ec;
  --grey:       #8f8a80;
  --grey-dim:   #57524a;
  --accent:     #cbc6ba;   /* muted ecru — a dimmer white, NOT gold */
  --line:       rgba(244,242,236,0.13);
  --line-soft:  rgba(244,242,236,0.06);
  --hair:       rgba(244,242,236,0.09);
  --glow:       rgba(244,242,236,0.10);
  --shadow:     rgba(0,0,0,0.6);

  --display: 'Bodoni Moda', 'Times New Roman', Georgia, serif;
  --serif:   'Bodoni Moda', 'Times New Roman', Georgia, serif;
  --sans:    'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --pad-x: clamp(1.5rem, 5vw, 4.5rem);
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --z-nav: 200; --z-progress: 300; --z-menu: 240; --z-cursor: 500;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
  letter-spacing: 0.005em;
}

/* Display type — Didone, high contrast */
.hero-title, .page-title, .cta-title, .home-intro h2, .cell-name, .stat-number,
.svc-left h2, .sc-left h2, .tier .amt, .faq-q, .info-value, .process-step h3,
.success-msg h2, .pull, .nf-code, .legal h2, h1, h2, h3, blockquote {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: pretty;
}
em { font-style: italic; color: var(--white); font-family: var(--display); }

/* CJK (Japanese) — phrase-level wrapping, no mid-word splits, proper kinsoku */
:root[lang="ja"] body { line-break: strict; word-break: auto-phrase; }
:root[lang="ja"] .hero-title, :root[lang="ja"] .page-title, :root[lang="ja"] .cta-title,
:root[lang="ja"] .home-intro h2, :root[lang="ja"] .pull, :root[lang="ja"] .sc-left h2,
:root[lang="ja"] .svc-left h2, :root[lang="ja"] h1, :root[lang="ja"] h2, :root[lang="ja"] h3,
:root[lang="ja"] .cell-name, :root[lang="ja"] .faq-q, :root[lang="ja"] .legal h2 { text-wrap: normal; }
:root[lang="ja"] em { font-style: normal; }

/* Tabular figures */
.stat-number, .tier .amt, .sc-metrics .m, .row span:last-child, .addon .n, .cell-num { font-variant-numeric: tabular-nums; }

/* --- Ambient: vignette + fine grain only (no colored auras) --------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
/* static grain — painted once, no blend, no animation (perf) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--white); color: var(--ink); }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 600; background: var(--white); color: var(--ink); padding: 0.7rem 1.2rem; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ============================================================
   CUSTOM CURSOR (blend-difference — signature interaction)
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: var(--z-cursor);
  border-radius: 50%; transform: translate(-50%,-50%); mix-blend-mode: difference;
  will-change: transform; opacity: 0;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.7); transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.3s; }
.cursor-active .cursor-dot, .cursor-active .cursor-ring { opacity: 1; }
/* hover interactive: ring blooms, dot shrinks */
.cursor-hover .cursor-ring { width: 62px; height: 62px; border-color: rgba(255,255,255,0.9); }
.cursor-hover .cursor-dot { width: 4px; height: 4px; }
/* over big media/labels: label mode */
.cursor-view .cursor-ring { width: 92px; height: 92px; }
.cursor-view .cursor-dot { opacity: 0; }
.cursor-label { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; transform: translate(-50%,-50%); font-family: var(--sans); font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s; }
.cursor-view .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring, .cursor-label { display: none; } }

/* --- Scroll progress ------------------------------------------------ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 1.5px; width: 0%; background: var(--white); z-index: var(--z-progress); transition: width 0.1s linear; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem var(--pad-x);
  background: rgba(5,5,4,0.5); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}
nav.scrolled { background: rgba(5,5,4,0.9); border-bottom-color: var(--line); padding: 1.05rem var(--pad-x); }
nav.hidden { transform: translateY(-105%); }

.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { height: 42px; width: auto; display: block; mix-blend-mode: screen; transition: height 0.4s ease; }
nav.scrolled .logo img { height: 34px; }
.footer-brand .logo img { height: 54px; }
.nav-links { display: flex; gap: 2.6rem; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--grey); text-decoration: none;
  position: relative; padding: 0.2rem 0; transition: color 0.25s ease;
}
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--white); transition: width 0.35s var(--ease); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links .nav-cta { padding: 0.62rem 1.5rem; border: 1px solid var(--line); color: var(--white); transition: all 0.35s var(--ease); }
.nav-links .nav-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 0.55rem; margin-left: 0.4rem; }
.lang-switch button { background: none; border: none; cursor: pointer; padding: 0.2rem 0.1rem; font-family: var(--sans); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-dim); transition: color 0.25s ease; }
.lang-switch button:hover { color: var(--grey); }
.lang-switch button.active { color: var(--white); }
.lang-switch .sep { color: var(--grey-dim); font-size: 0.55rem; pointer-events: none; }
.mobile-menu .lang-switch { margin: 1.4rem 0 0; gap: 1rem; }
.mobile-menu .lang-switch button { font-size: 0.8rem; letter-spacing: 0.15em; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 250; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; background: rgba(5,5,4,0.98); backdrop-filter: blur(8px); z-index: var(--z-menu); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2.2rem; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.05em; color: var(--grey); text-decoration: none; transition: color 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--white); }
.mobile-menu .nav-cta { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.8rem 2rem; border: 1px solid var(--line); margin-top: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block; padding: 1rem 2.7rem; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--white); cursor: pointer; position: relative; overflow: hidden;
  transition: color 0.4s var(--ease), background 0.4s var(--ease), transform 0.18s var(--ease);
}
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform 0.45s var(--ease); z-index: 0; }
.btn-primary:hover { color: var(--white); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:active { transform: scale(0.975); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  font-family: var(--sans); font-size: 0.64rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--grey); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: all 0.3s var(--ease);
}
.btn-secondary:hover { color: var(--white); border-color: var(--white); }

.btn-outline { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.8rem; border: 1px solid var(--line); color: var(--white); font-family: var(--sans); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; transition: all 0.3s var(--ease); }
.btn-outline:hover { background: rgba(244,242,236,0.06); border-color: var(--white); }
.btn-outline:active { transform: scale(0.975); }
.btn-outline svg { width: 14px; height: 14px; }

/* ============================================================
   TYPE + LAYOUT PRIMITIVES
   ============================================================ */
.eyebrow, .section-label, .page-tag, .hero-tag { font-family: var(--sans); text-transform: uppercase; color: var(--grey); font-weight: 400; }
.section { padding: clamp(4.5rem, 10vw, 8.5rem) var(--pad-x); border-bottom: 1px solid var(--line); position: relative; }
.section-label { font-size: 0.58rem; letter-spacing: 0.4em; margin-bottom: 3.2rem; display: inline-flex; align-items: center; gap: 1rem; }
.section-label::before { content: ''; width: 34px; height: 1px; background: var(--grey); }

.page-hero { padding: clamp(9rem,17vw,13rem) var(--pad-x) clamp(3rem,6vw,5rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-tag { font-size: 0.58rem; letter-spacing: 0.4em; margin-bottom: 1.8rem; }
.page-title { font-size: clamp(3rem, 7vw, 6rem); font-weight: 400; line-height: 1.0; letter-spacing: -0.01em; }
.page-subtitle { margin-top: 1.8rem; font-size: 1.1rem; color: var(--grey); max-width: 56ch; line-height: 1.75; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 9rem var(--pad-x) 6rem; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.hero-glow, .hero-mesh { display: none; }  /* removed colored auras */
.hero > * { position: relative; z-index: 1; }
.hero-logo-wrap { margin: 0 0 2.4rem; line-height: 0; }
.hero-logo { width: min(620px, 84vw); height: auto; display: block; margin: 0 auto; mix-blend-mode: screen; }
.hero-tag { font-size: 0.6rem; letter-spacing: 0.5em; margin-bottom: 0; }
.hero .hero-divider { margin-top: 2rem; }
.hero-title { font-size: clamp(4.5rem, 13vw, 12rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.01em; max-width: 68rem; }
.hero-divider { width: 1px; height: 60px; background: linear-gradient(var(--grey), transparent); margin: 2.6rem auto; }
.hero-subtitle { font-size: 1rem; line-height: 1.9; color: var(--grey); max-width: 46ch; }
.hero-cta { margin-top: 3.6rem; display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 0.5rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--grey-dim); display: flex; flex-direction: column; align-items: center; gap: 0.7rem; z-index: 1; }
.scroll-hint::after { content: ''; width: 1px; height: 36px; background: linear-gradient(var(--grey), transparent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100%{opacity:0.25;transform:scaleY(0.6)} 50%{opacity:1;transform:scaleY(1)} }

/* Marquee — draggable */
.marquee-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.3rem 0; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-wrap.dragging { cursor: grabbing; }
.marquee { display: flex; gap: 4.5rem; animation: marquee 30s linear infinite; width: max-content; }
.marquee-wrap.dragging .marquee, .marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee-item { font-family: var(--display); font-style: italic; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--grey); white-space: nowrap; display: flex; align-items: center; gap: 1.1rem; }
.marquee-item::before { content: '\2014'; color: var(--grey-dim); font-style: normal; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* Stats */
.stats { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(2.2rem,4vw,3.2rem) var(--pad-x); border-right: 1px solid var(--line); transition: background 0.4s ease; }
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(244,242,236,0.02); }
.stat-number { font-size: clamp(2.4rem,4.5vw,3.2rem); font-weight: 400; letter-spacing: -0.02em; }
.stat-label { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey); margin-top: 0.7rem; }

/* ============================================================
   INTERACTIVE SURFACES — hairline draw + title shift
   ============================================================ */
.cell-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.cell { padding: clamp(2.2rem,3.5vw,3rem); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: background 0.5s var(--ease); }
.cell:nth-child(2n) { border-right: none; }
.cell:nth-last-child(-n+2) { border-bottom: none; }
.cell::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--white); transition: width 0.5s var(--ease); }
.cell:hover::after { width: 100%; }
.cell:hover { background: rgba(244,242,236,0.025); }
.cell-num { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--grey); margin-bottom: 1.6rem; }
.cell-name { font-size: 1.7rem; font-weight: 400; margin-bottom: 0.9rem; line-height: 1.15; transition: transform 0.5s var(--ease); }
.cell:hover .cell-name { transform: translateX(6px); }
.cell-desc { font-size: 0.9rem; color: var(--grey); line-height: 1.75; max-width: 44ch; font-family: var(--sans); }
.cell-link { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-top: 1.4rem; display: inline-flex; gap: 0.5rem; align-items: center; transition: gap 0.3s var(--ease); }
.cell:hover .cell-link { gap: 0.9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: clamp(2.5rem,5vw,4rem) var(--pad-x) 2rem; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-soft); }
.footer-brand .logo { margin-bottom: 1.3rem; display: inline-block; }
.footer-brand p { color: var(--grey); font-size: 0.96rem; line-height: 1.7; max-width: 42ch; }
.footer-col h4 { font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.4rem; }
.footer-col a { display: block; color: var(--grey); text-decoration: none; font-size: 0.96rem; margin-bottom: 0.7rem; transition: color 0.25s; width: fit-content; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.8rem; flex-wrap: wrap; }
.footer-left, .footer-right { font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.22em; color: var(--grey-dim); text-transform: uppercase; }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.18em; color: var(--grey-dim); text-transform: uppercase; text-decoration: none; transition: color 0.25s; }
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   REVEAL + SCRUB
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

.scrub .w { color: var(--grey-dim); transition: color 0.3s ease; }
.scrub .w.lit { color: var(--white); }

/* Interactive list hover — title slide (services / cases) */
.svc-left h2, .sc-left h2 { transition: transform 0.5s var(--ease); }
.svc:hover .svc-left h2, .scenario:hover .sc-left h2 { transform: translateX(8px); }
.svc, .scenario { transition: background 0.5s var(--ease); }
.svc:hover, .scenario:hover { background: rgba(244,242,236,0.02); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scrub .w { color: inherit; }
  body::after, .marquee, .scroll-hint::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .logo { font-size: 1.2rem; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .cell-grid { grid-template-columns: 1fr; }
  .cell { border-right: none !important; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; justify-content: center; }
}
