/* ═════════ the site's header and footer (the live site's menus and footer, in v16's design) — shared by the sub-pages and the
   home pages. ═════════ */
/* ── header: the four menus ── */
.nav { gap: 18px; }
/* (10/21 live review: the bar steps out of the way going down — translated by its own height, its 1 px shadow line stayed at the
   screen's top edge on every scrolled frame. 2 px further, so the line leaves with it — here, after base.css and the homes' own) */
.nav.away { transform: translate3d(0, calc(-100% - 2px), 0); }
.nav.menu-open, .nav.sheet { background: rgba(var(--bg-rgb), 0.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-logo span { white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: 20px; }
.nav-item { position: relative; }
.nav-top { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 10px; font: var(--w-body) var(--t-ui)/1 var(--font); color: var(--ink-2); white-space: nowrap; transition: color 0.25s, background-color 0.25s; }
.has-panel > .nav-top::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.7; transition: transform 0.4s var(--ease-out), margin 0.4s var(--ease-out); }
.nav-item.open > .nav-top::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-top:hover, .nav-item.open > .nav-top { color: var(--ink); background: rgba(190, 205, 255, 0.07); }
.nav-top.is-here { color: var(--ink); }
.nav-panel { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; z-index: 2; background: var(--bg-2); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -24px rgba(5, 6, 14, 0.7); opacity: 0; visibility: hidden; transform: translate3d(0, -6px, 0); transition: opacity 0.16s cubic-bezier(0.4, 0, 1, 1), transform 0.2s cubic-bezier(0.4, 0, 1, 1), visibility 0s linear 0.16s; }   /* (10/20, style.gallery 'easeReverse': it goes faster than it came, on its own curve) */
.nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* (the pointer's bridge from the menu to its panel) */
.nav-item.open > .nav-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease-quart), transform 0.45s var(--ease-out), visibility 0s; }
.nav-cols { display: flex; gap: 28px; padding: 20px 20px 16px; }
.nav-col { display: grid; gap: 2px; align-content: start; min-width: 168px; }
.nav-col-label { padding: 2px 12px 10px; font: var(--w-ui) var(--t-small)/1.2 var(--font); color: var(--ink-3); }
.nav-col a { padding: 9px 12px; border-radius: 9px; font: var(--w-body) var(--t-ui)/1.3 var(--font); color: var(--ink-2); white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.nav-col a:hover { color: var(--ink); background: rgba(190, 205, 255, 0.06); }
.nav-col a[aria-current="page"] { color: var(--lime); }
.nav-all { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 32px; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; font: var(--w-ui) var(--t-small)/1 var(--font); color: var(--ink); transition: background-color 0.2s; }
.nav-all span { color: var(--lime); transition: transform 0.5s var(--ease-out); }
.nav-all:hover { background: rgba(190, 205, 255, 0.05); } .nav-all:hover span { transform: translate3d(4px, 0, 0); }

/* (10/20 afternoon, style.gallery 'Sliding tabs') one light that slides under the menus and inside a panel's columns — ui/nav.js */
.nav-menu, .nav-cols { position: relative; }
.nav-hl { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: rgba(190, 205, 255, 0.075); pointer-events: none; opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease; }
.nav-cols > .nav-hl { border-radius: 9px; background: rgba(190, 205, 255, 0.065); }
.nav-hl.on { opacity: 1; }
.nav-hl.snap { transition: opacity 0.18s ease; }
.nav-menu.has-hl .nav-top, .nav-cols.has-hl .nav-col a { position: relative; z-index: 1; }
.nav-menu.has-hl .nav-top:hover, .nav-menu.has-hl .nav-item.open > .nav-top, .nav-cols.has-hl .nav-col a:hover { background: transparent; }
@media (prefers-reduced-motion: reduce) { .nav-hl { transition: opacity 0.12s ease; } }
.nav-actions { gap: 10px; }
.nav-login { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 18px; border-radius: 999px; font: var(--w-ui) var(--t-ui)/1 var(--font); color: var(--ink); background: rgba(190, 205, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.3s, box-shadow 0.3s; }
.nav-login:hover { background: rgba(190, 205, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-3); }
.nav-login-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); transition: transform 0.5s var(--ease-out); }
.nav-login-ic svg { fill: none; stroke: var(--lime-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-login:hover .nav-login-ic { transform: rotate(45deg); }
.nav-burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(190, 205, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); cursor: pointer; }
.nav-burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 1px; background: currentColor; transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out); }
.nav-burger i:first-child { top: 17px; } .nav-burger i:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); } .nav-burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 49; overflow-y: auto; background: var(--bg); padding: 86px var(--gut) 48px; }
.mnav[hidden] { display: none; }
.mnav-inner { display: grid; gap: 4px; max-width: 560px; margin: 0 auto; }
.mnav-group { border-bottom: 1px solid var(--line); }
.mnav-group summary, .mnav-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font: var(--w-ui) 19px/1.2 var(--font); color: var(--ink); cursor: pointer; list-style: none; }
.mnav-group summary::-webkit-details-marker { display: none; }
.mnav-group summary::after { content: ''; width: 8px; height: 8px; margin-right: 6px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.4s var(--ease-out); }
.mnav-group[open] summary::after { transform: rotate(-135deg); }
.mnav-top { border-bottom: 1px solid var(--line); }
.mnav-body { display: grid; gap: 14px; padding: 2px 0 22px; }
.mnav-col { display: grid; gap: 0; }
.mnav-col-label { padding: 8px 0 6px; font: var(--w-ui) var(--t-small)/1.2 var(--font); color: var(--ink-3); }
.mnav-col a, .mnav-all { display: flex; align-items: center; min-height: 44px; font: var(--w-body) var(--t-body)/1.3 var(--font); color: var(--ink-2); }
.mnav-col a[aria-current="page"] { color: var(--lime); }
.mnav-all { color: var(--ink); font-weight: var(--w-ui); gap: 8px; } .mnav-all span { color: var(--lime); }
.mnav-login { margin-top: 26px; justify-self: start; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-grid; }
}
@media (max-width: 640px) {
  .nav-login { display: inline-flex; height: 40px; padding-left: 14px; } .nav-login-ic { width: 28px; height: 28px; }
}
@media (max-width: 380px) { .nav-login > span { display: none; } .nav-login { padding: 0 6px; } }   /* (the arrow alone; its words stay for screen readers below) */

/* ── footer ── */
.foot2 { position: relative; z-index: 1; margin-top: 0; background: var(--bg); border-top: 1px solid var(--line); }
.foot-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.foot-claim { display: flex; flex-wrap: wrap; gap: 0 0.32em; font: var(--w-sub, 600) clamp(30px, 3.1vw, 44px)/1.18 var(--font); letter-spacing: -0.035em; color: var(--ink); }   /* (10/20: 58 → 44 px with the type scale) */
.foot-claim .lime { color: var(--lime); }
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 28px; padding-block: clamp(44px, 5vw, 72px); }
.foot-col h3 { margin-bottom: 14px; font: var(--w-ui) var(--t-small)/1.3 var(--font); color: var(--ink-3); letter-spacing: 0; }
.foot-col h3 a { color: var(--ink-2); } .foot-col h3 a:hover { color: var(--ink); }
.foot-col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot-col li a { display: inline-flex; align-items: center; min-height: 34px; font: var(--w-body) var(--t-ui)/1.3 var(--font); color: var(--ink-2); transition: color 0.2s; }
.foot-col li a:hover { color: var(--ink); } .foot-col li a[aria-current="page"] { color: var(--lime); }
.foot-bottom { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font: var(--w-body) var(--t-micro)/1.7 var(--font); color: var(--ink-3); }
.foot-id { display: grid; gap: 8px; align-content: start; }
.foot2 .foot-logo { font: var(--w-head) var(--t-ui)/1 var(--font); color: var(--ink-2); letter-spacing: -0.01em; }
.foot-co { display: grid; gap: 2px; justify-items: end; text-align: right; }

@media (max-width: 1080px) {
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-bottom { grid-template-columns: minmax(0, 1fr); }
  .foot-co { justify-items: start; text-align: left; }
  .foot-band .btn { width: 100%; }
}

/* (10/20 afternoon, style.gallery '클릭에서 번지는 파문' · '행동 뒤의 피드백' · the Nocturne Editorial direction's 'responsive states on
   every link, card, tab at 150-300 ms') a press answers at once: what is pressed gives a little under the finger and springs back
   when let go. The scale property — the magnet's translate on a button stays its own. Shared: the sub-pages and the homes. */
.btn { transition: transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.3s, scale 0.42s var(--ease-out); }
.nav-login { transition: background-color 0.3s, box-shadow 0.3s, scale 0.42s var(--ease-out); }
.btn:active, .nav-login:active { scale: 0.965; transition: transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.3s, scale 0.09s ease-out; }
@media (prefers-reduced-motion: reduce) { .btn:active, .nav-login:active { scale: none; } }
