@charset "utf-8";

:root {
  --deep: #0A1240;
  --deeper: #050A2C;
  --feed: #08103A;
  --cobalt: #2E44FF;
  --ice: #E6ECFF;
  --mist: #8E97C9;
  --pulse: #5FF2D0;
  --flare: #FF6A3D;
  --slate: #46508A;
  --hair: rgba(142, 151, 201, 0.22);
  --display: "Unbounded", "Wanted Sans Variable", "Wanted Sans", system-ui, sans-serif;
  --text: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1480px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ice);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
canvas, svg { display: block; }
::selection { background: var(--pulse); color: var(--deep); }
:focus-visible { outline: 2px solid var(--pulse); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ice);
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(5, 10, 44, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--hair);
}
.nav.is-light {
  background: rgba(230, 236, 255, 0.84);
  border-bottom-color: rgba(10, 18, 64, 0.12);
  color: var(--deep);
}
.nav.is-light .nav__links a { color: var(--slate); }
.nav.is-light .nav__links a:hover { color: var(--deep); }
.nav.is-light :focus-visible { outline-color: var(--cobalt); }
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav__brand svg { width: 26px; height: 26px; }
.nav__links {
  display: flex;
  gap: clamp(14px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 6px 0;
  color: var(--mist);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ice); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(640px, 100svh);
  overflow: hidden;
  background: linear-gradient(180deg, var(--deeper) 0%, var(--deep) 100%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero__content {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5.5vh, 64px);
  left: var(--gutter);
  pointer-events: none;
}
.hero__mark {
  margin: 0 0 clamp(16px, 2.2vw, 30px) -0.05em;
  font-family: var(--display);
  font-size: clamp(72px, 17.5vw, 300px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 40px;
}
.hero__lead {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.625rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.hero__fields {
  margin: 0;
  color: var(--mist);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
}

/* ---------- domains ---------- */
.domains {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
}
.domains__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.domains__tab {
  position: relative;
  padding: 0.06em 0 0.1em;
  border: 0;
  background: none;
  color: rgba(230, 236, 255, 0.16);
  font-family: var(--display);
  font-size: clamp(46px, 6.6vw, 112px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s ease;
}
.domains__tab:hover { color: rgba(230, 236, 255, 0.42); }
.domains__tab[aria-selected="true"] { color: var(--ice); }
.domains__tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--pulse);
  transform: scaleX(0);
  transform-origin: left;
}
.domains__tab.is-timing::after { animation: timing var(--dur, 5.2s) linear forwards; }
.domains__caption { margin-top: clamp(24px, 3vw, 40px); max-width: 30em; }
.domains__name { margin: 0 0 2px; font-size: 1.125rem; font-weight: 600; }
.domains__text { margin: 0; color: var(--mist); }
.domains__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 82svh;
}
.domains__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

/* ---------- section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-title {
  margin: 0;
  font-size: clamp(1.875rem, 3.4vw, 3.125rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.section-head p { margin: 0; max-width: 30em; color: var(--mist); }

/* ---------- work ---------- */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(96px, 12vw, 180px);
}
.wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hair);
  background: var(--hair);
}
.feed {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--feed);
}
.feed canvas { width: 100%; aspect-ratio: 16 / 10; }
.feed figcaption { padding: 20px 24px 24px; border-top: 1px solid var(--hair); }
.feed h3 { margin: 0 0 4px; font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; }
.feed p { margin: 0; color: var(--mist); font-size: 0.96875rem; }

/* ---------- solutions ---------- */
.solutions { background: var(--ice); color: var(--deep); color-scheme: light; }
.solutions__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
}
.solutions .section-head p { color: var(--slate); }
.solutions :focus-visible { outline-color: var(--cobalt); }
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px);
}
.product canvas { width: 100%; aspect-ratio: 4 / 3; background: #D8E0FF; }
.product__name {
  margin: clamp(20px, 2.4vw, 32px) 0 10px;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.product__desc { margin: 0; font-size: 1.125rem; font-weight: 600; }
.product__sub { margin: 4px 0 0; max-width: 30em; color: var(--slate); }
.product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 22px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--ice);
  font-size: 0.875rem;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  animation: beacon 2s infinite;
}
.product__link {
  color: var(--cobalt);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.product__link:hover { text-decoration-thickness: 3px; }

/* ---------- contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(170px, 19vw, 260px);
}
.contact__title {
  margin: 0 0 0.6em;
  color: var(--mist);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 600;
}
.contact__mail {
  display: inline-block;
  padding-bottom: 0.06em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 104px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: color 0.25s, background-size 0.4s ease;
}
.contact__mail:hover { color: var(--pulse); background-size: 100% 3px; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(28px, 3vw, 44px);
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border: 1px solid rgba(230, 236, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--ice);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { border-color: var(--ice); background: var(--ice); color: var(--deep); }
.copy-status { color: var(--pulse); font-size: 0.9375rem; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--hair);
  color: var(--mist);
  font-size: 0.875rem;
}

/* ---------- 404 ---------- */
.lost {
  display: grid;
  place-content: center;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
}
.lost__code {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(88px, 22vw, 260px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.lost p { color: var(--mist); }
.lost a { color: var(--pulse); font-weight: 600; }

/* ---------- motion ---------- */
@keyframes timing { to { transform: scaleX(1); } }
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(95, 242, 208, 0.6); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(95, 242, 208, 0); }
}
@keyframes mark-in {
  from { clip-path: inset(110% -10% -20% -10%); transform: translateY(0.18em); }
  to { clip-path: inset(-20% -10% -20% -10%); transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__mark { animation: mark-in 1.2s cubic-bezier(0.16, 0.84, 0.2, 1) 0.85s both; }
  .hero__meta { animation: fade-in 1s ease 1.5s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status::before { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .domains { grid-template-columns: 1fr; }
  .domains__stage { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .wall, .products { grid-template-columns: 1fr; }
  .feed canvas { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .nav { padding-block: 12px; }
  .nav__brand span { display: none; }
}
