html {
  scroll-behavior: smooth;
}

:root {
  --ink: #121417;
  --muted: #666d78;
  --soft: #f6f8f8;
  --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;
}

.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);
}


  .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: grid;
  place-items: center;
  padding: 96px 24px 84px;
}

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

.brand-eyebrow,
.section-eyebrow,
.specimen__label {
  margin: 0;
  color: rgba(18, 20, 23, 0.56);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-headline {
  margin: 22px auto 0;
  max-width: 1040px;
  font-size: 4rem;
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.brand-headline__base {
  display: inline;
  color: transparent;
  background: linear-gradient(135deg, #1d1d1f 0%, #0f766e 52%, #65a30d 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.simple-word {
  display: inline-block;
  white-space: nowrap;
}

.simple-word--hero {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: #0b0f0f;
}

.brand-copy {
  max-width: 620px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: break-word;
}

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

.brand-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.brand-button:hover {
  background: #000000;
  transform: translateY(-2px);
}

.brand-button--secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand-button--secondary:hover {
  background: #ffffff;
}


img {
  user-select: none;
  pointer-events: none;
}


.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: 6.8rem;
  }
}

@media (max-width: 1024px) {

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

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

  .brand-copy {
    max-width: 560px;
    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: 138px 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, 8vw, 2.55rem);
    line-height: 1.05;

    overflow-wrap: anywhere;
    word-break: break-word;
  }

    .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: 2.35rem;
  }

  .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;
}

