/*
Theme Name: Petricevic
Theme URI: https://ipetricevic.com/
Author: Ivan Petričević
Description: Editorialna kozmosom inspirirana WordPress tema. Pinterest masonry, sidebar layout, MailPoet, schema.org SEO, particle stars hero.
Version: 1.5.8
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: petricevic
*/

:root {
  --c-night: #0a1535;
  --c-night-2: #0f1d44;
  --c-night-soft: #1a2853;
  --c-orange: #d4691a;
  --c-orange-soft: #e88f4a;
  --c-orange-glow: rgba(212, 105, 26, .4);
  --c-cream: #f8f4eb;
  --c-cream-2: #ece6d6;
  --c-paper: #fbf8f1;
  --c-ink: #11132a;
  --c-mute: #6a6f85;
  --c-line: rgba(248, 244, 235, .12);
  --c-line-strong: rgba(248, 244, 235, .25);
  --f-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --f-body: 'Inter Tight', 'Helvetica Neue', sans-serif;
  --f-script: 'Caveat', cursive;
  --fs-mega: clamp(2.4rem, 7vw, 6.5rem);
  --fs-h1: clamp(2rem, 4.5vw, 3.8rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-lead: clamp(1rem, 1.3vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;
  --w-content: 880px;
  --w-wide: 1240px;
  --w-full: 1600px;
  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.08), 0 4px 16px rgba(10,21,53,.06);
  --shadow-2: 0 8px 30px rgba(10,21,53,.12);
  --shadow-3: 0 20px 60px rgba(10,21,53,.18);
  --easing: cubic-bezier(.22,.61,.36,1);
  --easing-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--easing); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--c-orange); color: var(--c-cream); }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 .5em;
  color: var(--c-ink);
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
p { margin: 0 0 1.4em; }
.eyebrow { font-family: var(--f-body); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-orange); }

.container { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-content { max-width: var(--w-content); margin: 0 auto; padding: 0 24px; }

@media (max-width: 600px) {
  .container, .container-narrow, .container-content { padding: 0 18px; }
}

.site-cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .42;
  mix-blend-mode: screen;
}
.site-cosmos__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-cosmos__orbit,
.site-cosmos__pyramid {
  position: absolute;
  display: block;
  opacity: .18;
  filter: drop-shadow(0 0 18px rgba(212,105,26,.12));
}
.site-cosmos__orbit {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(248,244,235,.28);
  border-radius: 50%;
}
.site-cosmos__orbit::before,
.site-cosmos__orbit::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  width: 220px;
  height: 70px;
  border: 1px solid rgba(212,105,26,.38);
  border-radius: 50%;
}
.site-cosmos__orbit::after {
  width: 10px;
  height: 10px;
  border: 0;
  background: var(--c-orange);
  box-shadow: 0 0 20px var(--c-orange-glow);
}
.site-cosmos__orbit--one { top: 18%; right: 7%; animation: floatA 18s ease-in-out infinite alternate; }
.site-cosmos__orbit--two { bottom: 14%; left: 4%; width: 120px; height: 120px; animation: floatB 22s ease-in-out infinite alternate; }
.site-cosmos__pyramid {
  width: 130px;
  height: 92px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border: 1px solid rgba(212,105,26,.48);
  background: linear-gradient(135deg, transparent 0 49%, rgba(212,105,26,.22) 50% 51%, transparent 52%);
}
.site-cosmos__pyramid--one { top: 38%; left: 6%; animation: floatB 20s ease-in-out infinite alternate; }
.site-cosmos__pyramid--two { bottom: 22%; right: 11%; width: 92px; height: 66px; animation: floatA 16s ease-in-out infinite alternate-reverse; }
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 21, 53, .82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-cream);
  transition: background .3s var(--easing);
}
.site-header.is-scrolled { background: rgba(10, 21, 53, .96); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 14px 0;
  gap: 32px;
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; transition: transform .4s var(--easing); position: relative; z-index: 82; }
.site-logo:hover { transform: translateY(-1px); }
.site-logo__signature { display: inline-block; }
.site-logo__signature svg { height: 60px; width: auto; max-width: 280px; display: block; }
.site-logo .custom-logo, .site-logo .custom-logo-link img { height: auto; max-height: 60px; max-width: 280px; object-fit: contain; }

.brand-logo {
  display: inline-grid;
  grid-template-columns: 42px auto;
  gap: 12px;
  align-items: center;
  color: var(--c-cream);
}
.brand-logo__mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248,244,235,.42);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(212,105,26,.22), transparent 58%);
}
.brand-logo__mark::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(212,105,26,.72);
  border-radius: 50%;
}
.brand-logo__star {
  position: absolute;
  width: 5px;
  height: 5px;
  right: 7px;
  top: 10px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 16px var(--c-orange-glow);
}
.brand-logo__orbit {
  position: absolute;
  width: 54px;
  height: 18px;
  left: -6px;
  top: 12px;
  border: 1px solid rgba(248,244,235,.52);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.brand-logo__text { display: grid; gap: 0; line-height: 1; }
.brand-logo__ivan {
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--c-cream);
}
.brand-logo__surname {
  font-family: var(--f-body);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--c-orange-soft);
  letter-spacing: .01em;
}

.primary-nav { display: block; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; padding: 0; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-cream-2);
  position: relative;
  padding: 6px 0;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--c-orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--easing);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after,
.primary-nav .current_page_item a::after { transform: scaleX(1); }
.primary-nav a:hover { color: var(--c-cream); }
.nav-toggle { display: none; position: relative; z-index: 82; }

@media (max-width: 880px) {
  .site-header__inner { min-height: 72px; padding: 10px 0; gap: 16px; }
  .site-logo__signature svg { height: 44px; max-width: 200px; }
  .brand-logo { grid-template-columns: 34px auto; gap: 9px; }
  .brand-logo__mark { width: 34px; height: 34px; }
  .brand-logo__orbit { width: 45px; height: 15px; top: 10px; }
  .brand-logo__ivan { font-size: .96rem; }
  .brand-logo__surname { font-size: .94rem; }
  .primary-nav {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    background:
      radial-gradient(520px 320px at 82% 18%, rgba(212,105,26,.18), transparent 60%),
      linear-gradient(180deg, rgba(10,21,53,.98), rgba(10,21,53,.96));
    padding: calc(env(safe-area-inset-top) + 96px) 24px calc(env(safe-area-inset-bottom) + 34px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .28s var(--easing), visibility .28s var(--easing), transform .28s var(--easing);
    z-index: 70;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; max-width: 520px; margin: 0 auto; }
  .primary-nav a {
    font-family: var(--f-display);
    font-size: clamp(1.65rem, 8vw, 2.65rem);
    line-height: 1;
    padding: 19px 0;
    border-bottom: 1px solid var(--c-line);
    width: 100%;
    justify-content: space-between;
  }
  .primary-nav a::before {
    content: '•';
    color: var(--c-orange);
    font-family: var(--f-body);
    font-size: .8rem;
    margin-right: 14px;
  }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 32px; height: 32px; background: none; border: none; padding: 0; align-items: center; justify-content: center; z-index: 82; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-cream); transition: transform .3s var(--easing), opacity .3s var(--easing); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* HERO with stars and constellations */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 78% 28%, rgba(212,105,26,.18), transparent 60%),
    linear-gradient(180deg, var(--c-night), #08112d);
  color: var(--c-cream);
  overflow: hidden;
  padding: clamp(70px, 12vw, 160px) 0 clamp(70px, 10vw, 130px);
  isolation: isolate;
}
.hero__bg { position: absolute; inset: -10%; z-index: -2; pointer-events: none; will-change: transform; }
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 78% 28%, rgba(212,105,26,.22), transparent 60%),
    radial-gradient(700px 700px at 12% 82%, rgba(70,40,120,.32), transparent 60%);
  animation: heroDrift 30s ease-in-out infinite alternate;
}
@keyframes heroDrift { 50% { transform: translate(-2%, 1%) scale(1.04); } }
.hero__particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__constellations { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero-icon { transition: transform 0.6s ease; transform-origin: center; }
.hero-icon--pyramid { animation: floatA 14s ease-in-out infinite alternate; }
.hero-icon--constellation { animation: floatB 18s ease-in-out infinite alternate; }
.hero-icon--orbit { animation: spin 60s linear infinite; transform-origin: 220px 720px; }
.hero-icon--ankh { animation: floatA 16s ease-in-out infinite alternate-reverse; }
.hero-icon--galaxy { animation: spin 80s linear infinite; transform-origin: 90px 480px; }
@keyframes floatA { 50% { transform: translate(0, -8px); } }
@keyframes floatB { 50% { transform: translate(-6px, 4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, var(--c-night) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; opacity: 0; animation: fadeUp .8s var(--easing) .15s forwards; }
.hero__eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--c-orange); }
.hero__title {
  font-size: var(--fs-mega);
  line-height: .95;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--c-cream);
  max-width: 18ch;
  opacity: 0;
  animation: fadeUp 1s var(--easing) .35s forwards;
}
.hero__title em { font-style: italic; color: var(--c-orange); font-family: var(--f-display); }
.hero__lead {
  font-size: var(--fs-lead);
  max-width: 56ch;
  color: var(--c-cream-2);
  margin: 0 0 36px;
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp 1s var(--easing) .55s forwards;
}
.hero__actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--easing) .75s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
  .hero { padding: 54px 0 66px; min-height: calc(100svh - 72px); display: flex; align-items: center; }
  .hero__eyebrow { margin-bottom: 18px; font-size: .68rem; letter-spacing: .14em; }
  .hero__title { font-size: clamp(2.45rem, 13vw, 4rem); line-height: 1.01; max-width: 9ch; }
  .hero__lead { font-size: 1rem; }
  .hero__actions { width: 100%; gap: 10px; }
  .hero__actions .btn { flex: 1 1 150px; justify-content: center; padding-inline: 18px; }
  .hero-icon--constellation { transform: translate(70vw, 80px) scale(0.6); }
  .hero-icon--ankh { transform: translate(75vw, 480px) scale(0.6); }
}

/* BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .4s var(--easing), background-color .25s var(--easing), color .25s var(--easing), box-shadow .35s var(--easing), border-color .25s var(--easing);
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--easing);
  z-index: -1;
}
.btn:hover::before { opacity: 1; }
.btn--primary { background: var(--c-orange); color: var(--c-cream); }
.btn--primary:hover { background: var(--c-orange-soft); box-shadow: 0 0 60px var(--c-orange-glow); }
.btn--ghost { background: transparent; color: var(--c-cream); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-orange); color: var(--c-orange); }
.btn--dark { background: var(--c-ink); color: var(--c-cream); }
.btn--dark:hover { background: var(--c-night); }
.btn .arrow { display: inline-block; transition: transform .35s var(--easing); }
.btn:hover .arrow { transform: translateX(4px); }

/* MASONRY */
.masonry { column-count: 3; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1024px) { .masonry { column-count: 2; } }
@media (max-width: 600px)  { .masonry { column-count: 1; } }
.masonry__item {
  break-inside: avoid;
  margin-bottom: 24px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.masonry__item.is-visible { opacity: 1; transform: translateY(0); transition-delay: calc(var(--i, 0) * 60ms); }
.card {
  position: relative;
  display: block;
  background: var(--c-paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .5s var(--easing), box-shadow .5s var(--easing);
  text-decoration: none !important;
  color: var(--c-ink);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.card__media { position: relative; overflow: hidden; background: var(--c-cream-2); }
.card__media img { width: 100%; height: auto; display: block; transition: transform .9s var(--easing); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media--no-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-night) 0%, var(--c-night-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-orange); font-family: var(--f-script); font-size: 3rem;
}
.card__body { padding: 22px 24px 26px; }
.card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-mute); margin-bottom: 12px;
}
.card__meta::before { content: ''; width: 18px; height: 1px; background: var(--c-orange); }
.card__title {
  font-family: var(--f-display);
  font-size: 1.3rem; line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 10px;
  color: var(--c-ink);
  transition: color .25s var(--easing);
}
.card:hover .card__title { color: var(--c-orange); }
.card__excerpt { font-size: 0.95rem; line-height: 1.55; color: var(--c-mute); margin: 0; }
.card__category {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-night); color: var(--c-cream);
  padding: 4px 11px; border-radius: 999px;
  font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  z-index: 2;
}
.section { padding: clamp(50px, 7vw, 100px) 0; }

/* ARTICLE HERO */
.article-hero {
  background:
    radial-gradient(760px 360px at 50% 8%, rgba(212,105,26,.14), transparent 62%),
    linear-gradient(180deg, var(--c-night), #08112d);
  color: var(--c-cream);
  padding: clamp(44px, 5vw, 74px) 0 clamp(26px, 4vw, 46px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(212,105,26,.10), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(248,244,235,.05) 1px, transparent 0);
  background-size: auto, 60px 60px;
  z-index: 0;
}
.article-hero > * { position: relative; z-index: 1; }
.article-hero__category {
  font-size: var(--fs-micro); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-orange); margin-bottom: 16px;
  display: inline-block;
}
.article-hero__category a { color: inherit; }
.article-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--c-cream);
  max-width: 24ch;
  margin: 0 auto 28px;
}
.article-hero__title em { color: var(--c-orange); font-style: italic; }
.article-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  color: var(--c-cream);
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 0 16px;
}
.meta-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: rgba(248,244,235,.045);
  text-align: left;
}
.meta-card span {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-orange-soft);
  font-weight: 700;
}
.meta-card strong,
.meta-card time {
  font-size: .9rem;
  line-height: 1.25;
  color: var(--c-cream-2);
  font-weight: 600;
}
@media (max-width: 760px) {
  .article-hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
}

.article-featured { background: #08112d; padding: 0 0 clamp(34px, 5vw, 56px); }
.article-featured__inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.article-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0,0,0,.32);
}
.article-featured__caption { margin-top: 14px; font-size: var(--fs-small); color: var(--c-cream-2); text-align: center; font-style: italic; }
@media (max-width: 600px) {
  .article-hero { padding: 38px 0 22px; }
  .article-hero__category { margin-bottom: 12px; }
  .article-hero__title { font-size: clamp(2.2rem, 11.5vw, 3.45rem); line-height: 1.05; margin-bottom: 22px; }
  .article-hero__meta { grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .meta-card { min-width: 0; grid-template-columns: 92px 1fr; align-items: center; padding: 10px 12px; }
  .meta-card span { font-size: .6rem; }
  .meta-card strong,
  .meta-card time { font-size: .86rem; text-align: right; }
  .article-featured__inner { padding: 0 18px; }
  .article-featured img { aspect-ratio: 4 / 3; border-radius: 8px; }
}

/* ARTICLE GRID + SIDEBAR */
.article-grid { background: var(--c-paper); padding: clamp(36px, 5vw, 70px) 0; }
.article-grid__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1100px) {
  .article-grid__inner { grid-template-columns: 1fr; gap: 36px; }
  .article-body { max-width: 780px; margin: 0 auto; }
}

.article-body { max-width: 820px; min-width: 0; }
.article-lead {
  font-family: var(--f-display);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink);
  margin: 0 0 36px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(17, 19, 42, .12);
  font-weight: 400;
  font-style: italic;
}
.article-content { font-size: 1.0625rem; line-height: 1.75; color: var(--c-ink); }
.article-content p { margin: 0 0 1.4em; }
.article-content h2 { font-family: var(--f-display); font-size: 1.7rem; margin: 2.2em 0 .8em; letter-spacing: 0; }
.article-content h3 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.article-content blockquote {
  margin: 2em 0; padding: 0 0 0 24px;
  border-left: 3px solid var(--c-orange);
  font-family: var(--f-display); font-style: italic;
  font-size: 1.25rem; line-height: 1.5;
  color: var(--c-night);
}
.article-content a { color: var(--c-orange); border-bottom: 1px solid var(--c-orange-soft); transition: color .2s, border-color .2s; }
.article-content a:hover { color: var(--c-night); border-bottom-color: var(--c-night); }
.article-content img { border-radius: var(--r-md); margin: 1.5em 0; }
.article-content ul, .article-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.article-content li { margin-bottom: .5em; }

@media (max-width: 600px) {
  .article-grid { padding: 32px 0 46px; }
  .article-content { font-size: 1rem; line-height: 1.7; }
  .article-lead { font-size: 1.06rem; margin-bottom: 28px; }
  .article-content h2 { font-size: 1.5rem; }
  .article-content h3 { font-size: 1.2rem; }
  .article-content blockquote { font-size: 1.1rem; padding-left: 18px; }
}

.article-share-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 36px 0 0;
  padding: 16px 0;
  border-top: 1px solid rgba(17, 19, 42, .1);
  border-bottom: 1px solid rgba(17, 19, 42, .1);
}
.article-share-row__label { font-size: var(--fs-small); color: var(--c-mute); font-weight: 600; margin-right: 8px; }
.article-share__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--c-mute);
  border: 1px solid rgba(17, 19, 42, .12);
  padding: 0;
  cursor: pointer;
  transition: all .25s var(--easing);
}
.article-share__btn:hover { transform: translateY(-2px); }
.article-share__btn[data-net="twitter"]:hover { background: #000; color: #fff; border-color: #000; }
.article-share__btn[data-net="facebook"]:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.article-share__btn[data-net="linkedin"]:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.article-share__btn[data-net="telegram"]:hover { background: #229ED9; color: #fff; border-color: #229ED9; }
.article-share__copy:hover, .article-share__copy.is-copied { background: var(--c-orange); color: #fff; border-color: var(--c-orange); }
.article-share__btn svg { width: 15px; height: 15px; }

/* SIDEBAR */
.article-sidebar {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 110px; align-self: start;
}
@media (max-width: 1100px) { .article-sidebar { position: static; } }

.sidebar-card {
  background: var(--c-paper);
  border: 1px solid rgba(17, 19, 42, .08);
  border-radius: var(--r-md);
  padding: 18px;
}
.sidebar-card__title {
  font-family: var(--f-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin: 0 0 14px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}
.sidebar-card__title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 24px; height: 1px; background: var(--c-orange);
}
.sidebar-card__lead { font-size: 0.85rem; color: var(--c-mute); margin: 0 0 12px; line-height: 1.5; }

.sidebar-recent { list-style: none; padding: 0; margin: 0; }
.sidebar-recent__item { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(17, 19, 42, .06); }
.sidebar-recent__item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-recent__link {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 10px; align-items: start;
  text-decoration: none; color: var(--c-ink);
}
.sidebar-recent__thumb { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-cream-2); }
.sidebar-recent__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--easing); }
.sidebar-recent__link:hover .sidebar-recent__thumb img { transform: scale(1.08); }
.sidebar-recent__thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-night), var(--c-night-soft));
  color: var(--c-orange); font-family: var(--f-script); font-size: 1.4rem;
}
.sidebar-recent__title {
  font-family: var(--f-display);
  font-size: 0.9rem; font-weight: 500;
  line-height: 1.25; margin: 0 0 4px;
  color: var(--c-ink);
  transition: color .2s var(--easing);
}
.sidebar-recent__link:hover .sidebar-recent__title { color: var(--c-orange); }
.sidebar-recent__date { font-size: 0.7rem; color: var(--c-mute); }

.sidebar-card--newsletter {
  background: linear-gradient(135deg, var(--c-night) 0%, var(--c-night-soft) 100%);
  border-color: transparent;
  color: var(--c-cream);
}
.sidebar-card--newsletter .sidebar-card__title { color: var(--c-orange); }
.sidebar-card--newsletter .sidebar-card__lead { color: var(--c-cream-2); }
.newsletter-form--sidebar {
  display: flex; gap: 6px;
  background: rgba(248, 244, 235, .08);
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  padding: 4px;
  position: relative;
}
.newsletter-form--sidebar:focus-within { border-color: var(--c-orange); }
.newsletter-form--sidebar input[type="email"] {
  flex: 1; min-width: 0;
  background: transparent; border: 0;
  padding: 8px 12px;
  color: var(--c-cream);
  font-family: inherit; font-size: 0.8rem;
  outline: none;
}
.newsletter-form--sidebar input::placeholder { color: var(--c-mute); }
.newsletter-form--sidebar button {
  background: var(--c-orange); color: var(--c-cream); border: 0;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.78rem;
  white-space: nowrap; cursor: pointer;
  transition: background .2s var(--easing);
}
.newsletter-form--sidebar button:hover { background: var(--c-orange-soft); }
.newsletter-form--sidebar .form-msg { position: absolute; bottom: -22px; left: 8px; font-size: 0.7rem; color: var(--c-cream-2); }

.sidebar-socials-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.sidebar-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 50%;
  background: rgba(10, 21, 53, .04);
  color: var(--c-ink);
  border: 1px solid rgba(17, 19, 42, .08);
  transition: all .25s var(--easing);
}
.sidebar-social-icon svg { width: 14px; height: 14px; }
.sidebar-social-icon:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.sidebar-social-icon[data-net="facebook"]:hover { background: #1877F2; }
.sidebar-social-icon[data-net="twitter"]:hover { background: #000; }
.sidebar-social-icon[data-net="instagram"]:hover { background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.sidebar-social-icon[data-net="linkedin"]:hover { background: #0A66C2; }
.sidebar-social-icon[data-net="telegram"]:hover { background: #229ED9; }
.sidebar-social-icon[data-net="tiktok"]:hover { background: #000; }
.sidebar-social-icon[data-net="youtube"]:hover { background: #FF0000; }

.sidebar-card--ad { padding: 14px; }
.sidebar-card__ad-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mute); margin-bottom: 10px; }

/* FOLLOW BOX (mid-article) */
.follow-box {
  margin: 40px 0;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-night) 0%, var(--c-night-soft) 100%);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.follow-box::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--c-orange-glow), transparent 70%);
  pointer-events: none;
  animation: orbDrift 14s ease-in-out infinite alternate;
}
@keyframes orbDrift { 100% { transform: translate(-20px, 20px); } }
.follow-box__head { position: relative; margin-bottom: 18px; }
.follow-box__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-micro); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-orange); margin: 0 0 8px;
}
.follow-box__eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--c-orange); }
.follow-box__title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--c-cream);
  font-weight: 500;
}
.follow-box__lead { font-size: 0.95rem; color: var(--c-cream-2); margin: 0; line-height: 1.5; max-width: 60ch; }

.follow-box__body { position: relative; }

.follow-box__divider {
  display: flex; align-items: center;
  margin: 18px 0 14px;
  font-size: var(--fs-micro);
  color: var(--c-cream-2);
  opacity: .7;
}
.follow-box__divider::before, .follow-box__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--c-line);
}
.follow-box__divider span { padding: 0 12px; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.7rem; }

.follow-box__socials {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.follow-box__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(248, 244, 235, .08);
  border: 1px solid var(--c-line-strong);
  color: var(--c-cream);
  transition: all .25s var(--easing-bounce);
}
.follow-box__social:hover { transform: translateY(-3px) scale(1.08); border-color: transparent; color: #fff; }
.follow-box__social svg { width: 16px; height: 16px; }
.follow-box__social[data-net="facebook"]:hover { background: #1877F2; }
.follow-box__social[data-net="twitter"]:hover { background: #000; }
.follow-box__social[data-net="instagram"]:hover { background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.follow-box__social[data-net="tiktok"]:hover { background: #000; }
.follow-box__social[data-net="telegram"]:hover { background: #229ED9; }
.follow-box__social[data-net="linkedin"]:hover { background: #0A66C2; }
.follow-box__social[data-net="youtube"]:hover { background: #FF0000; }

.newsletter-form {
  display: flex; gap: 6px;
  background: rgba(248, 244, 235, .08);
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  padding: 5px;
  position: relative;
}
.newsletter-form:focus-within { border-color: var(--c-orange); }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 0;
  background: transparent; border: 0;
  padding: 9px 14px;
  color: var(--c-cream);
  font-family: inherit; font-size: 0.85rem;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--c-mute); }
.newsletter-form button {
  border: 0; background: var(--c-orange); color: var(--c-cream);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.82rem;
  white-space: nowrap; cursor: pointer;
  transition: background .2s var(--easing);
}
.newsletter-form button:hover { background: var(--c-orange-soft); }
.newsletter-form .form-msg { position: absolute; bottom: -22px; left: 8px; font-size: 0.72rem; color: var(--c-cream-2); }

@media (max-width: 600px) {
  .follow-box { padding: 22px 18px; margin: 32px 0; }
  .newsletter-form { flex-direction: column; border-radius: var(--r-md); padding: 8px; }
  .newsletter-form input[type="email"] { width: 100%; padding: 12px; }
  .newsletter-form button { width: 100%; padding: 12px; border-radius: var(--r-md); }
}

/* SUGGESTED */
.suggested {
  background: var(--c-night); color: var(--c-cream);
  padding: clamp(50px, 7vw, 90px) 0;
  position: relative; overflow: hidden;
}
.suggested::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 50% 100%, rgba(212,105,26,.12), transparent 60%);
  pointer-events: none;
}
.suggested > * { position: relative; }
.suggested__heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.suggested__heading h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin: 0; color: var(--c-cream); font-weight: 500; }
.suggested__heading h2 em { color: var(--c-orange); font-style: italic; }
.suggested__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .suggested__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .suggested__grid { grid-template-columns: 1fr; } }
.suggested-card { display: block; color: var(--c-cream); text-decoration: none; }
.suggested-card__media { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; background: var(--c-night-soft); }
.suggested-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--easing); }
.suggested-card:hover .suggested-card__media img { transform: scale(1.06); }
.suggested-card__meta { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-orange); margin-bottom: 8px; }
.suggested-card__title {
  font-family: var(--f-display);
  font-size: 1.15rem; line-height: 1.25;
  margin: 0; color: var(--c-cream); font-weight: 500;
  transition: color .25s var(--easing);
}
.suggested-card:hover .suggested-card__title { color: var(--c-orange); }

/* FOOTER */
.site-footer { background: var(--c-night); color: var(--c-cream-2); padding: 70px 0 36px; position: relative; overflow: hidden; }
.site-footer::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,105,26,.08), transparent 60%);
  pointer-events: none;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
.site-footer__brand { min-width: 0; }
.site-footer__signature { display: block; margin-bottom: 18px; }
.site-footer__signature svg { height: 60px; width: auto; max-width: 240px; display: block; }
.site-footer .brand-logo { margin-bottom: 18px; }
.site-footer .brand-logo__mark { width: 46px; height: 46px; }
.site-footer .brand-logo__ivan { font-size: 1.18rem; }
.site-footer .brand-logo__surname { font-size: 1.1rem; }
.site-footer__tagline { font-size: var(--fs-small); line-height: 1.6; max-width: 30ch; color: var(--c-cream-2); }
.site-footer h4 { font-family: var(--f-body); font-size: var(--fs-micro); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-orange); margin: 0 0 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a {
  color: var(--c-cream); font-size: var(--fs-small);
  position: relative;
  transition: color .2s var(--easing), padding-left .25s var(--easing);
}
.site-footer li a::before {
  content: '→';
  position: absolute; left: -14px;
  color: var(--c-orange);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .25s var(--easing), transform .25s var(--easing);
}
.site-footer li a:hover { color: var(--c-orange); padding-left: 14px; }
.site-footer li a:hover::before { opacity: 1; transform: translateX(0); }

.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-socials a {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(248,244,235,.06);
  border: 1px solid var(--c-line-strong);
  color: var(--c-cream);
  transition: transform .35s var(--easing-bounce), border-color .25s var(--easing);
  overflow: hidden; isolation: isolate;
}
.footer-socials a::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--social-bg, var(--c-orange));
  transform: scale(0);
  border-radius: 50%;
  transition: transform .35s var(--easing-bounce);
  z-index: -1;
}
.footer-socials a:hover { border-color: transparent; transform: translateY(-3px) scale(1.05); }
.footer-socials a:hover::before { transform: scale(1.15); }
.footer-socials svg { width: 17px; height: 17px; transition: transform .25s var(--easing); }
.footer-socials a:hover svg { transform: scale(1.1); color: #fff; }
.footer-socials a[data-net="facebook"]  { --social-bg: #1877F2; }
.footer-socials a[data-net="twitter"]   { --social-bg: #000000; }
.footer-socials a[data-net="instagram"] { --social-bg: #d62976; }
.footer-socials a[data-net="instagram"]::before { background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.footer-socials a[data-net="tiktok"]    { --social-bg: #000000; }
.footer-socials a[data-net="telegram"]  { --social-bg: #229ED9; }
.footer-socials a[data-net="linkedin"]  { --social-bg: #0A66C2; }
.footer-socials a[data-net="youtube"]   { --social-bg: #FF0000; }

.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: var(--fs-micro); color: var(--c-mute); align-items: center; }
.site-footer__quote { font-family: var(--f-script); font-size: 1.5rem; color: var(--c-orange); line-height: 1; }

@media (max-width: 800px) { .site-footer__top { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; gap: 26px; } .site-footer { padding: 50px 0 30px; } }

/* v1.5.5 polish: mature logo, denser homepage, richer article finish */
.brand-logo {
  grid-template-columns: 50px auto;
  gap: 11px;
}
.brand-logo__mark {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}
.brand-logo__mark::before,
.brand-logo__mark::after,
.brand-logo__star,
.brand-logo__orbit { display: none; }
.brand-logo__planet { filter: drop-shadow(0 0 12px rgba(212,105,26,.18)); }
.brand-logo__ring { stroke-dasharray: 116 14; animation: logoOrbit 12s linear infinite; transform-origin: 32px 32px; }
.brand-logo__spark { opacity: .78; }
.brand-logo__text {
  gap: 1px;
  transform: translateY(1px);
}
.brand-logo__ivan {
  font-size: 1.08rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .01em;
}
.brand-logo__surname {
  font-size: 1.02rem;
  letter-spacing: .01em;
}
.brand-logo--footer,
.brand-logo--article { grid-template-columns: 56px auto; }
.brand-logo--footer .brand-logo__mark,
.brand-logo--article .brand-logo__mark { width: 56px; height: 56px; }
@keyframes logoOrbit { to { stroke-dashoffset: -130; } }

.site-cosmos {
  opacity: .56;
}
.site-cosmos__comet,
.site-cosmos__satellite,
.site-cosmos__temple,
.site-cosmos__ufo {
  position: absolute;
  display: block;
  opacity: .2;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(212,105,26,.16));
}
.site-cosmos__comet {
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(248,244,235,.8), rgba(212,105,26,.95));
  border-radius: 999px;
}
.site-cosmos__comet::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cream);
  box-shadow: 0 0 16px rgba(248,244,235,.8);
}
.site-cosmos__comet--one {
  top: 23%;
  left: -90px;
  transform: rotate(-13deg);
  animation: cometPass 19s linear infinite;
}
.site-cosmos__satellite {
  width: 42px;
  height: 24px;
  border: 1px solid rgba(248,244,235,.38);
  border-radius: 4px;
}
.site-cosmos__satellite::before,
.site-cosmos__satellite::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 24px;
  height: 8px;
  border: 1px solid rgba(212,105,26,.52);
}
.site-cosmos__satellite::before { left: -30px; }
.site-cosmos__satellite::after { right: -30px; }
.site-cosmos__satellite--one {
  right: 10%;
  top: 58%;
  transform: rotate(-18deg);
  animation: floatA 13s ease-in-out infinite alternate;
}
.site-cosmos__temple {
  width: 96px;
  height: 58px;
  border-bottom: 1px solid rgba(248,244,235,.32);
}
.site-cosmos__temple::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 18px solid rgba(212,105,26,.22);
}
.site-cosmos__temple::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 30px;
  background: repeating-linear-gradient(90deg, rgba(248,244,235,.32) 0 2px, transparent 2px 15px);
}
.site-cosmos__temple--one {
  left: 9%;
  bottom: 23%;
  animation: floatB 17s ease-in-out infinite alternate;
}
.site-cosmos__ufo {
  width: 86px;
  height: 28px;
  border: 1px solid rgba(248,244,235,.32);
  border-radius: 50%;
  transform: rotate(-10deg);
}
.site-cosmos__ufo::before {
  content: '';
  position: absolute;
  left: 30px;
  top: -11px;
  width: 28px;
  height: 18px;
  border: 1px solid rgba(212,105,26,.48);
  border-radius: 50% 50% 0 0;
}
.site-cosmos__ufo--one {
  right: 16%;
  bottom: 18%;
  animation: floatA 21s ease-in-out infinite alternate-reverse;
}
@keyframes cometPass {
  0% { transform: translate3d(0, 0, 0) rotate(-13deg); opacity: 0; }
  8%, 55% { opacity: .42; }
  70%, 100% { transform: translate3d(calc(100vw + 180px), 42vh, 0) rotate(-13deg); opacity: 0; }
}

.home .hero {
  padding: clamp(58px, 7vw, 104px) 0 clamp(48px, 6vw, 86px);
  min-height: auto;
}
.home .hero .container {
  max-width: 1160px;
}
.home .hero__eyebrow { margin-bottom: 20px; }
.home .hero__title { margin-bottom: 20px; }
.home .hero__lead { margin-bottom: 28px; }
.home #latest.section {
  padding-top: clamp(34px, 4.5vw, 62px);
}
.home #latest header {
  margin-bottom: 32px !important;
}

.article-ad {
  margin: 34px auto;
  padding: 16px 0;
  max-width: 760px;
  border-top: 1px solid rgba(17,19,42,.08);
  border-bottom: 1px solid rgba(17,19,42,.08);
  clear: both;
}
.article-ad__label {
  display: block;
  margin-bottom: 10px;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-mute);
  text-align: center;
}
.article-ad__slot {
  min-height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.article-ad__slot:empty { display: none; }

.article-endcap {
  margin: 42px 0 0;
  padding: 28px;
  border-radius: 12px;
  background:
    radial-gradient(420px 220px at 90% 20%, rgba(212,105,26,.14), transparent 60%),
    linear-gradient(135deg, var(--c-night), var(--c-night-soft));
  color: var(--c-cream);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.article-endcap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(248,244,235,.08) 1px, transparent 0);
  background-size: 44px 44px;
  opacity: .6;
  pointer-events: none;
}
.article-endcap > * { position: relative; }
.article-endcap__brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.article-endcap__brand p {
  margin: 0;
  color: var(--c-cream-2);
  line-height: 1.55;
  max-width: 58ch;
}
.article-endcap__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.article-endcap .btn--dark {
  background: var(--c-orange);
  color: var(--c-cream);
}
.article-endcap__about {
  color: var(--c-cream);
  font-size: var(--fs-small);
  font-weight: 700;
  border-bottom: 1px solid rgba(232,143,74,.7);
  padding-bottom: 2px;
}

.suggested {
  padding: clamp(44px, 6vw, 72px) 0 clamp(42px, 5vw, 66px);
}
.suggested__heading {
  margin-bottom: 26px;
}
.suggested__grid {
  max-width: 980px;
}

.site-footer {
  padding: 64px 0 32px;
  background:
    radial-gradient(900px 360px at 76% 0%, rgba(212,105,26,.12), transparent 58%),
    linear-gradient(180deg, #111d42, var(--c-night));
}
.site-footer__top {
  grid-template-columns: 1.4fr .9fr 1fr 1fr;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: rgba(248,244,235,.035);
  box-shadow: inset 0 1px 0 rgba(248,244,235,.05);
}
.site-footer__bottom {
  padding: 0 6px;
}

.return-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border: 1px solid rgba(248,244,235,.28);
  border-radius: 50%;
  background: rgba(10,21,53,.86);
  color: var(--c-cream);
  z-index: 90;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 44px rgba(10,21,53,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.92);
  transition: opacity .25s var(--easing), visibility .25s var(--easing), transform .25s var(--easing), border-color .25s var(--easing);
}
.return-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.return-to-top:hover {
  border-color: var(--c-orange);
  transform: translateY(-3px) scale(1.03);
}
.return-to-top__orbit {
  position: absolute;
  width: 60px;
  height: 18px;
  border: 1px solid rgba(212,105,26,.52);
  border-radius: 50%;
  transform: rotate(-19deg);
  animation: topOrbit 7s linear infinite;
}
.return-to-top__arrow {
  position: relative;
  font-size: 1.15rem;
  font-weight: 800;
}
@keyframes topOrbit { to { transform: rotate(341deg); } }

@media (max-width: 880px) {
  .brand-logo { grid-template-columns: 42px auto; }
  .brand-logo__mark { width: 42px; height: 42px; }
  .home .hero { padding: 42px 0 50px; }
  .site-cosmos__satellite,
  .site-cosmos__temple,
  .site-cosmos__ufo { display: none; }
}
@media (max-width: 700px) {
  .article-endcap,
  .article-endcap__brand {
    grid-template-columns: 1fr;
  }
  .article-endcap__actions { justify-content: flex-start; }
  .site-footer__top {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    border-radius: 12px;
    gap: 28px;
  }
  .site-footer__brand,
  .site-footer__top > div {
    min-width: 0;
  }
  .site-footer .brand-logo {
    margin-bottom: 12px;
  }
  .site-footer__tagline {
    max-width: 100%;
    font-size: .95rem;
  }
  .site-footer h4 {
    margin-bottom: 10px;
  }
  .site-footer ul {
    display: grid;
    gap: 7px;
  }
  .site-footer li {
    margin-bottom: 0;
  }
  .site-footer li a {
    font-size: 1rem;
  }
  .footer-socials {
    display: grid;
    grid-template-columns: repeat(5, 44px);
    gap: 10px;
    align-items: center;
  }
  .footer-socials a {
    width: 44px;
    height: 44px;
  }
  .site-footer__bottom {
    display: grid;
    gap: 20px;
    padding: 0;
  }
  .site-footer__quote {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
    line-height: 1.1;
  }
  .return-to-top {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 430px) {
  .site-footer {
    padding: 46px 0 30px;
  }
  .site-footer__top {
    padding: 22px 18px;
  }
  .footer-socials {
    grid-template-columns: repeat(4, 44px);
  }
}

/* PROJECTS */
.projects { padding: clamp(60px, 8vw, 120px) 0; background: var(--c-paper); }
.projects__intro { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.projects__intro h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.projects__intro p { font-size: var(--fs-lead); color: var(--c-mute); }
.project-card { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 50px 0; border-bottom: 1px solid rgba(17, 19, 42, .08); align-items: center; }
.project-card:nth-child(even) .project-card__visual { order: 2; }
.project-card:last-child { border-bottom: none; }
.project-card__visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-night), var(--c-night-soft));
  border-radius: var(--r-lg);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-orange);
  font-family: var(--f-display); font-weight: 500; font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-2);
  transition: transform .5s var(--easing);
}
.project-card:hover .project-card__visual { transform: translateY(-4px); }
.project-card__visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(212,105,26,.18), transparent 60%); }
.project-card__visual span { position: relative; }
.project-card__number { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-micro); color: var(--c-orange); letter-spacing: 0.15em; margin-bottom: 12px; }
.project-card__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin: 0 0 6px; font-weight: 500; }
.project-card__role { font-family: var(--f-script); color: var(--c-orange); font-size: 1.3rem; margin: 0 0 18px; }
.project-card__desc { font-size: 1rem; line-height: 1.65; color: var(--c-mute); margin: 0 0 22px; }
@media (max-width: 800px) {
  .project-card { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .project-card:nth-child(even) .project-card__visual { order: 0; }
}

/* ABOUT */
.about-hero { background: var(--c-night); color: var(--c-cream); padding: clamp(60px, 8vw, 120px) 0 0; position: relative; overflow: hidden; }
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 350px at 20% 20%, rgba(212,105,26,.18), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(248,244,235,.06) 1px, transparent 0);
  background-size: auto, 60px 60px;
}
.about-hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; }
.about-hero__text h1 { font-size: clamp(2rem, 4.4vw, 3.8rem); color: var(--c-cream); margin-bottom: 22px; font-weight: 500; line-height: 1.05; }
.about-hero__text h1 em { color: var(--c-orange); font-style: italic; }
.about-hero__text p { font-size: var(--fs-lead); color: var(--c-cream-2); line-height: 1.55; }
.about-hero__photo {
  aspect-ratio: 3 / 4;
  background: var(--c-night-soft);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden; margin-bottom: -1px; position: relative;
  box-shadow: 0 -20px 60px rgba(212, 105, 26, .12);
}
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.about-body { background: var(--c-paper); padding: clamp(50px, 7vw, 90px) 0; }
.about-body__inner { max-width: var(--w-content); margin: 0 auto; padding: 0 24px; font-size: 1.0625rem; line-height: 1.75; }
.about-body__inner h2 { font-size: 1.7rem; margin: 1.8em 0 .7em; }
.about-body__inner blockquote {
  margin: 2em 0; padding: 0 0 0 24px;
  border-left: 3px solid var(--c-orange);
  font-family: var(--f-display); font-style: italic;
  font-size: 1.3rem; line-height: 1.5; color: var(--c-night);
}
.about-highlights {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 50px 0; padding: 36px 0;
  border-top: 1px solid rgba(17,19,42,.1);
  border-bottom: 1px solid rgba(17,19,42,.1);
}
.about-highlight__num { font-family: var(--f-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; color: var(--c-orange); line-height: 1; font-style: italic; }
.about-highlight__label { margin-top: 6px; font-size: 0.85rem; color: var(--c-mute); line-height: 1.4; }
@media (max-width: 700px) {
  .about-highlights { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .about-hero__photo { aspect-ratio: 16 / 12; max-width: 480px; margin-left: auto; margin-right: auto; }
}
.about-cta { background: var(--c-night); color: var(--c-cream); padding: clamp(50px, 7vw, 90px) 0; text-align: center; position: relative; overflow: hidden; }
.about-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 50% 50%, rgba(212,105,26,.15), transparent 60%); }
.about-cta > * { position: relative; }
.about-cta h2 { color: var(--c-cream); font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.about-cta h2 em { color: var(--c-orange); font-style: italic; }
.about-cta p { color: var(--c-cream-2); font-size: var(--fs-lead); margin-bottom: 28px; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* CONTACT */
.contact-hero {
  background: var(--c-night);
  color: var(--c-cream);
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 350px at 50% 0%, rgba(212,105,26,.16), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(248,244,235,.06) 1px, transparent 0);
  background-size: auto, 60px 60px;
}
.contact-hero > * { position: relative; }
.contact-hero .eyebrow { margin-bottom: 14px; display: inline-block; }
.contact-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--c-cream); font-weight: 500; margin-bottom: 18px; }
.contact-hero p { font-size: var(--fs-lead); color: var(--c-cream-2); max-width: 50ch; margin: 0 auto; line-height: 1.55; }

.contact-body { background: var(--c-paper); padding: clamp(50px, 7vw, 90px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

.contact-info { display: flex; flex-direction: column; gap: 24px; padding: 4px; }
.contact-info__block {}
.contact-info__label {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 8px;
  font-weight: 600;
  display: block;
}
.contact-info__value {
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--c-night);
  font-weight: 500;
  border-bottom: 1px solid var(--c-orange);
  padding-bottom: 2px;
  transition: color .2s var(--easing);
  word-break: break-word;
}
.contact-info__value:hover { color: var(--c-orange); }
.contact-info__value-static {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-night);
}
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.contact-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 1px solid rgba(17, 19, 42, .12);
  color: var(--c-night);
  transition: all .25s var(--easing);
}
.contact-socials a svg { width: 14px; height: 14px; }
.contact-socials a:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.contact-socials a[data-net="facebook"]:hover { background: #1877F2; }
.contact-socials a[data-net="twitter"]:hover { background: #000; }
.contact-socials a[data-net="instagram"]:hover { background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.contact-socials a[data-net="linkedin"]:hover { background: #0A66C2; }
.contact-socials a[data-net="telegram"]:hover { background: #229ED9; }
.contact-socials a[data-net="tiktok"]:hover { background: #000; }
.contact-socials a[data-net="youtube"]:hover { background: #FF0000; }

.contact-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(17, 19, 42, .06);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; gap: 14px; } .contact-form { padding: 26px 22px; } }

.contact-form__field { margin-bottom: 18px; }
.contact-form__field:last-of-type { margin-bottom: 24px; }
.contact-form__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 8px;
}
.contact-form__field label span { color: var(--c-orange); }
.contact-form__field input, .contact-form__field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid rgba(17, 19, 42, .14);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .2s var(--easing), background .2s var(--easing), box-shadow .2s var(--easing);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form__field input::placeholder, .contact-form__field textarea::placeholder { color: var(--c-mute); }
.contact-form__field input:focus, .contact-form__field textarea:focus {
  border-color: var(--c-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 105, 26, .12);
}
.contact-form__field textarea { resize: vertical; min-height: 140px; }

.contact-form__submit {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.contact-form__msg {
  font-size: var(--fs-small);
  font-weight: 500;
}

/* ARCHIVE */
.archive-hero { background: var(--c-night); color: var(--c-cream); padding: clamp(50px, 7vw, 90px) 0; text-align: center; position: relative; overflow: hidden; }
.archive-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 350px at 50% 0%, rgba(212,105,26,.12), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(248,244,235,.07) 1px, transparent 0);
  background-size: auto, 60px 60px;
}
.archive-hero > * { position: relative; }
.archive-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); color: var(--c-cream); margin-bottom: 12px; font-weight: 500; }
.archive-hero h1 em { color: var(--c-orange); font-style: italic; }
.archive-hero p { font-size: var(--fs-lead); color: var(--c-cream-2); margin: 0 auto; max-width: 60ch; }
.archive-grid { background: var(--c-paper); padding: clamp(50px, 6vw, 80px) 0; }

.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pagination a, .pagination span, .nav-links a, .nav-links span {
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: var(--fs-small);
  color: var(--c-ink);
  border: 1px solid rgba(17, 19, 42, .12);
  text-decoration: none;
  min-width: 38px;
  text-align: center;
  transition: all .25s var(--easing);
}
.pagination .current, .nav-links .current { background: var(--c-night); color: var(--c-cream); border-color: var(--c-night); }
.pagination a:hover, .nav-links a:hover { background: var(--c-orange); color: var(--c-cream); border-color: var(--c-orange); }

/* UTILS */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 8px; background: var(--c-orange); color: var(--c-cream); padding: 10px 18px; border-radius: var(--r-sm); z-index: 100; font-size: var(--fs-small); font-weight: 600; }
.skip-link:focus { top: 8px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--c-orange); z-index: 100; width: 0%; transition: width .1s linear; box-shadow: 0 0 12px var(--c-orange-glow); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--easing), transform .9s var(--easing); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group > .reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.alignleft { float: left; margin: 0 24px 14px 0; }
.alignright { float: right; margin: 0 0 14px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: var(--fs-small); color: var(--c-mute); margin-top: 6px; font-style: italic; }
.petricevic-hp { position: absolute !important; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }
