/* ============================================================
   МИР КЛЕВА — DESIGN TOKENS (Readymag)
   ============================================================ */
:root {
  --violet:      #8800ff;
  --orange:      #ff5000;
  --yellow:      #ffcc00;
  --blue:        #1551ff;
  --black:       #000000;
  --graphite:    #282828;
  --near-black:  #0f0e0e;
  --white:       #ffffff;
  --fog:         #f4f4f4;
  --mist:        #e7e7e7;
  --steel:       #808080;

  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-pill:   200px;
  --r-card:   16px;
  --r-panel:  20px;

  --gap:      86px;
  --max:      1200px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute; top: -999px; left: 8px;
  background: var(--violet); color: #fff;
  padding: 8px 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--gap) 0; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--near-black);
}
.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--near-black);
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--near-black);
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--near-black);
}
.t-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.t-white  { color: var(--white) !important; }
.t-white2 { color: rgba(255,255,255,0.65) !important; }

/* ============================================================
   PILL BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity .18s, transform .18s;
  white-space: nowrap;
}
.btn:hover { opacity: .82; transform: translateY(-1px); }
.btn--orange  { background: var(--orange); color: var(--white); }
.btn--outline { background: transparent; color: var(--near-black); border: 1.5px solid var(--near-black); }
.btn--outline-w { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost { padding: 10px 16px; color: var(--graphite); }
.btn--ghost:hover { background: var(--fog); opacity: 1; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.07); }

.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--near-black); flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.logo-dot { color: var(--violet); }
.logo-fish { font-size: 18px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: 14px; color: var(--graphite);
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: background .15s;
}
.main-nav a:hover, .main-nav a.current-menu-item,
.main-nav a.current-page-ancestor { background: var(--fog); }

/* Search */
.header-search {
  position: relative; display: flex; align-items: center;
}
.header-search input {
  border: 1.5px solid var(--mist);
  border-radius: var(--r-pill);
  padding: 8px 40px 8px 16px;
  font-size: 14px; color: var(--graphite);
  background: var(--fog);
  width: 180px;
  transition: width .2s, border-color .2s;
  outline: none;
}
.header-search input:focus { border-color: var(--violet); width: 220px; }
.header-search button {
  position: absolute; right: 12px;
  color: var(--steel); font-size: 15px;
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--near-black); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.footer-desc {
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,.45);
  max-width: 300px; margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 14px;
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: var(--violet); color: var(--white); }
.footer-col-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px; color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.25); flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   HERO — ГОЛОВНА
   ============================================================ */
.home-hero {
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT: text */
.home-hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 24px;
  max-width: 680px;
  margin: 0 auto;
}
.home-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fog); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 32px;
  width: fit-content;
}
.home-hero-tag span { color: var(--violet); }
.home-hero-text .t-display { margin-bottom: 24px; }
.home-hero-sub {
  font-size: 18px; line-height: 1.65; color: var(--graphite);
  margin-bottom: 40px; max-width: 440px;
}
.home-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* RIGHT: photo */
.home-hero-photo {
  position: relative; overflow: hidden;
  background: var(--near-black);
}
.home-hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85;
  transition: transform 8s ease;
}
.home-hero-photo:hover img { transform: scale(1.04); }
.home-hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.15) 0%, transparent 50%);
}
.home-hero-photo-badge {
  position: absolute; bottom: 32px; left: 32px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-size: 13px; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.home-hero-photo-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ============================================================
   YELLOW MARQUEE BAND
   ============================================================ */
.marquee-band {
  background: var(--yellow);
  padding: 18px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--black); white-space: nowrap;
  padding: 0 28px;
  display: flex; align-items: center; gap: 28px;
}
.marquee-item::after { content: '◆'; font-size: 7px; opacity: .35; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FEATURED POST (великий топовий пост)
   ============================================================ */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--black);
}
.featured-post-photo {
  position: relative; overflow: hidden;
}
.featured-post-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .75;
  transition: transform .6s ease;
}
.featured-post:hover .featured-post-photo img { transform: scale(1.04); }
.featured-post-body {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
  background: var(--black);
}
.featured-post-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--violet);
  margin-bottom: 16px;
}
.featured-post-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05;
  color: var(--white); margin-bottom: 16px;
  transition: opacity .15s;
}
.featured-post:hover .featured-post-title { opacity: .85; }
.featured-post-excerpt {
  font-size: 15px; line-height: 1.65;
  color: rgba(255,255,255,.6); margin-bottom: 32px;
  max-width: 380px;
}
.featured-post-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.4);
}
.featured-post-meta-sep { opacity: .4; }

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card { display: flex; flex-direction: column; }

.post-card-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--fog);
  margin-bottom: 18px;
  display: block;
  position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}

.post-card-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--violet);
  margin-bottom: 8px; display: block;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  color: var(--near-black); margin-bottom: 10px;
  transition: color .15s;
}
.post-card:hover .post-card-title { color: var(--violet); }
.post-card-excerpt {
  font-size: 14px; line-height: 1.65; color: var(--graphite);
  flex: 1; margin-bottom: 14px;
}
.post-card-meta {
  font-size: 12px; color: var(--steel);
  display: flex; align-items: center; gap: 10px;
}
.post-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--mist); }
.post-card-arrow {
  font-size: 13px; font-weight: 700; color: var(--near-black);
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; transition: gap .15s;
}
.post-card:hover .post-card-arrow { gap: 10px; }
.post-card-arrow::after { content: '→'; }

/* ============================================================
   SOLID COLOR PANELS (feature blocks)
   ============================================================ */
.panel {
  border-radius: var(--r-panel);
  padding: 56px 48px;
  position: relative; overflow: hidden;
}
.panel--black  { background: var(--black); }
.panel--violet { background: var(--violet); }
.panel--orange { background: var(--orange); }

.panel-num {
  font-family: var(--font-display);
  font-size: 120px; font-weight: 700; letter-spacing: -0.05em;
  color: rgba(255,255,255,.07); line-height: 1;
  position: absolute; bottom: -16px; right: -8px;
  pointer-events: none; user-select: none;
}
.panel-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--white); margin-bottom: 14px;
}
.panel-text {
  font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.65);
  max-width: 360px;
}

/* ============================================================
   ABOUT (home block)
   ============================================================ */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  border-radius: var(--r-panel); overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-label {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  padding: 8px 18px; font-size: 12px; font-weight: 700;
  color: var(--white); letter-spacing: 0.04em;
}
.about-text .t-eyebrow { margin-bottom: 14px; }
.about-text .t-h2 { margin-bottom: 20px; }
.about-text p { font-size: 16px; line-height: 1.75; color: var(--graphite); margin-bottom: 16px; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  background: var(--black); padding: 60px 0;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px); font-weight: 700;
  letter-spacing: -0.05em; color: var(--white);
  line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 12px; color: rgba(255,255,255,.35);
  letter-spacing: 0.07em; text-transform: uppercase;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--violet);
  border-radius: var(--r-panel);
  padding: 72px 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: 'КЛЕВА';
  font-family: var(--font-display);
  font-size: 200px; font-weight: 700; letter-spacing: -0.06em;
  color: rgba(255,255,255,.06);
  position: absolute; bottom: -40px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.cta-banner .t-h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CATEGORIES STRIP
   ============================================================ */
.cats-strip {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.cat-pill {
  background: var(--fog); border-radius: var(--r-pill);
  padding: 8px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--graphite); cursor: pointer;
  transition: background .15s, color .15s;
  border: 1.5px solid transparent;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--black); color: var(--white);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 40px; gap: 24px;
}
.section-header-left .t-eyebrow { margin-bottom: 10px; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--steel); margin-bottom: 28px; flex-wrap: wrap;
}
.breadcrumbs a { transition: color .15s; }
.breadcrumbs a:hover { color: var(--near-black); }
.breadcrumbs-sep { opacity: .35; }

/* ============================================================
   BLOG ARCHIVE PAGE
   ============================================================ */
.blog-hero {
  padding: calc(64px + 64px) 0 56px;
  border-bottom: 1px solid var(--mist);
  margin-bottom: var(--gap);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero {
  padding: calc(64px + 60px) 0 0;
}
.post-hero-inner { max-width: 820px; }
.post-cover {
  margin-bottom: 60px;
  border-radius: var(--r-panel); overflow: hidden;
  max-height: 540px;
}
.post-cover img { width: 100%; height: 540px; object-fit: cover; }

.post-body {
  max-width: 700px; margin: 0 auto 80px;
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--near-black);
  margin: 48px 0 14px;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--near-black);
  margin: 36px 0 10px;
}
.post-body p { font-size: 17px; line-height: 1.8; color: var(--graphite); margin-bottom: 22px; }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { font-size: 17px; line-height: 1.8; color: var(--graphite); margin-bottom: 6px; }
.post-body blockquote {
  border-left: 4px solid var(--violet);
  padding: 24px 32px;
  background: var(--fog);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  margin: 32px 0;
}
.post-body blockquote p {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--near-black);
  margin: 0;
}
.post-body img { border-radius: var(--r-card); margin: 32px 0; width: 100%; }
.post-body a { color: var(--violet); border-bottom: 1px solid currentColor; transition: opacity .15s; }
.post-body a:hover { opacity: .7; }
.post-body figure { margin: 32px 0; }
.post-body figcaption { font-size: 13px; color: var(--steel); margin-top: 8px; text-align: center; }

/* Tags */
.post-tags {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--mist);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.post-tags-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.post-tag {
  background: var(--fog); border-radius: var(--r-pill);
  padding: 6px 16px; font-size: 13px; color: var(--graphite);
  transition: background .15s, color .15s;
}
.post-tag:hover { background: var(--violet); color: var(--white); }

/* Related posts */
.related-section {
  background: var(--fog); padding: var(--gap) 0;
}

/* Author bio */
.author-bio {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px; background: var(--fog); border-radius: var(--r-card);
  margin: 40px 0;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--violet); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--white);
}
.author-name { font-weight: 700; font-size: 15px; color: var(--near-black); margin-bottom: 4px; }
.author-desc { font-size: 14px; color: var(--graphite); line-height: 1.6; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero-section {
  padding: calc(64px + var(--gap)) 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-hero-visual {
  border-radius: var(--r-panel); overflow: hidden;
  position: relative; min-height: 520px;
}
.about-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-hero-visual-placeholder {
  background: var(--violet); width: 100%; height: 100%;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.about-hero-visual-placeholder span {
  font-family: var(--font-display);
  font-size: 100px; font-weight: 700; letter-spacing: -0.06em;
  color: rgba(255,255,255,.15); line-height: 0.85; text-align: center;
}
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px;
}
.value-num {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 700; letter-spacing: -0.04em;
  color: var(--mist); line-height: 1; margin-bottom: 8px;
}
.value-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--near-black); margin-bottom: 8px;
}
.value-text { font-size: 14px; color: var(--graphite); line-height: 1.65; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: var(--gap) 0 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; transition: background .15s;
}
.pagination a { color: var(--near-black); border: 1.5px solid var(--mist); }
.pagination a:hover { background: var(--fog); border-color: var(--near-black); }
.pagination .current { background: var(--near-black); color: var(--white); border: 1.5px solid var(--near-black); }

/* ============================================================
   PAGE 404
   ============================================================ */
.page-404 {
  padding: calc(64px + var(--gap)) 0 var(--gap);
  text-align: center; min-height: 80vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.page-404-num {
  font-family: var(--font-display);
  font-size: 160px; font-weight: 700; letter-spacing: -0.07em;
  color: var(--mist); line-height: 0.85; margin-bottom: 32px;
}

/* ============================================================
   WP ALIGNMENT
   ============================================================ */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.wp-caption-text { font-size: 13px; color: var(--steel); margin-top: 8px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gap: 64px; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-text { max-width: 100%; padding: 60px 24px 40px; }
  .home-hero-photo { min-height: 420px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-photo { min-height: 280px; }
  .about-block { grid-template-columns: 1fr; }
  .about-hero-section { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gap: 48px; }
  .main-nav, .header-search { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 32px 24px; gap: 4px;
    z-index: 99; align-items: flex-start;
  }
  .main-nav.open a {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700; letter-spacing: -0.03em;
    padding: 10px 0; width: 100%; border-radius: 0;
  }
  .posts-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 48px 24px; }
  .panel { padding: 36px 28px; }
  .home-hero-text { padding: 48px 24px 40px; }
}
