html {
  scroll-behavior: smooth;
}

:root {
  --ink: #121417;
  --muted: #666d78;
  --soft: #f6f8f8;
  --soft-80: rgb(246 248 248 / 70%);
  --line: rgba(18, 20, 23, 0.1);
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --lime: #a3e635;
}

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

body {
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
}

main,
section,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);

  transition: all .3s ease;
}

/* только первый экран */
.site-header.hero-mode {
  background: transparent !important;
  backdrop-filter: none !important;
  border-color: transparent !important;
}

/* текст поверх тёмного hero */
.site-header {
  --text: #6b7280;
  --logo: #111827;
}

.site-header a,
.site-header button {
  color: var(--text);
}

.site-header .site-logo {
  color: var(--logo);
}

.site-header.hero-mode {
  --text: rgba(255,255,255,.75);
  --logo: #fff;
}

/* состояние после скролла */
.site-header.scrolled {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* текст становится тёмным */
.site-header.scrolled,
.site-header.scrolled a,
.site-header.scrolled button, 
.site-header.scrolled .jedi-social-icon {
  color: #21252e;
}

/* вторичный текст */
.site-header nav {
  color: rgba(255,255,255,.65);
}

.site-header.scrolled nav {
  color: #6b7280;
}

/* HERO MODE */

.hero-mode {
  background: transparent;
  border-color: transparent;
}

.hero-mode .site-logo,
.hero-mode .jedi-social-icon,
.hero-mode #mobileMenuToggle {
  color: white;
}

/* обычные пункты меню */

.hero-mode nav a,
.hero-mode nav button {
  color: rgba(255,255,255,.75);
}

.hero-mode nav a:hover,
.hero-mode nav button:hover {
  color: #2dd4bf; /* фирменный лайм */
}

/* стрелка у Еще */

.hero-mode svg {
  color: inherit;
}

.hero-mode .dropdown-panel {
  background: rgba(15,15,15,.92);
  border-color: rgba(255,255,255,.08);
  backdrop-filter: blur(24px);
}

.hero-mode .dropdown-panel a {
  color: rgba(255,255,255,.85);
}

.hero-mode .dropdown-panel a:hover {
  background: rgba(255,255,255,.05);
  color: #2dd4bf;
}

.hero-mode .lang-switcher {
  background: rgba(255,255,255,.08);
}

.hero-mode .lang-switcher span {
  background: rgba(255,255,255,.14);
  color: white;
}

.hero-mode .lang-switcher a {
  color: rgba(255,255,255,.7);
}

.hero-mode .lang-switcher a:hover {
  color: #2dd4bf;
}

header.hero-mode .jedi-social-icon:hover {
  color: #2dd4bf !important;
}

header.hero-mode #mobileMenu {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.hero-mode #mobileMenu nav {
  color: rgba(255, 255, 255, 0.9);
}

header.hero-mode #mobileMenu a:hover {
  color: #2dd4bf;
}

header.hero-mode #mobileMenu .h-px {
  background: rgba(255, 255, 255, 0.08);
}

header.hero-mode #mobileMenu .jedi-social-icon {
  color: rgba(255, 255, 255, 0.9);
}

header.hero-mode #mobileMenu .jedi-social-icon:hover {
  color: #2dd4bf;
}
/**
.laser-background {
  --laser-tilt: -12deg;
  --laser-cross-tilt: 13deg;
  --laser-shift: -21px;
  --laser-shift-reverse: 21px;

  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
  mix-blend-mode: multiply;
  transition: opacity 180ms ease;
}

.laser-background.is-scrolling {
  opacity: 0.7;
}

.laser-background::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 920px);
  height: min(72vw, 920px);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(94, 234, 212, 0.24) 0%, rgba(34, 211, 238, 0.13) 32%, rgba(163, 230, 53, 0.1) 52%, transparent 72%);
  filter: blur(24px);
  transform: translate(-50%, -50%);
}

.laser-background::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 3%, rgba(94, 234, 212, 0.34) 4% 22%, rgba(163, 230, 53, 0.13) 38%, transparent 68%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

.laser-background__beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(132vw, 1680px);
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0) 11%, rgba(34, 211, 238, 0.72) 36%, rgba(94, 234, 212, 0.95) 50%, rgba(163, 230, 53, 0.76) 64%, rgba(163, 230, 53, 0) 89%, transparent 100%);
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.5),
    0 0 26px rgba(94, 234, 212, 0.34),
    0 0 46px rgba(163, 230, 53, 0.22);
  transform: translate(-50%, calc(-50% + var(--laser-shift))) rotate(var(--laser-tilt));
  transform-origin: 50% 50%;
}

.laser-background__beam--secondary {
  width: min(112vw, 1420px);
  height: 1px;
  opacity: 0.55;
  filter: blur(0.2px);
  transform: translate(-50%, calc(-50% + var(--laser-shift-reverse))) rotate(var(--laser-cross-tilt));
}

.laser-background__flare {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(28vw, 360px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.75), transparent);
  filter: blur(0.4px);
  opacity: 0.58;
  transform-origin: 0 50%;
}

.laser-background__flare--one {
  transform: translate(-6px, -50%) rotate(58deg);
}

.laser-background__flare--two {
  transform: translate(-6px, -50%) rotate(122deg);
  background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.64), transparent);
}
mobileMenuToggle

  .laser-background.is-scrolling {
    opacity: 0.58;
  }

  .laser-background__beam {
    width: 150vw;
  }
}
*/

    /* Fade-in animations */
    .fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
  .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

    /* Card interactions */
    .project-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
    .project-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); }
    
    /* Image placeholders */
    .img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ca3af; text-align: center; padding: 20px; }
 

/* Контейнер-строка */
.social-row-isolated {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 10px !important;
    width: auto !important;
}

/* Сама иконка-ссылка */
.jedi-social-icon {
    display: inline-flex !important;
    text-decoration: none !important;
    /* Устанавливаем базовый цвет (например, серый) */
    color: #888888 !important; 
    transition: all 0.2s ease-in-out !important;
}

/* Эффект при наведении */
.jedi-social-icon:hover {
    /* Цвет при наведении (черный или акцентный) */
    color: #000000 !important; 
    transform: translateY(-2px) !important;
}

/* Чтобы SVG слушался цвета ссылки */
.jedi-social-icon svg {
    stroke: currentColor !important;
}

/* Главная секция текст*/
.brand-shell {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 24px 84px;
}
.brand-shell__content {
  position: relative;
}

.brand-shell__content {
  width: min(1280px, 100%);
  text-align: left;
}

.brand-eyebrow,
.section-eyebrow,
.specimen__label {
  margin: 0;
  padding-left: 6px;
  padding-bottom: 10px;
  color: rgba(221, 221, 221, 0.56);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-eyebrow {
  letter-spacing: 0.14em;
  opacity: 0.5;
}

.brand-headline {
  font-size: clamp(3rem, 8vw, 10rem);
  line-height: 0.95;
  font-weight: 300;
}

.brand-headline__base {
  display: inline;
  color: transparent;
  background: linear-gradient(
  325deg,
  #7AC0FF 0%,
  #42E3B4 40%,
  #4BE87B 70%,
  #A0E720 100%
);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.simple-word {
  display: inline-block;
  /**white-space: nowrap;*/
  font-size: clamp(1.25rem, 5vw, 2rem);
  line-height: 1.2;
}

.simple-word--hero {
  
  font-style: italic;
  font-weight: 500;
  color: #ffffff;
} 

.brand-copy {
  max-width: 560px;
  margin: 0;
  color: var(--soft-80);
  font-size: 1.1rem;
  line-height: 1.75;
  font-weight: 500;
  overflow-wrap: break-word;
  margin-top: 10px;
  opacity: 0.72;
}

.brand-actions {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* 1. БАЗА (Общая структура) */
.brand-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

/* 2. ЦВЕТА (Разделяем основную и вторичную) */

/* Белая кнопка (View Projects) */
/* Используем :not, чтобы белым не закрасило вторую кнопку */
.brand-actions .brand-button:not(.brand-button--secondary) {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Прозрачная кнопка (Hire Me) */
.brand-button--secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  backdrop-filter: blur(15px);
}

/* 3. ХОВЕР (Твой зеленый #2dd4bf) */
/* Один блок для всех состояний наведения и клика */
.brand-actions .brand-button:hover,
.brand-actions .brand-button:active,
.brand-actions .brand-button:focus {
  background: #2dd4bf !important;
  color: #0a0a0a !important;
  border-color: #2dd4bf !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(45, 212, 191, 0.4) !important;
}

/* Опционально: легкий зеленый тинт для прозрачной кнопки при наведении */
.brand-actions .brand-button--secondary:hover {
  background: rgba(45, 212, 191, 0.15) !important;
  color: #2dd4bf !important;
}

/* HERO MODE */
.site-header.hero-mode ~ * .brand-button {
  background: #ffffff;
  color: #111827;
}

.site-header.hero-mode ~ * .brand-button:hover {
  background: #2dd4bf;
  color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(45, 212, 191, 0.25);
}

/* HERO MODE */
.site-header.hero-mode ~ * .brand-button--secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.site-header.hero-mode ~ * .brand-button--secondary:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: #2dd4bf;
  color: #2dd4bf;
}

/* HERO MODE */
.site-header.hero-mode ~ * .brand-button--ghost {
  color: rgba(255,255,255,.7);
}

.site-header.hero-mode ~ * .brand-button--ghost:hover {
  color: #2dd4bf;
}

img {
  user-select: none;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

@media (max-width: 1024px) {
  img {
    transform: translateY(-10px);
  }
}


.video-shell {
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

/* video */
.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay play */
.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.15);
  transition: opacity 0.3s ease;
}

.play-btn {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* CONTROLS (ВАЖНО: видны всегда сначала) */
.video-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 10px;

  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.video-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
}

/* 👉 скрытие при уходе курсора */
.video-shell.hide-ui .video-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* overlay исчезает при play */
.video-shell.is-playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}


@media (min-width: 768px) {
  .brand-headline {
    font-size: 5rem;
  }
}

@media (max-width: 1024px) {

  .brand-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .brand-headline {
    font-size: 4rem;
    line-height: 1;
  }

    .simple-word {
    font-size: 2rem;
    line-height: 1.5;
  }

  .brand-copy {
    max-width: 480px;
    font-size: 1rem;
    line-height: 1.65;
  }

}

@media (max-width: 767px) {
  header > div:first-child {
    width: calc(100vw - 32px);
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .brand-shell {
    min-height: auto;
    padding: 80px 20px 62px;
    overflow-x: hidden;
  }

  .brand-shell__content {
    width: min(calc(100vw - 32px), 358px);
    max-width: min(calc(100vw - 32px), 358px);
    /**margin-left: 16px;
    margin-right: 16px;**/
  }

  .brand-headline {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 16vw, 3.5rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

    .simple-word {
    /*padding-top: 10px;*/
    font-size: 1.75rem;
  }
    .simple-word {
    display: inline;
    white-space: normal;
  }


  .simple-word--hero {
    display: block;
    margin-top: 0.08em;
  }

  .brand-copy {
    width: 100%;
    max-width: 18.75rem;
    font-size: 1rem;
  }

}

@media (max-width: 420px) {
  .brand-headline {
    font-size: 3.25rem;
  }

    .simple-word {
    font-size: 1.5rem;
  }
  
  .specimen__title {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .laser-background {
    opacity: 0.34;
  }

  .laser-background.is-scrolling {
    opacity: 0.58;
  }

  .laser-background__beam {
    width: 150vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laser-background,
  .fade-in,
  .brand-button,
  {
    transition: none !important;
  }
}

.mobile-menu-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mobile-menu-scroll::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
}


@font-face {
  font-family: "Zvezda";
  src: url("../fonts/zvezda-nhzdn-bold-italic.ttf"); format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

.footer {
  padding-bottom: 40px;
  overflow: hidden;
}

.footer-top {
  text-align: center;
  margin-bottom: 60px;
}

.footer-top .name {
  font-size: 22px;
  color: #111;
}

.footer-top .role {
  font-size: 14px;
  color: #888;
  margin-top: 8px;
}

.footer-logo {
  font-family: "Zvezda", sans-serif;

  font-size: 15vw;
  line-height: 1;
  letter-spacing: -0.08em;

  width: 100%;
  text-align: center;
  white-space: nowrap;

  padding-inline: 1vw;
  overflow: hidden;
  transform: scaleY(1.02);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  /**margin-top: 40px;**/
  font-size: 12px;
  color: #aaa;
}

.font-credit {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;

  text-align: center;
  padding: 24px 16px 0;
  opacity: 0.7;
}

/* Уменьшаем основной заголовок на разрешении 1024px и ниже */
@media (max-width: 1024px) {
        .brand-headline__base {
            font-size: clamp(2.75rem, 6vw, 3.75rem) !important; /* Динамический размер: не меньше 2rem, но не больше 3rem */
            line-height: 1;
            /*padding-bottom: 1rem;*/
        }
        /* Также пропорционально уменьшаем вторую строку для баланса */
    .simple-word--hero {
        font-size: clamp(1.25rem, 4vw, 1.25rem) !important;
    }
}