/* =========================================================
   FineDust Works — palette from smoke reference
   ash #A9A9A2 · midnight #0A1729 · void #000 · char #24292B · slate #5B6169
   ========================================================= */
:root {
  --void: #000000;
  --midnight: #0a1729;
  --char: #24292b;
  --slate: #5b6169;
  --ash: #a9a9a2;
  --smoke: #e7e7e2;
  --white: #ffffff;

  --bg: var(--void);
  --bg-2: #05090f;
  --surface: rgba(36, 41, 43, 0.38);
  --line: rgba(169, 169, 162, 0.14);
  --line-strong: rgba(169, 169, 162, 0.3);
  --text: var(--smoke);
  --text-dim: rgba(231, 231, 226, 0.62);
  --text-mute: rgba(169, 169, 162, 0.55);

  --font-display: "Space Grotesk", "IBM Plex Sans KR", system-ui, sans-serif;
  --font-body: "IBM Plex Sans KR", "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: var(--ash); color: var(--void); }

/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--smoke); color: var(--void); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--ash); outline-offset: 4px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.kicker, .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ash);
  box-shadow: 0 0 12px var(--ash);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 18px;
  word-break: keep-all;
}
.h2 em, .contact__title em {
  font-style: normal;
  color: var(--slate);
  background: linear-gradient(90deg, var(--ash), var(--slate));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }
.nav__brand img { height: 25px; width: auto; }
.nav__brand b { font-weight: 300; color: var(--text-mute); margin-left: 4px; }
.nav__links { display: flex; align-items: center; gap: 34px; font-family: var(--font-display); font-size: 14px; }
.nav__links a { color: var(--text-dim); transition: color 0.25s; position: relative; }
.nav__links a:hover { color: var(--white); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--ash); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text) !important; transition: background 0.25s, border-color 0.25s;
}
.nav__cta:hover { background: var(--smoke); color: var(--void) !important; border-color: var(--smoke); }
.nav__toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--smoke); color: var(--void); }
.btn--solid:hover { background: var(--white); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--ash); background: rgba(169,169,162,0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 40%, rgba(10, 23, 41, 0.9) 0%, rgba(0, 0, 0, 1) 70%),
    var(--void);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,0) 22%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 120px var(--gutter) 100px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 8.2vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 26px 0 32px;
}
.hero__title .line { display: block; opacity: 0; transform: translateY(30px); filter: blur(12px); animation: condense 1.4s var(--ease) forwards; }
.hero__title .line:nth-child(2) { animation-delay: 0.15s; }
.hero__title .line:nth-child(3) { animation-delay: 0.3s; }
.hero__title .line--dim { color: var(--ash); }
.hero__title .line:nth-child(3) { color: var(--slate); }
@keyframes condense { to { opacity: 1; transform: none; filter: blur(0); } }

.hero__lede {
  max-width: 520px; font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-dim); word-break: keep-all;
  opacity: 0; animation: condense 1.4s 0.5s var(--ease) forwards;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; opacity: 0; animation: condense 1.4s 0.65s var(--ease) forwards; }

.hero__meta {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 34px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em;
}
.hero__scroll {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute);
}
.hero__scroll i { display: block; width: 48px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ash); transform: translateX(-100%); animation: sweep 2.2s ease-in-out infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section__head { margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section__note { max-width: 320px; color: var(--text-mute); font-size: 14px; word-break: keep-all; }

/* about */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.about__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 8vw, 120px); }
.about__mark {
  margin-top: 48px; aspect-ratio: 1; max-width: 300px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 97, 105, 0.25), transparent 65%),
    linear-gradient(160deg, rgba(10,23,41,0.6), rgba(0,0,0,0.2));
  position: relative; overflow: hidden;
}
.about__mark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(169,169,162,0.09) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 75%);
}
/* guide grid: 1 column + 6 rows through the logo's dot centres */
.guides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.guides__lines line {
  fill: none;
  stroke: var(--ash);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  transform-box: fill-box;
}
/* rows: fine dust dotted lines, drawn outward from the column */
.guides__row {
  stroke-dasharray: 0.01 4;     /* round caps turn these into fine motes */
  stroke-width: 1.7 !important;
  opacity: 0.6;
  transform-origin: 35.86% 50%;  /* x=0 inside the row's span (-51.67…92.41) */
  transform: scaleX(0);
  transition: transform 1.3s var(--ease), opacity 0.6s;
  transition-delay: calc(0.35s + var(--i) * 0.08s);
}
/* the column: a continuous hairline, the spine of the mark */
.guides__col {
  opacity: 0.45;
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 1.1s var(--ease);
}
.is-in .guides__row { transform: scaleX(1); }
.is-in .guides__col { transform: scaleY(1); }
/* slow shimmer down the rows, like light catching dust */
.is-in .guides__row { animation: rowGlint 7s ease-in-out infinite; animation-delay: calc(2s + var(--i) * 0.45s); }
@keyframes rowGlint { 0%, 70%, 100% { opacity: 0.6; } 80% { opacity: 1; } }

.guides__labels text {
  font-family: var(--font-mono);
  font-size: 3.6px;
  letter-spacing: 0.08em;
  fill: var(--text-mute);
  opacity: 0;
  transition: opacity 0.8s 1.2s;
}
.is-in .guides__labels text { opacity: 0.8; }
.guides__logo { filter: drop-shadow(0 0 3px rgba(231,231,226,0.3)); }
.about__body p { color: var(--text-dim); font-size: clamp(15px, 1.3vw, 17px); max-width: 600px; margin-top: 24px; word-break: keep-all; }
.about__body .h2 { margin-top: 0; margin-bottom: 16px; }
.stats { display: flex; gap: clamp(28px, 6vw, 72px); margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.stats dd { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-top: 10px; }

/* domains */
.domains { background: var(--bg-2); }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.card {
  position: relative; padding: 40px 34px 36px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: background 0.5s var(--ease);
}
.card::before {
  content: ""; position: absolute; z-index: -1;
  width: 360px; height: 360px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91,97,105,0.35), rgba(10,23,41,0.25) 40%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.card.is-hot::before { opacity: 1; }
.card__no { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.1em; }
.card__icon {
  width: 44px; height: 44px; margin: 40px 0 28px;
  fill: none; stroke: var(--ash); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.3s, transform 0.5s var(--ease);
}
.card.is-hot .card__icon { stroke: var(--white); transform: translateY(-4px); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); font-size: 15px; margin-top: 12px; word-break: keep-all; min-height: 3.4em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tags li {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
}

/* approach */
.approach { background: linear-gradient(180deg, var(--bg-2), var(--midnight) 140%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  padding: 28px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.step__viz { height: 120px; border-radius: 12px; margin-bottom: 28px; background: rgba(0,0,0,0.4); overflow: hidden; position: relative; }
.step__viz canvas { width: 100%; height: 100%; display: block; }
.step__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin-top: 10px; }
.step p { color: var(--text-dim); font-size: 14px; margin-top: 10px; word-break: keep-all; }

/* lab */
.lab { background: var(--midnight); background: linear-gradient(180deg, #071121, var(--bg) 100%); }
.lab__list { border-top: 1px solid var(--line); }
.lab__item {
  display: grid; grid-template-columns: 140px 1fr 1.4fr auto; align-items: center; gap: 24px;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  transition: background 0.4s, padding 0.4s var(--ease);
}
.lab__item.is-hot { background: linear-gradient(90deg, rgba(91,97,105,0.12), transparent); padding-left: 20px; }
.lab__item h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.lab__item p { color: var(--text-dim); font-size: 15px; word-break: keep-all; }
.lab__cat { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; white-space: nowrap; }
.lab__status {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute);
}
.lab__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--slate); }
.lab__status--live { color: var(--ash); }
.lab__status--live::before { background: var(--ash); border-color: var(--ash); box-shadow: 0 0 10px var(--ash); animation: pulse 2.4s infinite; }

/* contact */
.contact { text-align: center; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 1100px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(10,23,41,0.95), rgba(36,41,43,0.25) 45%, transparent 70%);
  pointer-events: none;
}
.contact__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 7.5vw, 104px); line-height: 1.05; letter-spacing: -0.04em;
  margin-top: 22px; word-break: keep-all;
}
.contact__lede { color: var(--text-dim); margin-top: 28px; word-break: keep-all; }
.contact__mail {
  margin-top: 44px; font-family: var(--font-display); font-size: clamp(20px, 3vw, 34px);
  padding-bottom: 6px; border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s, color 0.3s; word-break: break-all;
}
.contact__mail:hover { border-color: var(--smoke); color: var(--white); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; }
.socials a {
  display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); transition: all 0.3s;
}
.socials a:hover { border-color: var(--ash); color: var(--white); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.04em; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dim); }
.footer__brand img { height: 16px; width: auto; opacity: 0.8; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero { align-items: flex-end; }
  .hero__inner { padding-top: calc(72px + min(50vw, 30svh) + 5svh); padding-bottom: 96px; }
  .hero__vignette { background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0) 80%); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lab__item { grid-template-columns: 120px 1fr; }
  .lab__item p { grid-column: 2; }
  .lab__cat { grid-column: 2; }
}
@media (max-width: 760px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 40px; height: 40px; background: none; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer;
    position: relative; z-index: 2;
  }
  .nav__toggle span { display: block; width: 16px; height: 1px; background: var(--smoke); transition: transform 0.3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(0,0,0,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    font-size: 24px; opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__brand { position: relative; z-index: 2; }

  .about__grid { grid-template-columns: 1fr; }
  .about__mark { max-width: 200px; margin-top: 28px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .card p { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .lab__item { grid-template-columns: 1fr; gap: 8px; padding: 26px 4px; }
  .lab__item p, .lab__cat { grid-column: auto; }
  .lab__item.is-hot { padding-left: 4px; }
  .hero__meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero__title .line, .hero__lede, .hero__actions { opacity: 1; transform: none; filter: none; }
}
