/* ========================================================
   BLOCK 01: HERO STYLES (ORLOV BASE)
   Scoped strictly under .ob-hero
   ======================================================== */

.ob-hero {
  height: 100svh;
  max-height: 100svh;
  position: sticky;
  top: 0;
  z-index: 1; /* Sticky hero at top */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2.8rem 1.8rem 2.8rem;
  box-sizing: border-box;
  will-change: transform, opacity;
  background-color: var(--color-bg);
}

@media (max-width: 860px) {
  .ob-hero {
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
  }
}

/* ========================================================
   TOP HEADER NAVIGATION
   ======================================================== */
.ob-hero .ob-hero__nav,
.ob-hero .site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.6rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 860px) {
  .ob-hero .ob-hero__nav,
  .ob-hero .site-nav {
    padding: 1rem 1.25rem;
  }
}

.ob-hero .ob-hero__brand,
.ob-hero .brand-monogram {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.ob-hero .ob-hero__brand-dot,
.ob-hero .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

/* ПАНЕЛЬ КЕРУВАННЯ В ХЕДЕРІ */
.ob-hero .ob-hero__controls,
.ob-hero .controls-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* ГОЛОВНЕ МЕНЮ НАВІГАЦІЇ В ХЕДЕРІ */
.ob-hero .ob-hero__menu,
.ob-hero .hero-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 3px 6px;
}

.ob-hero .ob-hero__menu-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ob-hero .ob-hero__menu-link:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 960px) {
  .ob-hero .ob-hero__menu-link {
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (max-width: 860px) {
  .ob-hero .ob-hero__menu,
  .ob-hero .hero-menu {
    display: none;
  }
}

.ob-hero .ob-hero__variant-bar,
.ob-hero .variant-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.ob-hero .ob-hero__v-pill,
.ob-hero .v-pill {
  border: none;
  background: transparent;
  color: #555;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ob-hero .ob-hero__v-pill:hover,
.ob-hero .v-pill:hover {
  color: #000;
  background: rgba(255, 255, 255, 0.6);
}

.ob-hero .ob-hero__v-pill.active,
.ob-hero .v-pill.active {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ПЕРЕМИКАЧ СТИЛЮ: ПОСТЕР 1:1 VS МАНІФЕСТ ДІЇ */
.ob-hero .ob-hero__style-bar,
.ob-hero .style-bar {
  display: flex;
  align-items: center;
  background: rgba(45, 196, 107, 0.12);
  border: 1px solid rgba(45, 196, 107, 0.3);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.ob-hero .ob-hero__s-pill,
.ob-hero .s-pill {
  border: none;
  background: transparent;
  color: #1a4d2e;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ob-hero .ob-hero__s-pill:hover,
.ob-hero .s-pill:hover {
  color: #000;
}

.ob-hero .ob-hero__s-pill.active,
.ob-hero .s-pill.active {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Хедер справа: Ч/Б перемикач + кнопка Start */
.ob-hero .ob-hero__nav-actions,
.ob-hero .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ob-hero .ob-hero__theme-toggle,
.ob-hero .theme-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 3px;
}

.ob-hero .ob-hero__mode-btn,
.ob-hero .mode-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 9999px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}

.ob-hero .ob-hero__mode-btn.active,
.ob-hero .mode-btn.active {
  background: #ffffff;
  color: #000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ob-hero .ob-hero__cta-btn,
.ob-hero .nav-cta-btn {
  background: #000000;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 9999px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
}

.ob-hero .ob-hero__cta-btn:hover,
.ob-hero .nav-cta-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

/* Mobile Menu button in top navigation (matches reference MENU =) */
.ob-hero .ob-hero__mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
}

.ob-hero .ob-hero__mobile-menu-btn:hover {
  background: #222222;
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .ob-hero .ob-hero__cta-btn,
  .ob-hero .nav-cta-btn {
    display: none !important;
  }
  .ob-hero .ob-hero__mobile-menu-btn {
    display: inline-flex;
  }
}

.ob-hero .ob-hero__cta-avatar,
.ob-hero .cta-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #333;
}

.ob-hero .ob-hero__cta-avatar img,
.ob-hero .cta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* ========================================================
   ТОЧНА ФОРМУЛА ГРАДІЄНТА (.brand-glow.is-overlay) З САЙТУ:
   z-index: 20 (ЛЕЖИТЬ ПОВЕРХ ФОТОГРАФІЇ СВІТШОТА!)
   ======================================================== */
.ob-hero .ob-hero__glow,
.ob-hero .brand-glow {
  --glow-rgb: 45, 196, 107; /* смарагдовий Orlov Base */
  --gradient-arch-x: 85%;
  --gradient-arch: 70%;
  --gradient-rim: 12%;
  --gradient-mid: 14%;
  --gradient-deep: 26%;
  --gradient-fade: 44%;
  --gradient-radial-mid: 36%;
  --gradient-radial-end: 68%;
  
  z-index: 20; /* поверх фото! */
  pointer-events: none;
  transform-origin: 50% 100%;
  background-image: 
    linear-gradient(to top, rgba(var(--glow-rgb), 0.32) 0%, rgba(var(--glow-rgb), 0) var(--gradient-rim)),
    radial-gradient(var(--gradient-arch-x) var(--gradient-arch) at 50% 100%, rgba(var(--glow-rgb), 0.52), rgba(var(--glow-rgb), 0.24) var(--gradient-radial-mid), rgba(var(--glow-rgb), 0) var(--gradient-radial-end)),
    linear-gradient(to top, rgba(var(--glow-rgb), 0.44) 0%, rgba(var(--glow-rgb), 0.30) var(--gradient-mid), rgba(var(--glow-rgb), 0.12) var(--gradient-deep), rgba(var(--glow-rgb), 0) var(--gradient-fade));
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

@media (max-width: 768px) {
  .ob-hero .ob-hero__glow,
  .ob-hero .brand-glow {
    --gradient-arch-x: 100%;
    --gradient-arch: 85%;
    --gradient-mid: 20%;
    --gradient-deep: 34%;
    --gradient-fade: 52%;
    --gradient-radial-mid: 42%;
    --gradient-radial-end: 78%;
  }
}

/* ========================================================
   ФОТОГРАФІЯ (.hero-media & .hero-image)
   ======================================================== */
.ob-hero .ob-hero__media,
.ob-hero .hero-media {
  z-index: 10;
  pointer-events: none;
  height: 100svh;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ob-hero .ob-hero__image,
.ob-hero .hero-image {
  position: absolute;
  inset: auto 0 0;
  left: 52%;
  transform: translateX(-50%);
  height: 84svh;
  max-height: 84svh;
  width: auto;
  object-fit: contain;
  object-position: 50% 100%;
  pointer-events: none;
  display: block;
  margin: 0;
  padding: 0;
  filter: contrast(1.04) saturate(1.06);
  /* No opacity transition: GSAP animates opacity in the intro and a CSS
     transition on the same property makes it lag and flash. */
  transition: filter 0.3s ease;
}

@media (max-width: 860px) {
  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    height: 68svh;
  }
}

/* Майже квадратні екрани (iPad горизонтально 1024×768, 1180×820): заголовок
   рахується від ширини, фото від висоти, і голова налазила на «У СПІЛЬНОТУ».
   Нижче фото голова стоїть у проміжку між «АНДРІЯ» і «ОРЛОВА» (BUGS #38). */
@media (min-width: 861px) and (max-aspect-ratio: 3/2) {
  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    height: 70svh;
    max-height: 70svh;
  }
}

/* Компактні ландшафтні екрани (напр. 800×600), щоб фото не перекривало заголовок (BUGS #21) */
@media (max-height: 650px) and (min-width: 769px) {
  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    height: 56svh;
    max-height: 56svh;
  }
}

/* Мобільна позиція фото: притиснута в правий нижній кут (точно як у референсі) */
@media (max-width: 768px) {
  .ob-hero .ob-hero__media,
  .ob-hero .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    z-index: 10;
  }

  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    position: absolute;
    left: auto;
    right: -24%;
    bottom: 0;
    transform: none;
    /* Higher photo closes the empty band under the title on phones (BUGS #21) */
    height: 62svh;
    max-height: 62svh;
    width: auto;
    object-fit: contain;
    object-position: 100% 100%;
    filter: contrast(1.05) saturate(1.08);
  }
}

@media (max-width: 400px) {
  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    height: 62svh;
    max-height: 62svh;
    right: -20%;
  }
}

.ob-hero.is-bw .ob-hero__image,
.ob-hero.is-bw .hero-image,
body.is-bw .ob-hero .ob-hero__image,
body.is-bw .ob-hero .hero-image {
  filter: grayscale(100%) contrast(1.16) brightness(0.97);
}

.ob-hero.is-color .ob-hero__image,
.ob-hero.is-color .hero-image,
body.is-color .ob-hero .ob-hero__image,
body.is-color .ob-hero .hero-image {
  filter: contrast(1.04) saturate(1.06);
}

/* ========================================================
   ТИПОГРАФІКА (.hero-title & .hero-line-split)
   ======================================================== */
.ob-hero .ob-hero__content-wrap,
.ob-hero .hero-content-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(4.8rem, 8.5vh, 6.8rem);
  box-sizing: border-box;
}

.ob-hero .ob-hero__title-stage,
.ob-hero .hero-title-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ob-hero .ob-hero__title,
.ob-hero .hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #000000;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  row-gap: clamp(0.6rem, 2vh, 1.4rem);
}

/* Рядки розтягуються від краю до краю, симетрично обрамляючи силует */
.ob-hero .ob-hero__line-split,
.ob-hero .hero-line-split {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  white-space: nowrap;
  box-sizing: border-box;
}

.ob-hero .ob-hero__line-split:last-child,
.ob-hero .hero-line-split:last-child {
  align-items: center;
}

/* Рядок на всю ширину без розриву */
.ob-hero .ob-hero__line-full,
.ob-hero .hero-line-full {
  justify-content: center;
  text-align: center;
  letter-spacing: -0.01em;
  gap: 0.35em;
  word-spacing: 0.12em;
}

@media (max-width: 860px) {
  .ob-hero .ob-hero__line-full,
  .ob-hero .hero-line-full {
    font-size: clamp(1.6rem, 9.1vw, 2.8rem) !important;
  }
}

/* Окремі слова заголовка (для переходу на 4-рядковий стек на мобілці) */
.ob-hero .ob-hero__word {
  display: inline;
}

/* Рукописний акцент "База!" чітко у правій частині заголовка */
.ob-hero .ob-hero__title-end,
.ob-hero .hero-title-end {
  display: inline-block;
  position: relative;
}

.ob-hero .ob-hero__signature,
.ob-hero .text-style-signature {
  font-family: var(--font-signature);
  color: var(--color-accent);
  z-index: 30; /* ПОВЕРХ УСЬОГО СПРАВА */
  pointer-events: none;
  font-size: 0.76em;
  line-height: 1;
  position: absolute;
  top: 0.46em;
  right: -0.04em;
  overflow: visible;
  transform: rotate(-10deg);
  text-shadow: 0 4px 20px rgba(45, 196, 107, 0.45);
  white-space: nowrap;
}

/* ========================================================
   МОБІЛЬНА ТИПОГРАФІКА (ТОЧНО ЯК У РЕФЕРЕНСІ WEBSITES THAT MAKE CLIENTS SAY YES)
   Лівобічний щільний 4-рядковий стек, який не розривається і не закриває голову
   ======================================================== */
@media (max-width: 768px) {
  .ob-hero .ob-hero__content-wrap,
  .ob-hero .hero-content-wrap {
    padding-top: clamp(3.8rem, 7.5vh, 4.8rem);
    justify-content: space-between;
  }

  .ob-hero .ob-hero__title-stage,
  .ob-hero .hero-title-stage {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .ob-hero .ob-hero__title,
  .ob-hero .hero-title {
    align-items: flex-start;
    text-align: left;
    row-gap: 0;
    width: 100%;
  }

  .ob-hero .ob-hero__line-split,
  .ob-hero .hero-line-split {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: auto;
    max-width: 82%;
    row-gap: 0;
    white-space: normal;
  }

  .ob-hero .ob-hero__line-full,
  .ob-hero .hero-line-full {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .ob-hero .ob-hero__word {
    display: block;
    font-size: clamp(2.4rem, 11.2vw, 3.6rem) !important;
    line-height: 0.90 !important;
    letter-spacing: -0.04em !important;
    text-align: left;
    white-space: nowrap;
    width: auto;
  }

  .ob-hero .ob-hero__title-end,
  .ob-hero .hero-title-end {
    display: inline-block;
    position: relative;
    width: auto;
  }

  /* «База!» sits after «ОРЛОВА», never over it (BUGS #21) */
  .ob-hero .ob-hero__signature,
  .ob-hero .text-style-signature {
    font-size: 0.66em;
    top: 0.05em;
    left: 100%;
    right: auto;
    margin-left: 0.12em;
    transform: rotate(-8deg);
  }

  .ob-hero .ob-hero__front-overlay,
  .ob-hero .front-text-overlay {
    padding-top: clamp(3.8rem, 7.5vh, 4.8rem);
  }
}

@media (max-width: 400px) {
  .ob-hero .ob-hero__signature,
  .ob-hero .text-style-signature {
    font-size: 0.62em;
    top: 0.05em;
    left: 100%;
    right: auto;
  }
  .ob-hero .ob-hero__line-split,
  .ob-hero .hero-line-split {
    max-width: 88%;
  }
  .ob-hero .ob-hero__word {
    font-size: clamp(2.1rem, 10.2vw, 2.7rem) !important;
  }
}

/* ========================================================
   СТИЛЬ 2: МАНІФЕСТ ДІЇ (СЕНДВІЧ-ШАР ПОВЕРХ СВІТШОТА)
   ======================================================== */
.ob-hero .ob-hero__front-overlay,
.ob-hero .front-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 25; /* ПОВЕРХ СВІТШОТА, АЛЕ ПІД ГРАДІЄНТОМ/БЕЙДЖЕМ */
  pointer-events: none;
  padding-top: clamp(4.8rem, 8.5vh, 6.8rem);
  box-sizing: border-box;
}

.ob-hero .ob-hero__outline-text,
.ob-hero .outline-text {
  color: #ffffff;
  -webkit-text-stroke: 3.2px #000000;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ob-hero .ob-hero__manifest-badge,
.ob-hero .manifest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
  border: 1px solid rgba(45, 196, 107, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ob-hero .ob-hero__manifest-dot,
.ob-hero .manifest-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* ========================================================
   BOTTOM META ROW (.hero-meta, .hero-intro, .hero-scroll)
   ======================================================== */
.ob-hero .ob-hero__meta,
.ob-hero .hero-meta {
  position: relative;
  z-index: 30;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.ob-hero .ob-hero__intro,
.ob-hero .hero-intro {
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ob-hero .ob-hero__text,
.ob-hero .hero-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: #2b2b2e;
  font-weight: 400;
}

/* ========================================================
   МОБІЛЬНА КНОПКА ДІЇ ЗНИЗУ (ТОЧНО ЯК У РЕФЕРЕНСІ [Аватар] START A PROJECT)
   ======================================================== */
.ob-hero .ob-hero__mobile-cta {
  display: none;
  align-items: center;
  gap: 10px;
  background: #111111;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px 8px 8px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
  width: fit-content;
}

.ob-hero .ob-hero__mobile-cta:hover {
  background: #222222;
  transform: translateY(-1px);
}

.ob-hero .ob-hero__mobile-cta-avatar {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-hero .ob-hero__mobile-cta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.ob-hero .ob-hero__scroll,
.ob-hero .hero-scroll {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

@media (max-width: 768px) {
  .ob-hero .ob-hero__meta,
  .ob-hero .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    z-index: 30;
  }

  .ob-hero .ob-hero__intro,
  .ob-hero .hero-intro {
    max-width: 72%;
    align-items: flex-start;
    z-index: 35;
  }

  .ob-hero .ob-hero__text,
  .ob-hero .hero-text {
    font-size: 13.5px;
    line-height: 1.42;
    color: #1a1a1e;
    font-weight: 500;
    text-align: left;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 8px rgba(234, 230, 221, 0.9);
  }

  .ob-hero .ob-hero__mobile-cta {
    display: inline-flex;
  }

  .ob-hero .ob-hero__scroll,
  .ob-hero .hero-scroll {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .ob-hero .ob-hero__intro,
  .ob-hero .hero-intro {
    max-width: 78%;
  }
  .ob-hero .ob-hero__text,
  .ob-hero .hero-text {
    font-size: 12.5px;
  }
}

/* ========================================================
   ВХІДНА АНІМАЦІЯ (BUGS #44–#45)
   ======================================================== */

/* До запуску JS hero прихований: index.html ставить .ob-intro-pending у <head>,
   script.js знімає його, щойно задасть стартові стани. Аварійно — через 3.5 с. */
.ob-intro-pending .ob-hero .ob-hero__title,
.ob-intro-pending .ob-hero .ob-hero__glow,
.ob-intro-pending .ob-hero .ob-hero__meta,
.ob-intro-pending .ob-sticky-hud-wrap {
  visibility: hidden;
}

/* Слово — маска, внутрішній span виїжджає з-під її нижнього краю.
   Запас зверху й з боків — для Й/Ї і нахилу, знизу — для хвостиків Д/Щ/Ц. */
.ob-hero .ob-hero__word-inner {
  display: inline-block;
}

.ob-hero.is-intro .ob-hero__word {
  clip-path: inset(-0.4em -0.3em -0.12em -0.3em);
}

/* ========================================================
   ВЕРТИКАЛЬНИЙ ПЛАНШЕТ (601–860px): ПОСТЕР У ДВА РЯДКИ (BUGS #48)
   Телефонний стовпчик слів займав ліву третину iPad, а фото, притиснуте
   вправо, обрізалося за краєм. Тут — композиція як на десктопі.
   ======================================================== */
@media (min-width: 601px) and (max-width: 860px) {
  .ob-hero .ob-hero__title-stage,
  .ob-hero .hero-title-stage {
    align-items: center;
  }

  .ob-hero .ob-hero__title,
  .ob-hero .hero-title {
    align-items: center;
    text-align: center;
    row-gap: 0.15em;
  }

  .ob-hero .ob-hero__line-split,
  .ob-hero .hero-line-split {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.3em;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    /* «АНДРІЯ ОРЛОВА» ≈ 6.75em: слова разом і на всю ширину, без дірки посередині (BUGS #51) */
    font-size: calc((100vw - 2.5rem) / 6.9) !important;
  }

  /* «ВСТУПАЙ У СПІЛЬНОТУ» ≈ 9.8em: рядок заповнює ширину між полями */
  .ob-hero .ob-hero__line-full,
  .ob-hero .hero-line-full {
    justify-content: center;
    gap: 0.3em;
    font-size: calc((100vw - 2.5rem) / 10.2) !important;
  }

  .ob-hero .ob-hero__word {
    display: inline;
    font-size: inherit !important;
    line-height: 0.98 !important;
    letter-spacing: -0.03em !important;
  }

  /* Менша й під кутом «ОРЛОВА»: не закриває слово і не виходить за край (BUGS #51) */
  .ob-hero .ob-hero__signature,
  .ob-hero .text-style-signature {
    font-size: 0.5em;
    top: 0.95em;
    left: auto;
    right: 0.4em;
    margin-left: 0;
    transform: rotate(-10deg);
  }

  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: 68svh;
    max-height: 68svh;
    object-position: 50% 100%;
  }

  .ob-hero .ob-hero__meta,
  .ob-hero .hero-meta {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .ob-hero .ob-hero__intro,
  .ob-hero .hero-intro {
    max-width: 46%;
  }

  .ob-hero .ob-hero__text,
  .ob-hero .hero-text {
    font-size: 15px;
  }

  /* Тут підказка лежить на зеленій футболці: сірий там не читається */
  .ob-hero .ob-hero__scroll,
  .ob-hero .hero-scroll {
    display: inline-block !important;
    color: #1a1a1e;
  }
}

/* Телефон горизонтально (напр. 844×390) теж має ширину планшета: фото нижче,
   щоб голова стояла між «АНДРІЯ» і «ОРЛОВА», а не на першому рядку (BUGS #21, #48) */
@media (min-width: 601px) and (max-width: 860px) and (max-height: 650px) {
  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    height: 56svh;
    max-height: 56svh;
  }
}

/* ========================================================
   ТЕЛЕФОН (≤600px): ЗАГОЛОВОК-ПОСТЕР (BUGS #49–#50)
   Слова ~19vw замість ~10vw: «СПІЛЬНОТУ» (≈4.5em) займає всю ширину,
   «ВСТУПАЙ У» стоїть одним рядком, тож «У» не висить окремо.
   ======================================================== */
@media (max-width: 600px) {
  .ob-hero .ob-hero__line-split,
  .ob-hero .hero-line-split {
    max-width: 100%;
  }

  /* Десктопне :last-child { align-items: center } центрувало «АНДРІЯ» над «ОРЛОВА» */
  .ob-hero .ob-hero__line-split:last-child,
  .ob-hero .hero-line-split:last-child {
    align-items: flex-start;
  }

  .ob-hero .ob-hero__line-full,
  .ob-hero .hero-line-full {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.4em;
  }

  .ob-hero .ob-hero__word {
    font-size: min(calc((100vw - 2.5rem) / 4.75), 5.5rem) !important;
    line-height: 0.9 !important;
  }

  /* Підпис рахується від розміру слова, а не від рядка, і стоїть після «ОРЛОВА» (BUGS #21) */
  .ob-hero .ob-hero__signature,
  .ob-hero .text-style-signature {
    font-size: min(calc((100vw - 2.5rem) / 9.5), 2.75rem);
    top: 0.1em;
  }

  /* Фото займає місце під заголовком: 100svh − відступ зверху (~5.5rem) − 4 рядки
     по 0.9 × (100vw − 2.5rem) / 4.75. Без порожньої смуги (BUGS #21) і без голови
     на «ОРЛОВА» на коротких телефонах (iPhone SE). */
  .ob-hero .ob-hero__image,
  .ob-hero .hero-image {
    height: min(62svh, calc(100svh - 5.5rem - 0.76 * (100vw - 2.5rem)));
    max-height: 62svh;
  }

  .ob-hero .ob-hero__intro,
  .ob-hero .hero-intro {
    max-width: 84%;
  }

  .ob-hero .ob-hero__text,
  .ob-hero .hero-text {
    font-size: 15px;
    line-height: 1.4;
  }
}
