/* ============================================================
   Akhal Teke — resume site
   Theme: full-bleed alpine scenes + floating frosted-glass panels.
   Type:  Sora (display) · Inter (body) · JetBrains Mono (labels)
          Noto Sans Old Turkic (runic ornaments)
   ============================================================ */
:root {
  --night:    #0B1116;
  --night-2:  #101920;
  --slate:    #1B2830;

  --mist:     #EDF3F7;
  --mist-2:   rgba(237, 243, 247, 0.74);
  --mist-3:   rgba(237, 243, 247, 0.46);

  --glass:    rgba(9, 15, 20, 0.44);
  --glass-2:  rgba(9, 15, 20, 0.62);
  --glass-3:  rgba(255, 255, 255, 0.07);

  --line:     rgba(255, 255, 255, 0.16);
  --line-2:   rgba(255, 255, 255, 0.09);

  --sky:      #7FB6DE;
  --sky-2:    #BEDFF4;
  --sand:     #E6C89C;

  --radius:    20px;
  --radius-sm: 13px;
  --radius-lg: 26px;
  --max-w:     1280px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-sans:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-rune:    "Noto Sans Old Turkic", "Sora", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--night);
  color: var(--mist);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

em {
  font-style: normal;
  color: var(--sky-2);
}

::selection { background: var(--sky); color: var(--night); }

/* ============================================================
   SCENE — full-bleed photo + floating panel
   ============================================================ */
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vh, 56px) clamp(14px, 3vw, 48px);
  overflow: hidden;
  isolation: isolate;
}

.scene__bg { position: absolute; inset: 0; z-index: 0; }

.scene__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene--hero .scene__photo { will-change: transform; }

.scene__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 17, 0.62) 0%, rgba(8, 13, 17, 0.18) 34%, rgba(8, 13, 17, 0.52) 100%),
    linear-gradient(90deg, rgba(8, 13, 17, 0.5) 0%, rgba(8, 13, 17, 0.06) 55%, rgba(8, 13, 17, 0.4) 100%);
}
.scene__scrim--soft {
  background: linear-gradient(180deg, rgba(8, 13, 17, 0.7) 0%, rgba(8, 13, 17, 0.52) 50%, rgba(8, 13, 17, 0.74) 100%);
}
.scene__scrim--deep {
  background: linear-gradient(180deg, rgba(6, 10, 13, 0.86) 0%, rgba(6, 10, 13, 0.7) 50%, rgba(6, 10, 13, 0.88) 100%);
}

/* ---------- the glass panel ---------- */
.panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 40px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09) 0%, rgba(9, 15, 20, 0.4) 38%, rgba(9, 15, 20, 0.56) 100%);
  border: 1px solid var(--line);
  /* Blur radius is the single biggest cost of backdrop-filter — a large
     radius over a large panel is re-rasterised on every scroll frame.
     14px over 24px looks nearly identical here and costs far less. */
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow:
    0 50px 130px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.panel--hero { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.panel--contact { text-align: center; max-width: 880px; }
.panel--footer {
  max-width: var(--max-w);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 2.4vw, 32px);
  border-radius: var(--radius);
  background: rgba(9, 15, 20, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(150deg, #152029 0%, #08090C 100%);
  border: 1px solid rgba(127, 182, 222, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.brand__glyph { width: 26px; height: 26px; display: block; }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__runes {
  font-family: var(--font-rune);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--sky);
  opacity: 0.75;
  line-height: 1;
}

.nav__links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mist-2);
  transition: color 0.25s;
}
.nav__link:hover { color: var(--mist); }
.nav__link.is-active { color: var(--mist); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--sky-2);
}
.nav__link .roll { display: block; overflow: hidden; height: 1.4em; }
.nav__link .roll__track { display: block; will-change: transform; }
.nav__link .roll__t { display: block; line-height: 1.4; }

.nav__cta { padding: 11px 22px; font-size: 0.82rem; }

/* ---------- mobile menu ---------- */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass-3);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--mist);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: 16px; left: 14px; right: 14px;
  z-index: 95;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(10, 16, 21, 0.95);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.nav__mobile[hidden] { display: none !important; }
.nav__mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mist-2);
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s;
}
.nav__mobile a:hover { background: var(--glass-3); color: var(--mist); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
}
.btn--dark {
  background: var(--night);
  color: var(--mist);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}
.btn--dark:hover { background: #16222B; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.btn--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line);
  color: var(--mist);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.34); }
.btn:not([data-magnetized]):hover { transform: translateY(-3px); }
.btn:not([data-magnetized]):active { transform: scale(0.96); }

.play {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mist);
  padding: 6px 4px;
  transition: color 0.25s;
}
.play:hover { color: var(--sky-2); }
.play__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.play:hover .play__icon { background: rgba(255, 255, 255, 0.2); transform: scale(1.06); }

/* ============================================================
   HERO
   ============================================================ */
.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-2);
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(127, 182, 222, 0.2);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(127, 182, 222, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(127, 182, 222, 0.05); }
}

.hero__title {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.overflow-mask { overflow: hidden; margin-top: 18px; }
.hero__lead {
  max-width: 48ch;
  color: var(--mist-2);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.75;
}

.hero__actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- the stack card ---------- */
.stack {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.stack__head { margin-bottom: 12px; }
.stack__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky-2);
}
.stack__list { list-style: none; display: flex; flex-direction: column; }
.stack__list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
  transition: color 0.3s;
}
.stack__list li:hover { color: var(--mist-2); }
.stack__k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sky-2);
  width: 76px;
  flex-shrink: 0;
}
.stack__v { font-size: 0.87rem; color: var(--mist-2); line-height: 1.5; }
.stack__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stack__chip {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(127, 182, 222, 0.13);
  border: 1px solid rgba(127, 182, 222, 0.28);
  color: var(--sky-2);
}

/* ---------- hero footer: chips + socials ---------- */
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.chips { display: flex; gap: 14px; flex-wrap: wrap; }
.chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 240px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 13, 0.42);
  border: 1px solid var(--line-2);
}
.chip__k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-2);
}
.chip__v { font-size: 0.82rem; line-height: 1.45; color: var(--mist-2); }

.socials { display: flex; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(6, 10, 13, 0.42);
  border: 1px solid var(--line-2);
  color: var(--mist-2);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.social:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--line);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-2);
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(127, 182, 222, 0.12);
  border: 1px solid rgba(127, 182, 222, 0.3);
  margin-bottom: 18px;
}
.badge__rune { font-family: var(--font-rune); font-size: 0.95rem; line-height: 1; color: var(--mist); }

.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: clamp(16px, 2vw, 22px);
  max-width: 20ch;
  text-wrap: balance;
}
.section__lead {
  max-width: 62ch;
  color: var(--mist-2);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.75;
  margin-bottom: clamp(26px, 3vw, 40px);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.about__text {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--mist-2);
  max-width: 52ch;
  line-height: 1.85;
}
.about__text .split-word {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-2);
  color: var(--mist);
  overflow-wrap: break-word;
  max-width: 100%;
}
.about__text .split-word:hover {
  background: rgba(127, 182, 222, 0.18);
  border-color: rgba(127, 182, 222, 0.5);
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 24px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line);
}
/* icon tile — a designed app-icon block rather than a floating emoji */
.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(127, 182, 222, 0.12);
  border: 1px solid rgba(127, 182, 222, 0.24);
  color: var(--sky-2);
  margin-bottom: 4px;
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s, color 0.4s;
}
.card__icon svg { width: 25px; height: 25px; display: block; }
.card:hover .card__icon {
  transform: translateY(-3px) scale(1.05);
  background: rgba(127, 182, 222, 0.2);
  border-color: rgba(127, 182, 222, 0.45);
  color: #fff;
}
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.card__sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--mist-3); letter-spacing: 0.02em; }

/* ============================================================
   PROJECTS
   ============================================================ */
.works { display: flex; flex-direction: column; gap: 12px; }
.work {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: 20px clamp(16px, 2vw, 26px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  transition: background 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
}
.work:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line);
  transform: translateX(6px);
}
.work__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  color: var(--sky);
  opacity: 0.75;
  flex-shrink: 0;
}
.work__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.work__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
}
.work__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--mist-3);
  max-width: 74ch;
  transition: color 0.35s;
}
.work:hover .work__desc { color: var(--mist-2); }
.work__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.work__tags i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(127, 182, 222, 0.14);
  border: 1px solid rgba(127, 182, 222, 0.26);
  color: var(--sky-2);
}
.work__arrow {
  font-size: 1.2rem;
  color: var(--mist-3);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), color 0.35s;
}
.work:hover .work__arrow { transform: translateX(5px); color: var(--sky-2); }

/* ============================================================
   SKILLS
   ============================================================ */
.skill-rows { display: flex; flex-direction: column; gap: 16px; }
.skill-row {
  overflow: hidden;
  padding: 15px 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
}
.skill-row--a { transform: rotate(-1.4deg); }
.skill-row--b { transform: rotate(1deg); }
.skill-row--c { transform: rotate(-0.8deg); }
.skill-row--d { transform: rotate(0.6deg); }

.skill-row__track { display: flex; width: max-content; will-change: transform; }
.skill-row__group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  color: var(--mist);
  white-space: nowrap;
}
.tag__dot {
  width: 15px; height: 15px;
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  background: var(--sky);
  flex-shrink: 0;
}
.tag__dot--b { border-radius: 999px; background: var(--sand); }
.tag__dot--c { border-radius: 4px; transform: rotate(18deg); background: var(--mist-3); }
.tag__dot--d { border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%; background: var(--sky); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 18px;
}
.contact__text {
  color: var(--mist-2);
  max-width: 48ch;
  margin: 0 auto 32px;
  font-size: 1.02rem;
}
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.contact__link {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.contact__link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--sky);
  color: var(--sky-2);
  transform: translateY(-3px);
}
.contact__cta { font-size: 1rem; padding: 16px 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 0 clamp(14px, 3vw, 48px) 28px; background: var(--night); }
.footer .panel {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mist-3);
}
.footer__runes {
  font-family: var(--font-rune);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--mist-3);
  opacity: 0.6;
}
.footer__top { color: var(--sky-2); font-weight: 700; transition: color 0.25s; }
.footer__top:hover { color: #fff; }

/* ============================================================
   SHOWREEL — terminal overlay
   ============================================================ */
.reel {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 9, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
}
.reel.is-open { visibility: visible; }

.reel__card {
  position: relative;
  width: min(720px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 16, 21, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.65);
}
.reel__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line-2);
}
.reel__dot { width: 11px; height: 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }
.reel__dot:nth-child(1) { background: #E0705A; }
.reel__dot:nth-child(2) { background: #E0B45A; }
.reel__dot:nth-child(3) { background: #6FBF8E; }
.reel__title {
  margin-left: 10px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--mist-3);
}
.reel__body {
  padding: 22px 20px 26px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.85;
  min-height: 260px;
}
.reel__cmd { color: var(--mist); }
.reel__prompt { color: var(--sky); margin-right: 8px; }
.reel__typed { color: var(--mist); }
.reel__caret {
  display: inline-block;
  width: 8px; height: 1.1em;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--sky);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.reel__out { color: var(--mist-3); padding-left: 18px; }
.reel__close {
  position: absolute;
  top: 11px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mist-3);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  transition: color 0.25s, border-color 0.25s;
}
.reel__close:hover { color: var(--mist); border-color: var(--line); }

/* ============================================================
   SECTION TITLE UNDERLINE (draw-on)
   ============================================================ */
.title-underline {
  display: block;
  width: min(220px, 55%);
  height: 11px;
  margin-top: 14px;
  overflow: visible;
}
.title-underline path {
  stroke: var(--sky);
  stroke-width: 3.4;
  stroke-linecap: round;
  fill: none;
}

em .split-word, em .split-char {
  color: var(--sky-2);
}

.split-line { will-change: transform; }

/* if GSAP never runs, never leave the hero invisible */
.hero--fallback-visible .scene__bg,
.hero--fallback-visible .panel--hero,
.hero--fallback-visible .nav,
.hero--fallback-visible .eyebrow,
.hero--fallback-visible .hero__title,
.hero--fallback-visible .hero__lead,
.hero--fallback-visible .hero__actions,
.hero--fallback-visible .stack,
.hero--fallback-visible .chips,
.hero--fallback-visible .socials,
.hero--fallback-visible .panel,
.hero--fallback-visible [data-reveal] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 100;
  pointer-events: none;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--night);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; width: min(240px, 66vw); }
.preloader__rune {
  font-family: var(--font-rune);
  font-size: 44px;
  line-height: 1;
  color: var(--sky-2);
}
.preloader__bar { width: 100%; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; }
.preloader__fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--sky-2));
  transform: scaleX(0); transform-origin: 0 50%;
}
.preloader__count {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.18em; color: var(--mist-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path fill='%23FFF' stroke='%23000' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/></svg>") 4 4, url("../assets/arrow-cursor.svg") 4 4, auto;
  }
  a, button, .btn, [data-cursor], .social, .work, .nav__link, .contact__link, .footer__top {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path fill='%23FFF' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z'/></svg>") 12 4, url("../assets/hand-pointer.svg") 12 4, pointer;
  }
}

.click-particle {
  position: fixed; z-index: 250;
  width: 8px; height: 8px; border-radius: 50%;
  pointer-events: none; will-change: transform, opacity;
}
.magnet-label { display: inline-block; will-change: transform; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow__dot { animation: none; }
  .preloader { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero__body { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .stack { max-width: 460px; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 16px 18px; }
  .card__icon { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; margin-bottom: 0; }
  .card__icon svg { width: 22px; height: 22px; }
  .card__sub { margin-left: auto; text-align: right; }
}

@media (max-width: 620px) {
  .panel { padding: 20px 16px; border-radius: 20px; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 18px; }
  .chip { max-width: none; }
  .socials { justify-content: flex-start; }
  .work { flex-wrap: wrap; }
  .work__arrow { display: none; }
  .brand__runes { display: none; }
  .footer .panel { flex-direction: column; text-align: center; gap: 10px; }
}
