/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #f7fbff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(255, 255, 255, 0.86);
  --text: rgba(7, 22, 38, 0.92);
  --muted: rgba(7, 22, 38, 0.68);
  --muted-2: rgba(7, 22, 38, 0.46);
  --stroke: rgba(7, 22, 38, 0.14);
  --accent: #fb7185;   /* sunset coral */
  --accent-2: #38bdf8; /* ocean sky */
  --shadow: 0 18px 60px rgba(2, 6, 23, 0.12);
  --radius: 18px;
}

body {
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background:
    /* light travel mood: sky + ocean + warm sun */
    radial-gradient(1100px 760px at 14% 6%, rgba(251, 113, 133, 0.22), transparent 62%),
    radial-gradient(980px 720px at 88% 10%, rgba(56, 189, 248, 0.20), transparent 60%),
    radial-gradient(920px 560px at 52% 98%, rgba(251, 191, 36, 0.12), transparent 66%),
    /* subtle paper/map texture */
    repeating-linear-gradient(135deg, rgba(7, 22, 38, 0.018) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(0deg, rgba(7, 22, 38, 0.012) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, #fbfdff 0%, #f1f8ff 55%, #fdf7fb 100%);
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* App shell (rail + main) */
.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--stroke);
  background:
    radial-gradient(520px 360px at 20% 10%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(520px 360px at 80% 22%, rgba(167, 139, 250, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
}

.rail .brand { font-size: 1.18rem; }

.rail-nav {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.rail-nav a,
.rail-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rail-nav a:hover,
.rail-links a:hover {
  color: var(--text);
  transform: translateX(2px);
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(167,139,250,0.10));
  border-color: rgba(234, 241, 255, 0.14);
}

.rail-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.rail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(234, 241, 255, 0.08);
}

.app-main { min-width: 0; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--stroke);
  background: rgba(5, 9, 19, 0.55);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.topbar-kicker { color: rgba(34, 211, 238, 0.92); }
.topbar-sub { color: var(--muted); letter-spacing: 0.08em; text-transform: none; }
.topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 9, 19, 0.55);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 1.12rem;
}

.nav-min { position: relative; }
.brand-sub {
  font-weight: 900;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.92;
  margin-left: auto;
  margin-right: 10px;
  white-space: nowrap;
}

.nav-menu {
  position: relative;
  flex: 0 0 auto;
}

.menu-btn {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  font-weight: 900;
  color: var(--text);
}
.menu-btn::-webkit-details-marker { display: none; }

.nav-menu[open] .menu-btn {
  background: rgba(255,255,255,0.92);
  border-color: rgba(11, 18, 32, 0.14);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(5, 9, 19, 0.86);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.menu-panel a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 900;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.menu-panel a:hover {
  color: var(--text);
  transform: translateX(-2px);
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(167,139,250,0.12));
  border-color: rgba(234, 241, 255, 0.14);
}
.menu-split {
  height: 1px;
  background: rgba(11, 18, 32, 0.10);
  border-radius: 999px;
  margin: 2px 6px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.22s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Hero — 不占满屏，内容偏下偏左，避免“全在顶部” */
.hero {
  position: relative;
  min-height: 66vh;
  display: grid;
  align-items: center;
  padding: clamp(54px, 7vw, 78px) 0 clamp(34px, 5vw, 56px);
  background: transparent;
}

.hero.hero-ko {
  background-image: var(--hero-bg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(860px 520px at 18% 20%, rgba(34, 211, 238, 0.26), transparent 60%),
    radial-gradient(900px 520px at 86% 28%, rgba(167, 139, 250, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(5, 9, 19, 0.92) 0%, rgba(5, 9, 19, 0.62) 46%, rgba(5, 9, 19, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.hero-center {
  max-width: 520px;
  margin: 0;
  text-align: left;
}

.hero-center .lead { margin-left: 0; margin-right: auto; }
.hero-center .pill-row { justify-content: flex-start; }
.hero-center .cta-row { justify-content: flex-start; }

.hero-center .kicker,
.hero-center .hero-title,
.hero-center .lead { color: #fff; }
.hero-center .lead { color: rgba(255, 255, 255, 0.9); }
.hero-center .pill { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hero-center .btn.primary { color: #1a1d24; }
.hero-center .btn.ghost { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hero-center .btn.ghost:hover { background: rgba(255, 255, 255, 0.35); color: #fff; }

/* Youth hero: split copy + collage */
.hero-youth { overflow: hidden; }
.hero-youth::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 22px);
  opacity: 0.32;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
}

.hero-copy {
  max-width: 62ch;
  padding-left: clamp(0px, 3vw, 34px);
}

.hero-copy .kicker,
.hero-copy .hero-title,
.hero-copy .lead { color: #fff; }
.hero-copy .lead { color: rgba(255, 255, 255, 0.88); }
.hero-copy .pill { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.hero-copy .btn.ghost { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.30); color: #fff; }
.hero-copy .btn.ghost:hover { background: rgba(255, 255, 255, 0.26); }

.hero-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.metric {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
.metric-k {
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.metric-v { color: #fff; font-weight: 900; }

.hero-collage {
  position: relative;
  min-height: clamp(320px, 44vh, 520px);
  margin-right: clamp(0px, 2vw, 26px);
}
.cimg {
  position: absolute;
  width: 78%;
  height: 56%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
  filter: saturate(1.05) contrast(1.02);
}
.cimg.c1 { left: 0; top: 10%; transform: rotate(-4deg); }
.cimg.c2 { right: 0; top: 0; transform: rotate(6deg); width: 72%; height: 52%; }
.cimg.c3 { left: 14%; bottom: 0; transform: rotate(-2deg); width: 74%; height: 54%; }

.kicker {
  color: var(--muted-2);
  letter-spacing: 0.22em;
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 40px rgba(6, 182, 212, 0.26);
}

.btn.ghost { background: var(--panel); }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(32, 26, 34, 0.22);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 16px 16px 14px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.card-title { font-weight: 900; color: var(--text); }

.route {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
}

.route li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.route b { color: var(--text); font-weight: 900; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
  margin-top: 6px;
}

.card-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.mini {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}
.mini.strong {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.22);
}

/* Story features */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  padding: 16px 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.20);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.feature-card h3 { font-size: 1.06rem; }
.feature-card p { color: var(--muted); margin: 6px 0 12px; }

/* Sections */
.section { padding: 78px 0; }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section-head { margin-bottom: 24px; display: grid; gap: 8px; }
.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}
.section-sub { color: var(--muted); max-width: 70ch; }

/* Asymmetric section shell */
.section-shell {
  display: grid;
  grid-template-columns: minmax(190px, 240px) 1fr;
  gap: clamp(14px, 2.6vw, 26px);
  align-items: start;
}

.side-head {
  position: sticky;
  top: 92px;
  align-self: start;
  padding-top: 6px;
}

.side-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(167,139,250,0.14));
  border: 1px solid rgba(234,241,255,0.14);
  color: rgba(234, 241, 255, 0.86);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.side-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.18;
  margin-bottom: 8px;
}

.side-sub {
  color: var(--muted);
  font-weight: 800;
  max-width: 26ch;
}

.side-body { min-width: 0; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.bento-card {
  grid-column: span 6;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.bento-card.big { grid-column: span 12; }

.bento-media { height: 200px; background: rgba(255,255,255,0.04); }
.bento-card.big .bento-media { height: 280px; }

.bento-media img { width: 100%; height: 100%; object-fit: cover; }

.bento-body { padding: 14px 14px 16px; }
.bento-body h3 { font-size: 1.06rem; margin-bottom: 6px; }
.bento-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }

.bento-vision .bento-card { transform: translateY(0); }
.bento-vision .bento-card:nth-child(2) { transform: translateY(10px); }
.bento-vision .bento-card:nth-child(3) { transform: translateY(-10px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.82rem;
}

/* Collection */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
}

.product-media { height: 220px; background: rgba(255,255,255,0.04); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px 14px 16px; }
.product-body h3 { font-size: 1.06rem; margin-bottom: 6px; }
.product-body p { color: var(--muted); margin-bottom: 10px; }

/* Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.note-card {
  padding: 16px 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.note-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.note-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.note-card p { color: var(--muted); margin-bottom: 12px; }
.note-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.note-card.top .note-k { background: rgba(192, 138, 42, 0.10); border-color: rgba(192, 138, 42, 0.22); }
.note-card.mid .note-k { background: rgba(196, 71, 124, 0.10); border-color: rgba(196, 71, 124, 0.22); }
.note-card.base .note-k { background: rgba(91, 59, 107, 0.10); border-color: rgba(91, 59, 107, 0.18); }

/* Ritual steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.step {
  padding: 16px 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #1a1220;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.step-body h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step-body p { color: var(--muted); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gitem {
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.6);
}

.gitem img { width: 100%; height: 100%; object-fit: cover; }

.gitem.tall { grid-row: span 2; min-height: 520px; }
.gitem.wide { grid-column: span 8; min-height: 260px; }

/* Timeline (legacy; unused in scent theme) */
.timeline {
  position: relative;
  padding-left: 22px;
  display: grid;
  gap: 14px;
}
.tline {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(6,182,212,0.72), rgba(168,85,247,0.62));
  border-radius: 999px;
}
.titem {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: start;
}
.tbadge {
  z-index: 1;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.tcard {
  padding: 14px 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.tcard h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tcard p { color: var(--muted); }
.tmeta { margin-top: 10px; color: var(--muted-2); font-weight: 800; font-size: 0.9rem; }

/* Food horizontal scroll */
.scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scroll-snap-type: x mandatory;
}
.scroll::-webkit-scrollbar { height: 10px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; }
.scroll::-webkit-scrollbar-track { background: rgba(15,23,42,0.06); border-radius: 999px; }

.fcard {
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.fcard img { width: 100%; height: 190px; object-fit: cover; }
.fbody { padding: 14px 14px 16px; }
.fbody h3 { font-size: 1.06rem; margin-bottom: 6px; }
.fbody p { color: var(--muted); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.10);
  border: 1px solid rgba(167, 139, 250, 0.18);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.82rem;
}

/* Gallery masonry */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mcol { display: grid; gap: 12px; }
.mcol img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

/* Tips */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.tip-card {
  padding: 14px 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.tip-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.tip-card p { color: var(--muted); }

.accordion {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--panel);
}
.accordion details + details { border-top: 1px solid var(--stroke); }
.accordion summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--text);
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion details p { padding: 0 16px 14px; color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.72);
}
.footer-inner {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.footer-brand { font-weight: 900; font-size: 1.15rem; }
.footer-tagline { color: var(--muted); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom { padding: 0 0 20px; color: var(--muted-2); }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 6, 23, 0.38);
  overflow: auto;
  padding: 24px;
}
.modal-content {
  max-width: 720px;
  margin: 4% auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  position: relative;
  color: var(--text);
}
.modal-content h2 { margin-bottom: 10px; font-size: 1.6rem; }
.modal-content h3 { margin-top: 16px; margin-bottom: 6px; font-size: 1.05rem; }
.modal-content p { color: var(--muted); }
.close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(7, 22, 38, 0.62);
  font-size: 34px;
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 10px;
  line-height: 1;
}
.close:hover { color: rgba(7, 22, 38, 0.92); }

/* =========================
   Cosmos × Intelligence
   ========================= */

.cosmo-shell { min-height: 100vh; }

.cosmo-top {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
}

.cosmo-top-inner {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cosmo-brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 1.14rem;
  white-space: nowrap;
}

.cosmo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: flex-end;
}

.cosmo-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cosmo-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(56, 189, 248, 0.16));
  border-color: rgba(7, 22, 38, 0.14);
}

.cosmo-links a.cosmo-mini {
  letter-spacing: 0.02em;
  font-weight: 800;
  opacity: 0.88;
}

.cosmo-top .nav-menu { display: none; }

/* =========================
   Say-Go Travel (Korean)
   ========================= */

.travel-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 96px) 0 clamp(38px, 5.8vw, 66px);
  min-height: clamp(620px, 82vh, 860px);
}

.travel-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(980px 620px at 16% 14%, rgba(251, 113, 133, 0.18), transparent 62%),
    radial-gradient(920px 600px at 86% 26%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(760px 520px at 46% 72%, rgba(251, 113, 133, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 52%, rgba(255, 255, 255, 0.10) 100%);
  pointer-events: none;
}

.travel-hero-inner { position: relative; z-index: 1; }

.travel-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.travel-hero-copy {
  grid-column: 1 / span 7;
  position: relative;
  padding: 22px 22px 18px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.14);
  backdrop-filter: blur(14px);
}

.travel-hero-copy::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.55), rgba(56, 189, 248, 0.50), rgba(234, 241, 255, 0.10));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.travel-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.strip-item {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(10px);
}

.strip-k {
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.strip-v { color: var(--text); font-weight: 950; }

.travel-postcards {
  grid-column: 7 / -1;
  position: relative;
  min-height: clamp(360px, 52vh, 640px);
  transform: translateY(18px) rotateY(-12deg);
  transform-style: preserve-3d;
  perspective: 1200px;
}

.pc {
  position: absolute;
  width: 86%;
  height: 54%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(7, 22, 38, 0.14);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.18);
  filter: saturate(1.06) contrast(1.03);
  transform-style: preserve-3d;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  will-change: transform;
}

.pc.p1 { left: -4%; top: 18%; transform: translateZ(25px) rotate(-7deg); }
.pc.p2 { right: -8%; top: 2%; transform: translateZ(70px) rotate(10deg); width: 74%; height: 48%; }
.pc.p3 { left: 10%; bottom: -6%; transform: translateZ(55px) rotate(-2deg); width: 78%; height: 54%; }
.pc.p4 { right: -2%; bottom: 10%; transform: translateZ(40px) rotate(5deg); width: 62%; height: 40%; opacity: 0.95; }

.pc:hover { transform: translateY(-10px) translateZ(90px) rotate(0deg); box-shadow: 0 38px 120px rgba(0,0,0,0.60); }

.travel-section { position: relative; }

.travel-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.travel-k {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.08em;
  color: rgba(7, 22, 38, 0.82);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.20), rgba(56, 189, 248, 0.14));
  border: 1px solid var(--stroke);
}

.travel-title { font-size: clamp(1.7rem, 2.8vw, 2.25rem); line-height: 1.16; }
.travel-sub { color: var(--muted); max-width: 72ch; font-weight: 800; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  grid-auto-flow: dense;
}

.hl-card {
  grid-column: span 4;
  padding: 14px 14px 16px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hl-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(7, 22, 38, 0.18);
  box-shadow: 0 34px 100px rgba(2, 6, 23, 0.16);
}

.hl-card.big {
  grid-column: span 8;
  padding: 0;
  overflow: hidden;
}

.hl-media { height: 280px; }
.hl-media img { width: 100%; height: 100%; object-fit: cover; }
.hl-body { padding: 14px 14px 16px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.plan-card {
  grid-column: span 4;
  padding: 14px 14px 16px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.plan-card.tilt { transform: translateY(-8px); }

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.14), rgba(56, 189, 248, 0.12));
  font-weight: 950;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(7, 22, 38, 0.78);
  margin-bottom: 10px;
}

.mini-list { list-style: none; display: grid; gap: 10px; padding: 0; margin: 10px 0 0; }
.mini-list li { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-weight: 800; }
.mini-list b { color: var(--text); font-weight: 950; }

.zigzag {
  display: grid;
  gap: 14px;
}

.route-card {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 260px;
}

.route-card.rev { grid-template-columns: 7fr 5fr; }
.route-card.rev .route-media { order: 2; }
.route-card.rev .route-body { order: 1; }

.route-media img { width: 100%; height: 100%; object-fit: cover; }

.route-body { padding: 16px 16px 18px; display: grid; gap: 10px; align-content: center; }
.route-top { display: flex; align-items: center; gap: 10px; }
.route-k {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #0b1220;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  grid-auto-flow: dense;
}

.ms {
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.ms img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms.wide { grid-column: span 8; }
.ms.tall { grid-row: span 2; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.contact-card {
  grid-column: span 4;
  padding: 14px 14px 16px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-card.lift { transform: translateY(-10px); }

@media (max-width: 980px) {
  .travel-hero { min-height: auto; }
  .travel-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .travel-hero-copy { grid-column: auto; padding: 18px 16px 14px; }
  .travel-postcards { grid-column: auto; transform: none; min-height: 360px; }
  .travel-head { grid-template-columns: 1fr; }
  .highlight-grid .hl-card { grid-column: span 12; }
  .plan-card { grid-column: span 12; }
  .route-card, .route-card.rev { grid-template-columns: 1fr; }
  .route-card.rev .route-media, .route-card.rev .route-body { order: initial; }
  .ms, .ms.wide { grid-column: span 12; }
  .contact-card { grid-column: span 12; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pc, .hl-card { transition: none; }
  .pc:hover, .hl-card:hover { transform: none; }
}

.cosmo-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 7.2vw, 86px) 0 clamp(34px, 5vw, 56px);
  min-height: clamp(560px, 78vh, 780px);
}

.prism-hero::before {
  content: "";
  position: absolute;
  inset: -120px -10vw;
  background:
    radial-gradient(980px 620px at 16% 14%, rgba(251, 113, 133, 0.14), transparent 62%),
    radial-gradient(860px 560px at 84% 24%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.70), transparent 64%);
  transform: skewY(-2.4deg);
  opacity: 0.85;
  pointer-events: none;
}

.prism-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: min(1240px, 94vw);
  height: 1px;
  transform: translateX(-50%) rotate(-1.2deg);
  background: linear-gradient(90deg, transparent, rgba(7, 22, 38, 0.12), transparent);
  pointer-events: none;
}

.cosmo-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 14% 18%, rgba(34, 197, 94, 0.16), transparent 62%),
    radial-gradient(980px 620px at 86% 26%, rgba(167, 139, 250, 0.13), transparent 62%),
    linear-gradient(135deg, rgba(4, 7, 18, 0.92) 0%, rgba(4, 7, 18, 0.64) 46%, rgba(4, 7, 18, 0.16) 100%);
  pointer-events: none;
}

.cosmo-hero-inner { position: relative; z-index: 1; }

.cosmo-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.cosmo-hero-copy {
  grid-column: 1 / span 7;
  position: relative;
  padding: 22px 22px 18px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(234, 241, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.cosmo-hero-copy::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.55), rgba(167, 139, 250, 0.45), rgba(234, 241, 255, 0.10));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.cosmo-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cosmo-hero-orbit {
  grid-column: 7 / -1;
  position: relative;
  min-height: clamp(320px, 44vh, 520px);
  margin-right: 0;
  transform: translateY(18px) rotateY(-10deg);
  transform-style: preserve-3d;
  perspective: 1200px;
}

.orbit-img {
  position: absolute;
  width: 86%;
  height: 58%;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
  filter: saturate(1.05) contrast(1.03);
  transform-style: preserve-3d;
  will-change: transform;
}

.orbit-img.o1 { left: -2%; top: 18%; transform: translateZ(30px) rotate(-6deg); }
.orbit-img.o2 { right: -6%; top: 2%; transform: translateZ(70px) rotate(9deg); width: 74%; height: 52%; }
.orbit-img.o3 { left: 10%; bottom: -4%; transform: translateZ(50px) rotate(-2deg); width: 78%; height: 56%; }

.cosmo-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.cosmo-head {
  position: sticky;
  top: 86px;
  align-self: start;
  padding-top: 4px;
}

.cosmo-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(251,113,133,0.12));
  color: rgba(234, 241, 255, 0.92);
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.atlas-card {
  grid-column: span 6;
  padding: 14px 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.atlas-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.atlas-card p { color: var(--muted); }

.atlas-card.a-big {
  grid-column: span 12;
  padding: 0;
  overflow: hidden;
}

.atlas-media img { width: 100%; height: 260px; object-fit: cover; }
.atlas-body { padding: 14px 14px 16px; }

.stack {
  display: grid;
  gap: 12px;
}

.stack-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}

.stack-badge {
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
  color: #08101f;
  background: linear-gradient(135deg, rgba(56,189,248,0.95), rgba(251,113,133,0.85));
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
}

.stack-card {
  padding: 14px 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stack-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.stack-card p { color: var(--muted); }

.cosmo-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.cg {
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.cg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cg.wide { grid-column: span 8; }
.cg.tall { grid-row: span 2; }

/* =========================
   Cosmos responsive tweaks
   ========================= */

/* Responsive */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .rail {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
    grid-template-rows: auto auto auto auto;
  }

  .rail-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .rail-nav a { text-align: center; }

  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card { grid-column: span 6; }
  .masonry { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }

  .section-shell { grid-template-columns: 1fr; }
  .side-head { position: relative; top: auto; padding-top: 0; margin-bottom: 14px; }
  .side-sub { max-width: 70ch; }
  .hero-split { grid-template-columns: 1fr; align-items: start; }
  .hero-collage { min-height: 340px; margin-right: 0; }

  .cosmo-top-inner { padding: 12px 20px; }
  .cosmo-links { display: none; }
  .cosmo-top .nav-menu { display: block; }

  .cosmo-section { grid-template-columns: 1fr; }
  .cosmo-head { position: relative; top: auto; padding-top: 0; margin-bottom: 14px; }
  .cosmo-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .cosmo-hero-copy { grid-column: auto; padding: 18px 16px 14px; }
  .cosmo-hero-orbit { grid-column: auto; min-height: 340px; margin-right: 0; transform: none; }
  .orbit-img { width: 86%; height: 58%; }

  .atlas-card { grid-column: span 12; }
  .cg { grid-column: span 12; }
  .cg.wide { grid-column: span 12; }
}

@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { justify-content: flex-start; gap: 14px; }
  .hero { min-height: 68vh; padding: 46px 0; }
  .scroll { grid-auto-columns: minmax(260px, 86vw); }
  .titem { grid-template-columns: 74px 1fr; }

  .brand-sub { margin-left: 0; margin-right: 0; }
  .menu-panel { right: auto; left: 0; }
}
