:root {
  --ink: #0a0a0a;
  --ink-2: #111111;
  --hoodie: #161616;
  --flame: #f4f4f4;
  --flame-deep: #ffffff;
  --ember: rgba(244, 244, 244, 0.68);
  --paper: #f4f4f4;
  --paper-dim: rgba(244, 244, 244, 0.62);
  --rust: #8a8a8a;
  --steel: #8a8a8a;
  --line: rgba(244, 244, 244, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Dela Gothic One", Impact, "Arial Black", sans-serif;
  --font-body: Outfit, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --fs-hero: clamp(64px, 14vw, 196px);
  --fs-display: clamp(44px, 9vw, 120px);
  --fs-title: clamp(32px, 5.6vw, 72px);
  --fs-body: 1.125rem;
  --fs-caption: 1.125rem;
  --fs-lockup: clamp(1.55rem, 3.8vw, 2.85rem);
  --fs-kicker: 0.625rem;
  --fs-ui: 0.72rem;
  --lh-display: 0.88;
  --lh-title: 1.04;
  --lh-lockup: 0.98;
  --lh-body: 1.55;
  --track-ui: 0.16em;
  --track-kicker: 0.22em;
  --track-lockup: -0.035em;
  --pad: clamp(20px, 6vw, 88px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html {
  scroll-behavior: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--flame);
  color: var(--ink);
}

.skip:focus {
  top: 16px;
}

/* Preloader */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.load-mark {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
}

.load-mark img {
  position: absolute;
  inset: 8px;
  width: 72px;
  height: 72px;
  border-radius: 0;
}

.loader-ring {
  position: absolute;
  inset: 0;
  width: 88px;
  height: 88px;
  transform-origin: center;
  animation: spin 0.9s linear infinite;
}

.loader-ring circle {
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 72 180;
}

.load-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-ui);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: var(--ember);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Nav */

.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  height: 48px;
  padding: 0 16px 0 10px;
  background: rgba(5, 7, 13, 0.48);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  border-radius: 999px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.nav.is-away {
  transform: translateX(-50%) translateY(-80px);
  opacity: 0;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-mark img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: var(--paper-dim);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
}

.nav-links .nav-app {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--flame);
  color: var(--ink);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links .nav-app:hover {
  background: var(--ember);
  color: var(--ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-flame {
  background: var(--flame);
  color: var(--ink);
}

.btn-flame:hover {
  background: var(--flame-deep);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

/* 404 */

.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.lost img {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
}

.lost h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.lost p {
  color: var(--paper-dim);
  margin: 0;
}

.lost-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .nav {
    gap: 10px;
    padding: 0 8px 0 8px;
  }

  .nav-mark {
    font-size: 0.82rem;
  }

  .nav-links a:not(.nav-app):not(.nav-01) {
    display: none;
  }

  .nav-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-ring,
  .chat-msg.is-wait i,
  .chat-fab.is-call,
  .chat-nudge.is-typing::after {
    animation: none;
  }

  .preloader {
    display: none;
  }

  .nav {
    transition: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-root {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  font-family: "IBM Plex Sans", Outfit, system-ui, sans-serif;
  transition: bottom 0.25s var(--ease);
}

.chat-root.is-lift {
  bottom: max(76px, calc(64px + env(safe-area-inset-bottom)));
}

.chat-root.is-docked {
  position: relative;
  inset: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-root.is-docked .chat-fab,
.chat-root.is-docked .chat-nudge,
.chat-root.is-docked .chat-x {
  display: none;
}

.chat-root.is-docked .chat-panel {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.chat-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--paper);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.chat-fab img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-fab span {
  font-family: var(--font-mono);
  font-size: var(--fs-ui);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
}

.chat-fab:hover {
  border-color: var(--ember);
}

.chat-fab.is-call {
  animation: chat-call 0.9s ease-out 3;
}

.chat-nudge {
  position: absolute;
  right: 0;
  bottom: 70px;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 12px 12px 4px 12px;
  background: #1a2740;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.chat-nudge[hidden] {
  display: none;
}

.chat-nudge.is-typing::after {
  content: "▍";
  margin-left: 1px;
  animation: caret 0.8s step-end infinite;
}

@keyframes chat-call {
  50% {
    box-shadow: 0 0 0 8px rgba(244, 244, 244, 0.3);
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab.is-call,
  .chat-nudge.is-typing::after {
    animation: none;
  }
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(440px, calc(100vw - 20px));
  height: min(640px, calc(100dvh - 110px));
  max-height: calc(100dvh - 110px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #141821;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-who img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}

.chat-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.chat-sub {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.chat-x {
  min-height: 32px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 100%;
  font-family: "IBM Plex Sans", Outfit, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
}

.chat-bot {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  align-self: stretch;
  padding: 0;
  background: none;
  color: var(--paper);
}

.chat-face {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  margin-top: 2px;
}

.chat-col {
  min-width: 0;
}

.chat-name {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}

.chat-bubble {
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--paper);
}

.chat-bubble a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--line);
  color: var(--ember);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.chat-bubble a:hover,
.chat-bubble a:focus-visible {
  border-color: var(--ember);
  color: var(--flame);
}

.chat-user {
  align-self: flex-end;
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(244, 244, 244, 0.1);
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg.is-wait .chat-bubble {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  min-width: 48px;
}

.chat-msg.is-wait i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  animation: wait-dot 1s ease-in-out infinite;
}

.chat-msg.is-wait i:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-msg.is-wait i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes wait-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}



.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  flex: none;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0a0a;
  color: var(--paper);
  font-family: "IBM Plex Sans", Outfit, system-ui, sans-serif;
  font-size: 0.92rem;
}

.chat-form input::placeholder {
  color: rgba(244, 244, 244, 0.4);
}

.chat-form button {
  flex: none;
  min-width: 72px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--flame);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chat-form button:disabled,
.chat-form input:disabled {
  opacity: 0.45;
}

.chat-hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 4px 48px;
  padding: 0;
}

.chat-hints[hidden] {
  display: none;
}

.chat-hints button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.04);
  font-family: "IBM Plex Sans", Outfit, system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--paper);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.chat-hints button:hover,
.chat-hints button:focus-visible {
  border-color: var(--ember);
  color: var(--ember);
  background: rgba(244, 244, 244, 0.08);
}

.chat-bubble.is-md {
  font-size: 0.86rem;
  line-height: 1.55;
}

.chat-md-block,
.chat-bubble p,
.chat-bubble ul,
.chat-bubble ol,
.chat-bubble .chat-table {
  margin: 0 0 0.7em;
}

.chat-bubble p:last-child,
.chat-bubble ul:last-child,
.chat-bubble ol:last-child,
.chat-bubble .chat-table:last-child,
.chat-bubble h1:last-child,
.chat-bubble h2:last-child,
.chat-bubble h3:last-child {
  margin-bottom: 0;
}

.chat-bubble h1,
.chat-bubble h2,
.chat-bubble h3 {
  margin: 1.1em 0 0.45em;
  font-family: "IBM Plex Sans", Outfit, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.25;
}

.chat-bubble h1:first-child,
.chat-bubble h2:first-child,
.chat-bubble h3:first-child {
  margin-top: 0;
}

.chat-bubble h1 {
  font-size: 1.05rem;
}

.chat-bubble h2 {
  font-size: 0.92rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.chat-bubble h3 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember);
}

.chat-bubble ul,
.chat-bubble ol {
  padding-left: 1.15em;
}

.chat-bubble li + li {
  margin-top: 0.28em;
}

.chat-bubble strong {
  font-weight: 600;
  color: var(--paper);
}

.chat-bubble hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.9em 0;
}

.chat-bubble code,
.chat-addr {
  font-family: var(--font-mono);
  font-size: 0.74em;
  word-break: break-all;
  color: var(--ember);
}

.chat-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.chat-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.35;
}

.chat-table th,
.chat-table td {
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}

.chat-table th {
  color: var(--paper-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(244, 244, 244, 0.04);
}

.chat-table tr:last-child td {
  border-bottom: 0;
}


