:root {
  --void: #05070c;
  --panel: rgba(12, 16, 24, 0.72);
  --line: rgba(186, 214, 232, 0.28);
  --ice: #67e8ff;
  --ice-2: #9fdfff;
  --steel: #8ea0b5;
  --mist: #d7e3ee;
  --text: #e8eef4;
  --mute: #9aa8b6;
  --danger: #ffb4a8;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  background: var(--void);
  overflow-x: hidden;
}

.void {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(70, 180, 220, 0.18), transparent 60%),
    radial-gradient(700px 500px at 92% 8%, rgba(120, 140, 180, 0.14), transparent 55%),
    linear-gradient(180deg, #070a12, #05070c 40%, #04050a);
}

.grid-floor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 42vh;
  z-index: -2;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(103, 232, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.015) 3px 4px
  );
  mix-blend-mode: overlay;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 7vw;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.92), rgba(10, 14, 22, 0.55));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  max-width: 100%;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.mark__prism {
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(103, 232, 255, 0.45));
  animation: prism 7s linear infinite;
}

.mark__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.mark__name strong {
  font-family: Outfit, Pretendard, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, #f7fbff 10%, #8ea0b5 40%, #eef3f8 55%, #6b7c8d 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 5s ease-in-out infinite;
}

.mark__name em {
  font-family: Oxanium, sans-serif;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ice-2);
  white-space: nowrap;
}

.mast__age {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  white-space: nowrap;
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 80px;
  padding: 0 16px;
  overflow-x: clip;
}

.hero {
  display: grid;
  gap: 28px;
  padding: 48px 0 20px;
  min-width: 0;
  max-width: 100%;
}

.hero > *,
.hero__copy,
.slab > * {
  min-width: 0;
  max-width: 100%;
}

.hero__copy {
  max-width: 42rem;
}

.kicker {
  margin: 0 0 10px;
  font-family: Oxanium, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--ice);
  text-transform: none;
}

h1,
h2,
h3,
h4 {
  font-family: Outfit, Pretendard, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 7vw, 3.35rem);
  overflow-wrap: break-word;
  word-break: break-word;
  background: linear-gradient(180deg, #f5f9fc, #9eb4c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 18px rgba(80, 170, 210, 0.18));
}

h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  color: var(--mist);
}

h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  color: var(--ice-2);
}

h4 {
  margin: 20px 0 8px;
  font-size: 1.02rem;
  color: var(--steel);
}

p {
  margin: 0 0 12px;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.slab {
  margin: 28px 0;
  padding: 28px 26px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.slab:hover {
  border-color: rgba(103, 232, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 50px rgba(0, 20, 40, 0.45),
    0 0 24px rgba(103, 232, 255, 0.08);
}

.slab--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.slab--split > * {
  min-width: 0;
}

.slab--rev {
  grid-template-columns: 0.85fr 1.15fr;
}

.plate {
  margin: 18px 0 0;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(180, 210, 230, 0.32);
  background:
    linear-gradient(145deg, rgba(220, 230, 240, 0.16), rgba(20, 28, 40, 0.9) 42%, rgba(80, 160, 190, 0.18)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px);
  box-shadow: inset 0 0 40px rgba(103, 232, 255, 0.08);
}

.plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate--hero {
  margin: 0;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  max-height: 560px;
}

.plate--portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  min-height: 320px;
}

.plate--wide {
  aspect-ratio: 16 / 7;
  min-height: 220px;
}

.plate--square {
  margin: 0;
  aspect-ratio: 1 / 1;
  min-height: 260px;
}

.plate--land {
  margin: 0;
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 32%, transparent 58%, rgba(103, 232, 255, 0.12));
  mix-blend-mode: screen;
}

.sheet-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 18px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sheet caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 8px;
  color: var(--mute);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.sheet th,
.sheet td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.sheet thead th {
  color: var(--ice-2);
  font-weight: 600;
}

.sheet tbody th {
  color: var(--mist);
  font-weight: 600;
}

.voices {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.voices li {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.voices__meta {
  margin-bottom: 6px;
  color: var(--ice-2);
  font-size: 0.86rem;
  font-family: Oxanium, sans-serif;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  color: var(--ice-2);
  font-weight: 600;
  line-height: 1.45;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq details[open] summary {
  color: var(--ice);
}

.faq details p {
  margin: 0 0 16px;
  color: var(--text);
}

.mapframe {
  margin-top: 16px;
  overflow: hidden;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 320px;
  box-shadow: 0 0 0 1px rgba(103, 232, 255, 0.08);
}

.mapframe iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(0.35) saturate(0.85) contrast(1.05);
}

.base {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 7vw 110px;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.9);
}

.base__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.base__info {
  margin: 0;
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.85;
}

.base__info a {
  color: var(--mist);
  text-decoration: none;
}

.base__info a:hover,
.base__info a:focus-visible {
  color: var(--ice);
}

.base__copy {
  margin: 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.base__links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.base__links a:hover,
.base__links a:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #041018;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #f4f8fc, #8ea2b4 45%, #e8eef4);
  box-shadow:
    0 10px 30px rgba(80, 180, 220, 0.35),
    inset 0 1px 0 #fff;
  animation: dockpulse 2.8s ease-in-out infinite;
}

.dock:hover,
.dock:focus-visible {
  transform: translateY(-2px);
}

@keyframes sheen {
  0%,
  100% { background-position: 0 0; }
  50% { background-position: 100% 0; }
}

@keyframes prism {
  from { filter: drop-shadow(0 0 8px rgba(103, 232, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(180, 230, 255, 0.7)); }
  to { filter: drop-shadow(0 0 8px rgba(103, 232, 255, 0.3)); }
}

@keyframes dockpulse {
  0%,
  100% { box-shadow: 0 10px 30px rgba(80, 180, 220, 0.3), inset 0 1px 0 #fff; }
  50% { box-shadow: 0 12px 36px rgba(103, 232, 255, 0.55), inset 0 1px 0 #fff; }
}

@media (max-width: 860px) {
  .mast {
    padding: 10px 14px;
    gap: 8px;
  }

  .mark__name strong {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
  }

  .mark__name em {
    letter-spacing: 0.08em;
    font-size: 0.56rem;
  }

  .mast__age {
    font-size: 0.68rem;
    padding: 4px 8px;
    letter-spacing: 0;
  }

  main {
    width: 100%;
    padding: 0 14px 24px;
  }

  .grid-floor {
    transform: none;
    height: 28vh;
    opacity: 0.4;
  }

  .hero {
    padding: 28px 0 12px;
    gap: 18px;
  }

  .hero > *,
  .slab > *,
  .voices,
  .voices li,
  .faq,
  .faq details {
    max-width: 100%;
    min-width: 0;
  }

  .hero__copy {
    max-width: 100%;
  }

  .kicker {
    letter-spacing: 0.04em;
    font-size: 0.72rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.28rem;
  }

  .slab {
    margin: 16px 0;
    padding: 20px 16px;
    transform: none !important;
    transform-style: flat;
  }

  .slab--split,
  .slab--rev {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .plate--hero,
  .plate--portrait,
  .plate--wide,
  .plate--square,
  .plate--land {
    min-height: 0;
  }

  .plate--hero {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }

  .sheet {
    font-size: 0.82rem;
  }

  .sheet th,
  .sheet td {
    padding: 8px 8px;
  }

  .dock {
    right: 12px;
    left: 12px;
    bottom: 12px;
    text-align: center;
  }

  .base {
    padding: 24px 16px 100px;
  }
}

.home-link {
  color: var(--ice-2);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(159, 223, 255, 0.35);
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--ice);
}

.legal .home-row {
  margin: 8px 0 20px;
}

.legal .home-row--end {
  margin: 28px 0 0;
}

.legal h2 {
  margin-top: 28px;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ol,
.legal ul {
  padding-left: 1.2em;
}

@media (max-width: 400px) {
  body {
    font-size: 16px;
  }

  .mark__name em {
    display: none;
  }

  h1 {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
