:root {
  --serif: "NanumSquare", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --en: "NanumSquare", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); background: var(--ink); }
.visual {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(70% 65% at 68% 48%, #101a2e 0%, rgba(16, 26, 46, 0) 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,13,.9) 0%, rgba(5,7,13,.55) 26%, rgba(5,7,13,0) 52%),
    linear-gradient(0deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,0) 30%); }
#dets { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; transition: opacity .5s; }
.visual[data-focus="map"] #dets { opacity: 0; }
.det { --b: rgba(236, 214, 176, .95); position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, width, height;
  background:
    linear-gradient(var(--b), var(--b)) 0 0 / 12px 1px no-repeat, linear-gradient(var(--b), var(--b)) 0 0 / 1px 12px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 0 / 12px 1px no-repeat, linear-gradient(var(--b), var(--b)) 100% 0 / 1px 12px no-repeat,
    linear-gradient(var(--b), var(--b)) 0 100% / 12px 1px no-repeat, linear-gradient(var(--b), var(--b)) 0 100% / 1px 12px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 100% / 12px 1px no-repeat, linear-gradient(var(--b), var(--b)) 100% 100% / 1px 12px no-repeat;
  outline: 1px solid rgba(236, 214, 176, .16); box-shadow: inset 0 0 40px rgba(236, 214, 176, .05); }
.det .tag { position: absolute; left: -1px; bottom: 100%; margin-bottom: 8px; padding: 5px 10px; white-space: nowrap; font-size: var(--fs-3xs); letter-spacing: -.035em; color: var(--ivory);
  background: rgba(8, 10, 18, .72); border-left: 2px solid var(--b); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.det .tag b { margin-left: 9px; font-weight: 700; color: #e6cfa0; font-variant-numeric: tabular-nums; }
.det.warn { --b: rgba(255, 190, 105, 1); outline-color: rgba(255, 190, 105, .28); box-shadow: inset 0 0 40px rgba(255, 190, 105, .09); }
.det.warn .tag b { color: #ffc783; }
.det.warn .tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #ffbe69; vertical-align: 1px; }
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#leaders polyline { fill: none; stroke-width: 1; }
#ldF { stroke: rgba(232, 207, 156, .85); } #ldR { stroke: rgba(156, 196, 240, .85); }
#leaders .dt { fill: #f0dcae; } #leaders .dt.r { fill: #b4d4f6; }
#leaders .pulse { fill: none; stroke: #f0dcae; stroke-width: 1; transform-box: fill-box; transform-origin: center; r: 4px; animation: lping 2.4s ease-out infinite; }
#leaders .pulse.r { stroke: #b4d4f6; animation-delay: 1.2s; }
@keyframes lping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
.lcall { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.lcall.f { --c: #e8cf9c; } .lcall.r { --c: #9cc4f0; }
.lcall .in { padding: 0 3px 7px; white-space: nowrap; border-bottom: 1px solid var(--c); }
.lcall.f .in { transform: translateY(-100%); }
.lcall.r .in { transform: translate(-100%, -100%); text-align: right; }
.lcall b { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: -.035em; }
.lcall.r b { justify-content: flex-end; }
.lcall b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.lcall small { display: block; margin-top: 3px; font-family: var(--en); font-size: var(--fs-4xs); letter-spacing: .02em; color: var(--steel); }
.det::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--b); box-shadow: 0 0 8px var(--b); opacity: 0; }
.det.scan { outline-style: dashed; }
.det.scan::after { opacity: .9; animation: dscan .9s linear infinite; }
.det.scan .tag { color: var(--dim); }
.det .tag .sp { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border: 1.5px solid currentColor; border-top-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin .8s linear infinite; }
.det.locked { animation: lockflash .7s ease-out 1; }
.det.warn.locked { animation: lockflash .7s ease-out 1, wpulse 1.2s ease-in-out .7s infinite; }
@keyframes dscan { from { top: 0; } to { top: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lockflash { from { outline-offset: 14px; outline-color: rgba(236, 214, 176, .9); } }
@keyframes wpulse { 50% { outline-color: rgba(255, 190, 105, .75); box-shadow: inset 0 0 50px rgba(255, 190, 105, .22); } }
#beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#beams line { stroke: rgba(236, 214, 176, .75); stroke-width: 1; stroke-dasharray: 3 5; animation: bdash .5s linear infinite; }
#beams line.warn { stroke: rgba(255, 190, 105, .95); }
@keyframes bdash { to { stroke-dashoffset: -8; } }
.yield { position: absolute; left: 0; top: 0; opacity: 0; padding: 6px 11px 6px 27px; white-space: nowrap; font-size: var(--fs-2xs); background: rgba(8, 10, 18, .8); border: 1px solid rgba(255, 190, 105, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); will-change: transform; }
.yield::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 10px; margin-top: -5px; box-sizing: border-box; border-left: 3px solid #ffbe69; border-right: 3px solid #ffbe69; }
.yield b { margin-right: 7px; font-weight: 700; color: #ffc783; }
.yield small { font-size: var(--fs-3xs); color: var(--dim); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 800; font-size: var(--fs-lg); letter-spacing: .01em; white-space: nowrap; }
.nav a:hover { color: var(--ivory); }
.nav a:hover::after { transform: scaleX(1); }
.copy { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(48px, 18vh, 200px) var(--pad) 24px clamp(24px, 6vw, 104px); }
.copy > div { max-width: 700px; }
@media (min-width: 901px) {
  .copy { position: absolute; inset: 0; justify-content: center; padding-top: 0; padding-bottom: 0; pointer-events: none; }
  .copy > div { pointer-events: auto; }
  .visual .pillars { margin-top: auto; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .visual .pillars .d { display: none; }
  .visual .pillars .e { margin-bottom: 0; }
}
h1 { margin: 0 0 30px; font-family: var(--serif); font-weight: 700; font-size: var(--fs-visual); line-height: 1.22; letter-spacing: -.05em; word-break: keep-all; }
h1 em { font-style: normal; color: var(--accent); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tabs a { background: rgba(5,7,13,.35); }
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > span { display: inline-block; transform: translateY(112%); animation: rise 1.2s cubic-bezier(.16, .8, .1, 1) forwards; animation-delay: calc(2.4s + var(--i, 0) * .16s); }
@keyframes rise { to { transform: translateY(0); } }
.lead { margin: 0 0 42px; max-width: 30em; font-size: var(--fs-lead); line-height: 1.85; font-weight: 300; color: #c3c7d4; word-break: keep-all; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; }
.btn { display: inline-block; padding: 16px 32px; font-size: var(--fs-base); font-weight: 700; letter-spacing: -.035em; background: var(--ivory); color: var(--ink); border-radius: 2px; transition: background .3s; }
.btn:hover { background: var(--accent); }
.link { padding: 6px 0; font-size: var(--fs-base); border-bottom: 1px solid rgba(var(--accent-rgb), .6); transition: color .25s, border-color .25s; }
.link:hover { color: var(--accent); border-color: var(--accent); }
.fade { opacity: 0; animation: fadein 1.2s ease forwards; animation-delay: calc(3.1s + var(--i, 0) * .14s); }
@keyframes fadein { to { opacity: 1; } }
.visual:not(.go) .ln > span, .visual:not(.go) .fade, .visual:not(.go) .legend { animation-play-state: paused; }
.pillars { position: relative; z-index: 3; list-style: none; margin: 0; padding: 0 var(--pad) 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.6vw, 44px); }
.pillars a { position: relative; display: block; padding-top: 22px; border-top: 1px solid var(--hair); transition: opacity .35s; }
.pillars a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.pillars a:hover::before, .pillars a:focus-visible::before { transform: scaleX(1); }
.pillars .k { display: block; font-family: var(--serif); font-weight: 700; font-size: var(--fs-h4); }
.pillars .e { display: block; margin: 5px 0 12px; font-size: var(--fs-2xs); letter-spacing: .01em; color: var(--steel); }
.pillars .d { display: block; max-width: 27em; font-size: var(--fs-xs); line-height: 1.75; font-weight: 300; color: var(--dim); word-break: keep-all; }
.visual[data-focus] .pillars a { opacity: .42; }
.visual[data-focus="map"] .pillars a[data-p="map"],
.visual[data-focus="patrol"] .pillars a[data-p="patrol"],
.visual[data-focus="detect"] .pillars a[data-p="detect"],
.visual[data-focus="avoid"] .pillars a[data-p="avoid"] { opacity: 1; }
.pillars a[href="#"] { cursor: default; }
@media (max-width: 900px) {
  .veil { background: linear-gradient(180deg, rgba(5,7,13,.9) 0%, rgba(5,7,13,.55) 42%, rgba(5,7,13,0) 68%), linear-gradient(0deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,0) 26%); }
  .copy { justify-content: flex-start; padding-top: 28px; }
  #dets, .legend { display: none; }
}
@media (max-width: 700px) {
  .visual .pillars .d { display: none; }
  .visual .pillars .e { margin-bottom: 0; }
  .pillars { padding-bottom: 24px; gap: 14px; grid-template-columns: repeat(2, 1fr); }
  .lead { margin-bottom: 30px; }
  .btn { padding: 14px 24px; }
}
.legend { position: absolute; z-index: 2; right: var(--pad); bottom: 210px; display: flex; align-items: stretch; gap: 10px; pointer-events: none; opacity: 0; animation: fadein 1.2s ease 5.2s forwards; }
.legend .bar { width: 6px; height: 96px; border-radius: 3px; background: linear-gradient(0deg, #ff7500 0%, #ffad00 6%, #f7e50d 13%, #9ef20d 25%, #2ee65c 43%, #1ad6cc 100%); opacity: .85; }
.legend .lbl { display: flex; flex-direction: column; justify-content: space-between; font-size: var(--fs-3xs); color: var(--dim); line-height: 1; }
.legend .lbl b { font-weight: 400; color: var(--ivory); }
.no-gl #dets { display: none; }
.no-gl .legend { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ln > span, .fade, .legend { animation: none; opacity: 1; transform: none; }
  #leaders .pulse, #beams line, .det::after, .det .tag .sp, .det.locked, .det.warn.locked { animation: none; }
}
