@font-face {
  font-family: 'Makran';
  src: url('../assets/fonts/HFUNP.TTF') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'MakranCaps';
  src: url('../assets/fonts/HFUNCP.TTF') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --title: #FF3B0E;
  --sub: #6b6b6b;
  --hint: #FF3B0E;
  --ic-border: #c4c4c4;
  --ic-color: #9a9a9a;
  --wm-op: 0.055;
  --load-track: rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'Makran', system-ui, sans-serif;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.parallax-layer {
  will-change: transform;
}

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1100px;
  max-width: 130%;
  opacity: var(--wm-op);
  pointer-events: none;
  line-height: 0;
  z-index: 0;
}

.watermark img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    invert(38%) sepia(98%) saturate(3000%) hue-rotate(354deg) brightness(101%) contrast(105%)
    blur(var(--wm-blur, 0px));
  will-change: filter;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  filter: blur(var(--content-blur, 0px));
  will-change: transform, filter;
}

.mk-head {
  margin: 0;
  color: var(--title);
  font-family: 'Makran', sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.28em;
}

.mk-head span {
  display: inline-block;
}

.mk-head .wake-1 { animation: wakeIn 0.9s cubic-bezier(.2, .75, .25, 1) both; animation-delay: 0.05s; }
.mk-head .wake-2 { animation: wakeIn 0.9s cubic-bezier(.2, .75, .25, 1) both; animation-delay: 0.18s; }
.mk-head .wake-3 { animation: wakeIn 0.9s cubic-bezier(.2, .75, .25, 1) both; animation-delay: 0.31s; }
.mk-head .wake-4 { animation: wakeIn 0.9s cubic-bezier(.2, .75, .25, 1) both; animation-delay: 0.44s; }

.mk-sub-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: riseIn 0.8s ease both;
  animation-delay: 0.62s;
}

.mk-sub {
  margin: 0;
  color: var(--sub);
  font-family: 'Makran', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 30px);
  letter-spacing: 0.01em;
  transition: color 0.5s ease;
  min-height: 1.2em;
}

.mk-load-track {
  margin-top: 16px;
  width: min(340px, 88vw);
  height: 4px;
  background: var(--load-track);
  border-radius: 999px;
  overflow: hidden;
}

.mk-load-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--title);
  transition: width 0.1s linear;
}

.mk-load-fill.is-done {
  animation: mkLoadPulse 1.6s ease-in-out infinite;
}

.mk-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 2px;
  vertical-align: -0.05em;
  background: var(--title);
  animation: mkBlink 1s step-end infinite;
}

.mk-cursor.is-hidden {
  display: none;
}

.mk-social-row {
  margin-top: clamp(72px, 16vh, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.mk-social-hint {
  margin: 0;
  color: var(--hint);
  font-family: 'Makran', sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  animation: riseIn 0.8s ease both;
  animation-delay: 0.8s;
  transition: color 0.5s ease;
}

.mk-social-links {
  display: flex;
  gap: 12px;
  animation: riseIn 0.8s ease both;
  animation-delay: 0.95s;
}

.mk-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ic-border);
  color: var(--ic-color);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.5s ease;
}

.mk-social-links a:hover {
  border-color: var(--title);
  color: var(--title);
}

.mk-social-links svg {
  width: 15px;
  height: 15px;
  display: block;
}

@keyframes wakeIn {
  0% { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(9px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes mkBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes mkLoadPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    will-change: auto;
  }
}

@media (max-width: 640px) {
  .mk-head { font-size: 44px !important; line-height: 1.04 !important; }
  .mk-sub { font-size: 18px !important; }
  .mk-social-row { margin-top: 64px !important; }
}
