@font-face {
  font-family: "Pretendard";
  src: url("/assets/font/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #060b18;
  --navy-900: #0a1226;
  --navy-800: #101b36;
  --navy-700: #1a2848;
  --bg: #f3f5fa;
  --card: #ffffff;
  --text: #0c1326;
  --muted: #5d6880;
  --line: #e3e8f1;
  --accent: #2b62f6;
  --accent-2: #19c2d8;
  --accent-soft: #e6eeff;
  --danger: #dc2626;
  --ok: #0aa36c;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(12, 19, 38, .05), 0 10px 30px -12px rgba(12, 19, 38, .16);
  --shadow-lg: 0 30px 80px -30px rgba(6, 11, 24, .55);
  --grad: linear-gradient(135deg, #2b62f6 0%, #19c2d8 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080e1d;
    --card: #101930;
    --text: #e8edf7;
    --muted: #93a0ba;
    --line: #1f2b48;
    --accent: #6d97ff;
    --accent-soft: #17264a;
    --danger: #f87171;
    --ok: #34d399;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 30px -16px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent); }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.18; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.only-mobile { display: none; }

/* ============================================================ brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mark {
  position: relative; display: inline-block; width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(43, 98, 246, .7);
}
.mark::before { /* J 모양 */
  content: ""; position: absolute; left: 9px; top: 7px; width: 11px; height: 16px;
  border: 3px solid #fff; border-top: 0; border-left-color: transparent; border-radius: 0 0 9px 9px;
}
.mark::after { content: ""; position: absolute; left: 12px; top: 7px; width: 11px; height: 3px; background: #fff; border-radius: 2px; }
.mark.big { width: 52px; height: 52px; border-radius: 15px; }
.mark.big::before { left: 16px; top: 13px; width: 18px; height: 26px; border-width: 5px; border-radius: 0 0 15px 15px; }
.mark.big::after { left: 21px; top: 13px; width: 18px; height: 5px; }
.wordmark { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.wordmark b { font-weight: 300; margin-left: .35em; }

/* ========================================================== buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 9px 18px; border-radius: 12px; font-weight: 650; cursor: pointer; min-height: 42px; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px rgba(43, 98, 246, .8); }
.btn.primary:hover { box-shadow: 0 14px 30px -10px rgba(43, 98, 246, .95); }
.btn.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn.danger { color: var(--danger); }
.btn.big { min-height: 52px; padding: 12px 28px; font-size: 17px; border-radius: 14px; }
.btn.small { padding: 5px 12px; min-height: 34px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ========================================================== landing */
.landing { background: var(--bg); }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.lnav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px; padding: 0 max(20px, calc((100% - 1180px) / 2));
  display: flex; align-items: center; gap: 28px; color: #fff;
  transition: background .3s, box-shadow .3s, color .3s;
}
.lnav .brand { margin-right: auto; }
.lnav-links { display: none; gap: 30px; }
.lnav-links a { color: inherit; text-decoration: none; font-weight: 550; opacity: .85; }
.lnav-links a:hover { opacity: 1; }
.lnav.solid { background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--text); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.lnav.solid .btn.light { background: var(--grad); border-color: transparent; }

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 24, .72) 0%, rgba(6, 11, 24, .28) 34%, rgba(6, 11, 24, .5) 68%, rgba(6, 11, 24, .96) 100%),
    linear-gradient(90deg, rgba(6, 11, 24, .82) 0%, rgba(6, 11, 24, .12) 68%);
}
.hero-inner { position: relative; width: min(1180px, 100% - 40px); margin: 0 auto; padding: 120px 0 190px; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .28em; color: #8fd8ff; }
.eyebrow.dark { color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(44px, 8.4vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.lede { margin: 26px 0 0; font-size: clamp(17px, 2vw, 22px); color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 max(20px, calc((100% - 1180px) / 2)) 34px; list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px;
}
.hero-stats li { border-top: 1px solid rgba(255, 255, 255, .26); padding-top: 14px; }
.hero-stats b { display: block; font-size: clamp(24px, 3.2vw, 40px); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.scroll-cue { display: none; }

.section { padding: clamp(72px, 10vw, 132px) 0; }
.section.dark { background: radial-gradient(1200px 600px at 85% 0%, #17306b 0%, transparent 60%), var(--navy-900); color: #e9eefb; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2, .split-text h2 { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; text-wrap: balance; }
.sec-head p, .split-text > p { margin: 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.section.dark .split-text > p { color: #a9b6d3; }

.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--navy-800); aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, rgba(6, 11, 24, .82)); pointer-events: none; }
.tile figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.tile figcaption b { font-size: 19px; font-weight: 700; }
.tile figcaption span { font-size: 13px; opacity: .78; }
@media (hover: hover) { .tile:hover img { transform: scale(1.06); } }

.split { display: grid; gap: 44px; align-items: center; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.steps i { font-style: normal; font-weight: 700; font-size: 13px; letter-spacing: .1em; color: #8fd8ff; width: 28px; }
.steps b { display: block; font-size: 18px; }
.steps span { font-size: 14px; color: #a9b6d3; }
.split-media { position: relative; padding-bottom: 12%; }
.shot { border-radius: 22px; box-shadow: var(--shadow-lg); }
.shot.main { width: 92%; }
.shot.sub { position: absolute; right: 0; bottom: 0; width: 52%; border: 5px solid var(--navy-900); }

.features { display: grid; gap: 16px; }
.feature { background: var(--card); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature h3 { margin: 18px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.ficon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta-band {
  margin-top: 28px; border-radius: 26px; padding: clamp(28px, 4vw, 48px); color: #fff;
  background: linear-gradient(120deg, rgba(10, 18, 38, .94), rgba(16, 39, 102, .86)), url("/assets/img/entrance.jpg") center / cover;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band h3 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 32px); }
.cta-band p { margin: 0; color: #b9c6e4; }
.lfoot { background: var(--navy-950); color: #c9d3ea; padding: 34px 0; }
.lfoot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lfoot .muted { color: #7f8cab; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 599px) { .only-mobile { display: inline; } }
@media (min-width: 600px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .lnav-links { display: flex; }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
  .tile { aspect-ratio: auto; }
  .tile.wide { grid-column: span 2; aspect-ratio: auto; }
  .tile.tall { grid-row: span 2; }
  .split { grid-template-columns: 1fr 1.15fr; gap: 72px; }
  .hero-inner { padding-bottom: 210px; }
  .scroll-cue { display: block; position: absolute; right: max(20px, calc((100% - 1180px) / 2)); bottom: 150px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; }
  .scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================== auth */
.auth { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.auth-back { position: absolute; inset: 0; background: rgba(6, 11, 24, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .25s; }
.auth-card {
  position: relative; width: 100%; max-width: 400px; background: var(--card); border-radius: 26px; box-shadow: var(--shadow-lg);
  padding: 36px 28px 28px; text-align: center; animation: pop .35s var(--ease);
}
.auth-card h1 { margin: 16px 0 4px; font-size: 22px; letter-spacing: .12em; font-weight: 800; }
.auth-card label { text-align: left; }
.auth-card .btn { width: 100%; margin-top: 10px; }
.auth-x { position: absolute; top: 12px; right: 12px; }
.auth.locked .auth-x { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* =============================================================== app */
.app { min-height: 100dvh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.side {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: var(--navy-900); color: #fff;
}
.side .wordmark { display: none; }
.spaces { display: flex; gap: 2px; margin: 0 auto; padding: 4px; background: rgba(255, 255, 255, .1); border-radius: 999px; }
.spaces button { border: 0; background: none; padding: 7px 18px; border-radius: 999px; cursor: pointer; color: rgba(255, 255, 255, .7); font-weight: 650; min-height: 36px; }
.spaces button[aria-selected="true"] { background: #fff; color: var(--navy-900); }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
}
.tabs button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 7px 2px;
  border-radius: 12px; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 650; min-height: 54px;
}
.tabs button svg { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--accent); }
.userbox { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; cursor: pointer; padding: 4px; border-radius: 14px; text-align: left; }
.userbox .who, .userbox svg { display: none; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 750; font-size: 15px; flex: none; }

.content { max-width: 1120px; margin: 0 auto; padding: 16px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.page-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.grid { display: grid; gap: 16px; }

.welcome {
  position: relative; overflow: hidden; border-radius: 24px; color: #fff; padding: 26px 22px 22px; margin-bottom: 16px;
  background: linear-gradient(110deg, rgba(8, 14, 30, .95) 0%, rgba(13, 32, 84, .82) 55%, rgba(13, 32, 84, .35) 100%), url("/assets/img/aerial.jpg") center / cover;
  box-shadow: var(--shadow-lg);
}
.welcome .eyebrow { margin-bottom: 10px; font-size: 12px; }
.welcome h2 { margin: 0; font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.welcome p { margin: 6px 0 0; color: rgba(255, 255, 255, .78); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.kpi { border: 0; text-align: left; color: #fff; cursor: pointer; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.kpi:hover { background: rgba(255, 255, 255, .18); }
.kpi b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.kpi span { font-size: 12px; opacity: .8; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line); }
.card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 750; display: flex; align-items: center; justify-content: space-between; }
.empty { color: var(--muted); text-align: center; padding: 26px 8px; font-size: 14px; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; padding-top: 2px; }
.list .main { flex: 1; min-width: 0; }
.list .title { font-weight: 650; overflow-wrap: anywhere; }
.list a.title { text-decoration: none; }
.list a.title:hover { text-decoration: underline; }
.list .body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.list .meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.list .actions { display: flex; gap: 2px; }
.list .actions button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; font-size: 13px; }
.list .actions button:hover { background: var(--bg); color: var(--text); }
.list .actions button.danger:hover { color: var(--danger); }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; background: var(--accent-soft); color: var(--accent); margin-right: 6px; vertical-align: 2px; }
.done .title { text-decoration: line-through; color: var(--muted); }
.check { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; color: #fff; padding: 0; transition: background .2s, border-color .2s; }
.check:hover { border-color: var(--accent); }
.done .check { background: var(--ok); border-color: var(--ok); }
.datebox { flex: none; width: 54px; text-align: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); padding: 6px 0; line-height: 1.15; }
.datebox b { display: block; font-size: 20px; font-weight: 800; }
.datebox span { font-size: 11px; font-weight: 650; }
.past .datebox { background: var(--bg); color: var(--muted); }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.link-tile { position: relative; display: block; padding: 16px; border-radius: 14px; background: var(--bg); text-decoration: none; color: var(--text); min-height: 80px; border: 1px solid transparent; transition: border-color .2s, transform .2s var(--ease); }
.link-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-tile .title { font-weight: 650; overflow-wrap: anywhere; padding-right: 22px; }
.link-tile .host { font-size: 12px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-tile button { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; width: 30px; height: 30px; border-radius: 8px; }
.link-tile button:hover { background: var(--card); color: var(--text); }

.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 22px; text-align: center; color: var(--muted); margin-bottom: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .15s; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 264px 1fr; padding-bottom: 0; }
  .side {
    position: sticky; top: 0; height: 100dvh; flex-direction: column; align-items: stretch; gap: 22px; padding: 26px 18px 18px;
    background: radial-gradient(520px 300px at 0% 0%, #17306b 0%, transparent 70%), var(--navy-900);
  }
  .side .brand { padding: 0 8px; }
  .side .wordmark { display: inline; }
  .spaces { margin: 0; }
  .spaces button { flex: 1; }
  .tabs { position: static; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 0; background: none; border: 0; flex: 1; }
  .tabs button { flex: none; flex-direction: row; gap: 12px; padding: 11px 14px; font-size: 15px; min-height: 46px; color: rgba(255, 255, 255, .66); justify-content: flex-start; }
  .tabs button svg { width: 20px; height: 20px; }
  .tabs button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .tabs button[aria-current="page"] { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: inset 3px 0 0 #6fb4ff; }
  .userbox { padding: 10px; background: rgba(255, 255, 255, .07); }
  .userbox:hover { background: rgba(255, 255, 255, .13); }
  .userbox .who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
  .userbox .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .userbox .who small { color: rgba(255, 255, 255, .6); }
  .userbox svg { display: block; fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-linecap: round; }
  .content { width: 100%; padding: 32px 36px 48px; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .welcome { padding: 40px 38px 30px; }
  .kpis { max-width: 520px; }
}

/* ============================================================= forms */
label { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin-top: 14px; }
input[type="text"], input[type="password"], input[type="date"], input[type="url"], input:not([type]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 120px; resize: vertical; }
.row-check { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); font-weight: 400; }
.row-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 8px 0 0; }

.dialog { border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 24px)); background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(6, 11, 24, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog form { padding: 24px; }
.dialog h3 { margin: 0 0 4px; font-size: 19px; }
.dialog .buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog .buttons .left { margin-right: auto; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--navy-900); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==================================================== 회사 공간 (어두운 전체 화면 구성) */
@font-face {
  font-family: "SUIT";
  src: url("/assets/font/SUIT-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
body.co {
  --bg: #000; --card: #0d0d10; --text: #fff; --muted: #9c9ca8; --line: #25252c;
  --accent: #8ab8ff; --accent-soft: #14213a; --danger: #ff8080; --ok: #3ddc97;
  --shadow: none; --pad: 20px;
  background: #000; color: #fff;
  font-family: "SUIT", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
body.co .app { display: block; }
body.co .content { max-width: none; width: 100%; padding: 0; }
body.co .side {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(64px + env(safe-area-inset-top)); gap: 10px;
  padding: env(safe-area-inset-top) var(--pad) 0; background: transparent; transition: background .3s;
}
body.co .side.solid, body.co:not(.at-home) .side { background: rgba(0, 0, 0, .9); }
body.co .side .wordmark { display: inline; }
body.co .mark { background: #fff; box-shadow: none; }
body.co .mark::before { border-color: #000; border-left-color: transparent; }
body.co .mark::after { background: #000; }
body.co .spaces { margin: 0 0 0 auto; background: rgba(255, 255, 255, .14); }
body.co .spaces button { padding: 5px 14px; min-height: 30px; font-size: 13px; }
body.co .spaces button[aria-selected="true"] { background: #fff; color: #000; }
body.co .avatar { background: #fff; color: #000; }
body.co .tabs { background: rgba(0, 0, 0, .94); border-top: 1px solid #1d1d22; }
body.co .tabs button { color: #8c8c96; }
body.co .tabs button[aria-current="page"] { color: #fff; }
body.guest .avatar, body.guest .userbox svg, body.guest .userbox small { display: none; }
body.guest .userbox { margin-left: auto; }
body.guest .userbox .who { display: block; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: 14px; }

.m1 { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #000; }
.m1-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .12) 26%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, .86) 100%); }
.m1-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(96px, 12vh, 130px); }
.m1-tit { margin: 0; font-weight: 300; font-size: clamp(36px, 5.6vw, 82px); letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.m1-sub { margin: 14px 0 0; font-size: clamp(15px, 1.5vw, 20px); color: rgba(255, 255, 255, .74); font-weight: 400; }

.m2 { padding: clamp(90px, 14vw, 190px) var(--pad); text-align: center; }
.m2-tit { margin: 0; font-size: clamp(32px, 5vw, 68px); font-weight: 700; }
.m2-desc { margin: 22px auto 0; max-width: 34em; font-size: clamp(16px, 1.6vw, 21px); color: var(--muted); line-height: 1.7; text-wrap: balance; }

.m3 { display: grid; gap: 2px; }
.m3-item { position: relative; display: block; min-height: 340px; overflow: hidden; color: #fff; text-decoration: none; background: #0b0b0e; }
.m3-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.9); transition: filter .6s, transform 1.2s var(--ease); }
.m3-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px var(--pad); }
.m3-kicker { font-size: 13px; letter-spacing: .22em; font-weight: 600; color: rgba(255, 255, 255, .7); }
.m3-tit { margin: 10px 0 10px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; }
.m3-desc { margin: 0; color: rgba(255, 255, 255, .78); max-width: 26em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .m3-item:hover img { filter: brightness(.62) saturate(1); transform: scale(1.05); } }
.more { display: inline-block; margin-top: 24px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.more:hover { color: var(--accent); }

.m6 { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; margin-top: 2px; }
.m6 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.m6-body { position: relative; padding: 80px var(--pad); max-width: 760px; }
.m6-kicker { margin: 0; font-size: clamp(16px, 1.6vw, 22px); color: rgba(255, 255, 255, .8); }
.m6-tit { margin: 8px 0 14px; font-size: clamp(48px, 8vw, 110px); font-weight: 300; letter-spacing: -.03em; }
.m6-desc { margin: 0; font-size: clamp(16px, 1.5vw, 20px); color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }

.m7 { padding: clamp(80px, 10vw, 150px) var(--pad); }
.m7-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.m7-head .more { margin: 0; }
.m7-tit { margin: 0; font-size: clamp(34px, 4.4vw, 60px); font-weight: 300; letter-spacing: .04em; }
.m7-list { display: grid; gap: 34px 30px; }
.m7-item { display: block; border-top: 1px solid #3a3a42; padding-top: 24px; color: #fff; text-decoration: none; }
.m7-item h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m7-item:hover h3 { color: var(--accent); }
.m7-body { margin: 12px 0 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m7-date { margin: 18px 0 0; color: #7b7b86; font-size: 14px; }
.m7-empty { color: var(--muted); border-top: 1px solid #3a3a42; padding-top: 24px; margin: 0; }

.cofoot { border-top: 1px solid #1d1d22; padding: 56px var(--pad) calc(40px + env(safe-area-inset-bottom)); }
.cofoot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cofoot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.cofoot nav a { color: #b5b5c0; text-decoration: none; font-weight: 500; }
.cofoot nav a:hover { color: #fff; }
.cofoot-copy { margin: 30px 0 0; color: #6f6f7a; font-size: 13px; }

body.co .pagewrap { max-width: 1180px; margin: 0 auto; padding: calc(96px + env(safe-area-inset-top)) var(--pad) 48px; }
body.co .page-head { margin-bottom: 26px; }
body.co .page-head h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 300; }
body.co .card { border-color: var(--line); border-radius: 6px; padding: 24px; }
body.co .btn { border-radius: 4px; background: transparent; border-color: #55555f; color: #fff; }
body.co .btn:hover { border-color: #fff; }
body.co .btn.primary { background: #fff; border-color: #fff; color: #000; box-shadow: none; }
body.co .btn.primary:hover { background: #dfe9ff; box-shadow: none; }
body.co .btn.danger { color: var(--danger); }
body.co .list .actions button:hover, body.co .icon-btn:hover { background: #1b1b21; }
body.co .link-tile { background: #15151a; border-radius: 6px; }
body.co .datebox { border-radius: 4px; }
body.co .drop { border-radius: 6px; }
body.co input, body.co textarea, body.co select { background: #000; border-radius: 4px; }
body.co .dialog, body.co .auth-card { border-radius: 8px; border: 1px solid var(--line); }
body.co .auth-card .mark.big { background: #fff; }
body.co .toast { background: #fff; color: #000; }

@media (min-width: 600px) {
  .m7-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  body.co { --pad: 58px; }
  body.co .app { padding-bottom: 0; }
  body.co .side { height: 110px; flex-direction: row; align-items: center; gap: 0; padding: 0 var(--pad); background: transparent; transition: background .3s, height .3s; }
  body.co .side.solid, body.co:not(.at-home) .side { background: rgba(0, 0, 0, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 84px; }
  body.co .side .brand { order: 0; padding: 0; }
  body.co .side .wordmark { font-size: 18px; }
  body.co .tabs { order: 1; position: static; flex: none; flex-direction: row; gap: 0; margin-left: 64px; padding: 0; background: none; border: 0; }
  body.co .tabs button { position: relative; flex-direction: row; padding: 12px 26px; min-height: 0; font-size: 19px; font-weight: 600; color: #fff; background: none; box-shadow: none; opacity: .92; }
  body.co .tabs button svg { display: none; }
  body.co .tabs button:hover { background: none; opacity: 1; }
  body.co .tabs button::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 4px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  body.co .tabs button:hover::after, body.co .tabs button[aria-current="page"]::after { transform: scaleX(1); }
  body.co .tabs button[aria-current="page"] { background: none; box-shadow: none; }
  body.co .spaces { order: 2; }
  body.co .userbox { order: 3; margin-left: 16px; padding: 4px; background: none; }
  body.co .userbox:hover { background: rgba(255, 255, 255, .12); }
  body.co .userbox .who, body.co .userbox svg { display: none; }
  body.guest .userbox { margin-left: auto; }
  body.guest .userbox .who { display: block; }
  .m1-text { bottom: 74px; }
  .m3 { grid-template-columns: repeat(3, 1fr); }
  .m3-item { min-height: 620px; }
  .m3-body { padding: 48px 44px; }
  .m7-list { grid-template-columns: repeat(4, 1fr); }
  body.co .pagewrap { padding-top: 150px; padding-bottom: 100px; }
}

/* 개인 공간: 형식은 회사와 같고 강조색만 따뜻한 색으로 구분 */
body.co.me { --accent: #ffc47a; --accent-soft: #33240f; }
body.co.me .spaces button[aria-selected="true"] { background: #ffc47a; }
body.co.me .tabs button::after { background: #ffc47a; }
body.co.me .m3-kicker, body.co.me .m6-kicker { color: #ffc47a; }

/* 커리어: 분야 드롭다운과 분야 선택 칩 */
.navitem { display: contents; }
.submenu { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid #44444d; background: none; color: #c9c9d2; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 36px; }
.chip:hover { border-color: #fff; color: #fff; }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }
@media (min-width: 900px) {
  .navitem { display: block; position: relative; }
  .submenu {
    display: block; position: absolute; left: 50%; top: 100%; min-width: 170px; padding: 12px 0; margin-top: 6px;
    background: rgba(0, 0, 0, .9); border: 1px solid #2a2a31; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* 메뉴와 목록 사이 틈에서 닫히지 않게 */
  .navitem:hover .submenu, .navitem:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .submenu a { display: block; padding: 10px 24px; color: #c9c9d2; text-decoration: none; font-size: 16px; font-weight: 500; white-space: nowrap; text-align: center; }
  .submenu a:hover, .submenu a:focus-visible, .submenu a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
}

/* 글에 붙은 첨부 파일 */
.attach { margin-top: 10px; display: grid; gap: 10px; }
.attach-pics { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-pics a { display: block; width: 112px; height: 84px; border-radius: 6px; overflow: hidden; background: #15151a; border: 1px solid var(--line); }
.attach-pics img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.attach-pics a:hover img { transform: scale(1.08); }
.attach-video { width: 100%; max-width: 520px; max-height: 320px; border-radius: 6px; background: #000; border: 1px solid var(--line); }
.attach-files { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.attach-files a::before { content: "↓ "; }
.attach-edit { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.attach-edit > li { padding: 8px 0; }
input[type="file"] { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed #55555f; border-radius: 4px; background: transparent; color: var(--muted); font-size: 14px; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid #77778a; border-radius: 4px; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }

/* 커리어: 분야 카드와 분야별 페이지 */
body.co .pagewrap.wide { max-width: 1400px; }
.cat-grid { display: grid; gap: 14px; }
.cat-card { position: relative; display: block; min-height: 240px; overflow: hidden; color: #fff; text-decoration: none; background: #0b0b0e; border-radius: 6px; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.4); transition: filter .5s, transform 1.1s var(--ease); }
.cat-card-body { position: absolute; inset: auto 0 0 0; padding: 26px; }
.cat-card h3 { margin: 8px 0 6px; font-size: 30px; font-weight: 700; }
.cat-card p { margin: 0; color: rgba(255, 255, 255, .78); }
.cat-count { position: absolute; right: 26px; bottom: 26px; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
@media (hover: hover) { .cat-card:hover img { filter: brightness(.66); transform: scale(1.05); } }
.cat-rest { margin-top: 18px; }
.cat-hero { position: relative; min-height: min(62vh, 560px); display: flex; align-items: flex-end; overflow: hidden; }
.cat-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, transparent 35%, rgba(0, 0, 0, .9) 100%); }
.cat-hero-body { position: relative; z-index: 1; width: 100%; padding: 150px var(--pad) 48px; }
.cat-hero h2 { margin: 6px 0 10px; font-size: clamp(48px, 8vw, 112px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.cat-desc { margin: 0; font-size: clamp(16px, 1.6vw, 21px); color: rgba(255, 255, 255, .82); }
.cat-stat { margin: 16px 0 0; font-size: 14px; letter-spacing: .06em; color: rgba(255, 255, 255, .62); }
.cat-back { display: inline-block; margin-bottom: 26px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 14px; font-weight: 600; }
.cat-back:hover { color: #fff; }
body.co .pagewrap.under-hero { padding-top: 44px; }
.cat-list-title { margin: 0; font-size: 22px; font-weight: 600; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-card { min-height: 300px; } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } .cat-card { min-height: 360px; } }

/* 건축 양식 */
.form-head { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--text); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 12px 0 4px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; max-width: 720px; }
.spec > div { background: var(--card); padding: 10px 14px; }
.spec dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.spec dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.spec-etc { color: var(--muted); font-size: 13px; margin-right: 6px; }
@media (min-width: 700px) { .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 사진·영상 보기 창 */
body.viewing { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 24px; background: rgba(0, 0, 0, .94); animation: fade .2s; }
.viewer-stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; background: #000; }
.viewer-cap { margin: 14px 0 0; color: #c9c9d2; font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.viewer-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .6); color: #fff; font-size: 20px; cursor: pointer; }
.viewer-x:hover { background: #fff; color: #000; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.viewer-nav:hover { background: rgba(255, 255, 255, .28); }
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }

.thumb { position: relative; display: block; width: 112px; height: 84px; padding: 0; border-radius: 6px; overflow: hidden; background: #15151a; border: 1px solid var(--line); cursor: zoom-in; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.thumb:hover img, .thumb:hover video { transform: scale(1.08); }
.is-video::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .7); color: #fff; font-size: 15px; padding-left: .2em; pointer-events: none; }

/* 건축 글 카드 */
.arch-list { display: grid; gap: 28px; }
.arch { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.arch-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; aspect-ratio: 16 / 9; max-height: 620px; overflow: hidden; }
.arch-cover img, .arch-cover video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.arch-cover:hover img { transform: scale(1.03); }
.arch-cover.is-video::after { font-size: 24px; }
.arch-thumbs { display: flex; gap: 8px; padding: 10px 14px 0; overflow-x: auto; }
.arch-thumbs .thumb { flex: none; width: 96px; height: 64px; }
.arch-body { padding: 24px 20px 22px; }
.arch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.arch-date { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.arch-title { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.arch .spec { margin: 20px 0 0; max-width: none; }
.arch-text { margin: 20px 0 0; font-size: 16px; line-height: 1.8; color: #d6d6de; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 60em; }
.arch .attach-files { margin-top: 18px; }
.arch-meta { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .arch-body { padding: 32px 36px 28px; } .arch-thumbs { padding: 12px 36px 0; } }

/* 개인 공간은 메뉴가 일곱 개라 좁은 화면에서 글자를 조금 줄인다 */
@media (max-width: 899px) { body.me .tabs button { font-size: 10px; letter-spacing: -.03em; } }
@media (min-width: 900px) and (max-width: 1180px) { body.co .tabs { margin-left: 28px; } body.co .tabs button { padding: 12px 14px; font-size: 17px; } body.co .tabs button::after { left: 14px; right: 14px; } }

/* 건축 카드의 큰 사진: 카드 폭의 80%로 줄여 가운데에 둔다 */
.arch-media { padding-top: 20px; }
.arch-cover { width: 80%; margin: 0 auto; border-radius: 6px; max-height: 496px; }
.arch-thumbs { width: 80%; margin: 0 auto; padding: 10px 0 0; }
@media (min-width: 900px) { .arch-media { padding-top: 28px; } .arch-thumbs { padding: 12px 0 0; } }

/* ==================================== 개인 공간: 분류마다 색과 그림이 다른 페이지 */
.sub-hero, .sub-card { --c1: #38bdf8; --c2: #6366f1; }
.sub-hero {
  position: relative; overflow: hidden; min-height: min(70vh, 640px); display: flex; align-items: flex-end;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--c1) 62%, transparent) 0%, transparent 58%),
    radial-gradient(80% 110% at 100% 100%, color-mix(in srgb, var(--c2) 70%, transparent) 0%, transparent 62%),
    #07070b;
}
.sub-hero::before { /* 가는 격자 */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 70% 40%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 20%, transparent 78%);
}
.sub-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 30%, rgba(0, 0, 0, .78) 100%); }
.sub-hero .art { position: absolute; right: -6%; top: 50%; width: min(78vh, 62vw); height: min(78vh, 62vw); transform: translateY(-46%) rotate(-8deg); stroke-width: .5; color: #fff; opacity: .34; animation: floaty 14s ease-in-out infinite; }
.sub-hero-body { position: relative; z-index: 1; width: 100%; padding: 150px var(--pad) 52px; }
.sub-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .3em; color: rgba(255, 255, 255, .82); }
.sub-hero h2 { margin: 10px 0 12px; font-size: clamp(54px, 10vw, 150px); font-weight: 200; letter-spacing: -.045em; line-height: 1; }
.sub-desc { margin: 0; font-size: clamp(16px, 1.7vw, 22px); color: rgba(255, 255, 255, .84); }
.sub-figure { margin-top: 34px; display: inline-flex; flex-direction: column; gap: 4px; padding: 16px 22px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px; background: rgba(0, 0, 0, .34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sub-figure span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.sub-figure b { font-size: clamp(28px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
@keyframes floaty { 0%, 100% { transform: translateY(-46%) rotate(-8deg); } 50% { transform: translateY(-50%) rotate(-3deg); } }

.sub-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sub-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 280px; padding: 28px; border-radius: 22px; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c1) 58%, transparent) 0%, transparent 60%),
    radial-gradient(110% 120% at 100% 100%, color-mix(in srgb, var(--c2) 66%, transparent) 0%, transparent 64%),
    #0b0b11;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .3s;
}
.sub-card .art { position: absolute; right: -34px; bottom: -40px; width: 230px; height: 230px; stroke-width: .7; opacity: .3; transform: rotate(-10deg); transition: transform .8s var(--ease), opacity .4s; }
.sub-card h3 { margin: 10px 0 8px; font-size: 38px; font-weight: 300; letter-spacing: -.03em; }
.sub-card p { margin: 0; max-width: 16em; color: rgba(255, 255, 255, .82); }
.sub-card-foot { position: relative; margin-top: auto; padding-top: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.sub-card-foot b { font-size: 20px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .sub-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .5); box-shadow: 0 30px 60px -30px var(--c2); }
  .sub-card:hover .art { transform: rotate(0deg) scale(1.12); opacity: .5; }
}

.rec-list { display: grid; gap: 12px; }
.rec { display: flex; gap: 20px; justify-content: space-between; padding: 22px 24px; border-radius: 16px; background: #0d0d12; border: 1px solid var(--line); border-left: 3px solid var(--c1, #fff); }
.rec-main { min-width: 0; flex: 1; }
.rec-date { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.rec-title { margin: 0; font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.rec-text { margin: 10px 0 0; color: #cfcfd8; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 60em; }
.rec-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.rec-amount { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-empty { border: 1px dashed #3a3a44; border-radius: 16px; padding: 48px 16px; }
@media (max-width: 599px) { .rec { flex-direction: column; gap: 14px; } .rec-side { flex-direction: row; align-items: center; justify-content: space-between; } .sub-hero .art { opacity: .22; } }
@media (min-width: 900px) { .submenu { max-height: 70vh; overflow-y: auto; } }

/* ============================================================ 다듬기: 절제된 편집 디자인
   색과 장식을 줄이고, 가는 선 · 넉넉한 여백 · 얇은 글씨로 정리한다. */
body.co { --line: #23232a; --card: #0a0a0d; }
body.co .card { border-radius: 2px; }
body.co .page-head h2 { letter-spacing: -.03em; }
.cat-card, .cat-hero > img { border-radius: 0; }
.cat-card { border-radius: 2px; }
.cat-card h3 { font-weight: 300; font-size: 34px; }

/* --- 건축: 사진은 왼쪽, 내용은 오른쪽. 상자 대신 가는 선으로 구분 */
.arch-list { gap: 0; counter-reset: arch; border-bottom: 1px solid var(--line); }
.arch { counter-increment: arch; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; overflow: visible; }
.arch-media { padding: 0; }
.arch-cover { width: 100%; margin: 0; aspect-ratio: 4 / 3; max-height: none; border-radius: 2px; }
.arch-thumbs { width: 100%; margin: 0; padding: 10px 0 0; gap: 10px; }
.arch-thumbs .thumb { width: 84px; height: 63px; border-radius: 2px; border-color: transparent; opacity: .72; transition: opacity .25s; }
.arch-thumbs .thumb:hover { opacity: 1; }
.arch-body { padding: 0; }
.arch-date { margin: 0 0 18px; font-size: 12px; letter-spacing: .22em; color: #8a8a96; }
.arch-date::before { content: counter(arch, decimal-leading-zero) "  —  "; color: #fff; }
.arch-title { font-weight: 300; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.18; letter-spacing: -.03em; }
.arch-head .btn { border: 0; padding: 4px 0; min-height: 0; color: #8a8a96; font-weight: 500; border-radius: 0; border-bottom: 1px solid transparent; }
.arch-head .btn:hover { color: #fff; border-bottom-color: #fff; }
.arch .spec { display: block; margin: 32px 0 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.arch .spec > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 15px 0; background: none; border-bottom: 1px solid var(--line); }
.arch .spec dt { font-size: 13px; letter-spacing: .08em; color: #8a8a96; }
.arch .spec dd { margin: 0; font-size: 18px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.arch-text { margin: 28px 0 0; font-size: 15.5px; line-height: 1.95; color: #b4b4bf; }
.arch .attach-files { margin-top: 24px; }
.arch .attach-files a { color: #fff; text-decoration: none; border-bottom: 1px solid #55555f; padding-bottom: 2px; }
.arch .attach-files a:hover { border-bottom-color: #fff; }
.arch-meta { margin: 28px 0 0; padding: 0; border: 0; font-size: 12px; letter-spacing: .06em; color: #6c6c78; }
@media (min-width: 1000px) {
  .arch { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; padding: 72px 0; align-items: start; }
  .arch:not(:has(.arch-media)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}

/* --- 개인 공간: 그림과 진한 색을 걷어내고, 은은한 빛과 번호 · 가는 선만 남긴다 */
.art { display: none; }
.sub-hero { min-height: min(60vh, 560px); background: radial-gradient(60% 90% at 88% 0%, color-mix(in srgb, var(--c1) 20%, transparent) 0%, transparent 62%), #050507; }
.sub-hero::before { display: none; }
.sub-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, transparent 34%); }
.sub-hero-body { padding-bottom: 60px; }
.sub-kicker { font-size: 12px; font-weight: 600; letter-spacing: .36em; color: color-mix(in srgb, var(--c1) 55%, #fff); }
.sub-hero .sub-kicker::before { content: ""; display: block; width: 40px; height: 1px; margin-bottom: 22px; background: var(--c1); }
.sub-hero h2 { margin: 14px 0 16px; font-weight: 200; font-size: clamp(52px, 8.6vw, 128px); }
.sub-desc { color: #a9a9b5; font-size: clamp(15px, 1.4vw, 19px); }
.sub-figure { display: flex; margin-top: 48px; padding: 22px 0 0; max-width: 620px; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; gap: 8px; }
.sub-figure span { font-size: 12px; letter-spacing: .1em; color: #8a8a96; }
.sub-figure b { font-weight: 300; font-size: clamp(34px, 5vw, 68px); letter-spacing: -.035em; }
.sub-grid { gap: 0; counter-reset: sub; border-top: 1px solid var(--line); border-left: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sub-card { counter-increment: sub; min-height: 300px; padding: 30px 30px 26px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #050507; transition: background .4s; }
.sub-card::before { content: counter(sub, decimal-leading-zero); display: block; margin-bottom: 54px; font-size: 13px; letter-spacing: .14em; color: #6c6c78; }
.sub-card::after { content: ""; position: absolute; left: 30px; top: 0; height: 2px; width: 28px; background: var(--c1); transition: width .5s var(--ease); }
.sub-card .sub-kicker { font-size: 11px; }
.sub-card h3 { margin: 12px 0 10px; font-weight: 300; font-size: 36px; }
.sub-card p { color: #9a9aa6; font-size: 15px; }
.sub-card-foot { padding-top: 34px; color: #8a8a96; font-weight: 500; }
.sub-card-foot b { color: #fff; font-weight: 400; font-size: 19px; }
@media (hover: hover) {
  .sub-card:hover { transform: none; box-shadow: none; background: #0d0d11; }
  .sub-card:hover::after { width: calc(100% - 60px); }
}
.rec-list { gap: 0; border-bottom: 1px solid var(--line); }
.rec { padding: 30px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.rec-date { letter-spacing: .2em; font-size: 12px; color: #8a8a96; margin-bottom: 10px; }
.rec-title { font-weight: 400; font-size: 23px; letter-spacing: -.02em; }
.rec-text { color: #a9a9b5; font-size: 15.5px; line-height: 1.9; }
.rec-amount { font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); }
.rec-side .btn { border: 0; padding: 4px 0; min-height: 0; color: #8a8a96; font-weight: 500; border-radius: 0; }
.rec-side .btn:hover { color: #fff; }
.rec-empty { border-radius: 2px; border-color: #2c2c34; }
.cat-list-title { font-size: 13px; font-weight: 600; letter-spacing: .24em; color: #8a8a96; }

/* 목표: 달성 체크 */
.rec .check { margin-top: 4px; border-color: #4a4a55; }
.rec.done .rec-title { color: #6c6c78; text-decoration: line-through; }
.rec.done .rec-text { color: #5c5c68; }
@media (max-width: 899px) { body.me .tabs button { font-size: 9px; padding-left: 0; padding-right: 0; } body.me .tabs button svg { width: 20px; height: 20px; } }
@media (min-width: 900px) and (max-width: 1320px) { body.me .tabs { margin-left: 24px; } body.me .tabs button { padding: 12px 12px; font-size: 16px; } body.me .tabs button::after { left: 12px; right: 12px; } }
