/* AXEL GUCH — Unified Dark Swiss Design System (applied site-wide across all pages) */
@font-face {
  font-family: 'Luna Display';
  src: url('/assets/fonts/home-font-1488bfd479.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Site';
  src: url('/assets/fonts/home-font-df261f1a13.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Site';
  src: url('/assets/fonts/home-font-8278ffaccb.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ag-swiss-ink: #080808;
  --ag-swiss-surface: #0d0e11;
  --ag-swiss-white: #f5f5f2;
  --ag-swiss-muted: rgba(245, 245, 242, .62);
  --ag-swiss-subtle: rgba(245, 245, 242, .42);
  --ag-swiss-line: rgba(255, 255, 255, .12);
  --ag-swiss-line-strong: rgba(255, 255, 255, .24);
  --ag-swiss-accent: #5c9aff;
  --ag-display: 'Luna Display', sans-serif;
  --ag-acid: #5c9aff;
}

html {
  background: #080808;
  scroll-behavior: smooth;
}

/* ── Global Header, Language Toggle, Mobile Burger & Drawer (100% identical on every page) ── */
.ag-site-header,
.ag-site-header.is-scrolled {
  background: #080808 !important;
  background-image: none !important;
  color: #f5f5f2 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-family: 'JetBrains Site', ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

.ag-site-header__inner,
.ag-site-footer__inner {
  max-width: 1440px;
}

.ag-site-header a,
.ag-site-footer a {
  color: inherit;
}

.ag-site-header .ag-brand--logo,
.ag-site-header .wp-block-navigation,
.ag-site-header .wp-block-navigation a,
.ag-site-header .ag-nav-cta {
  font-family: 'JetBrains Site', ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

.ag-site-header .wp-block-navigation a[aria-current="page"] {
  color: #fff !important;
}

.ag-site-header .ag-nav-cta[aria-current="page"] {
  color: #fff !important;
  border-bottom-color: #5c9aff !important;
}

/* On desktop, avoid duplicating /contact/ next to the "Обсудить проект" CTA (kept inside mobile drawer) */
@media (min-width: 621px) {
  .ag-site-header .wp-block-navigation-item:has(a[href="/contact/"]) {
    display: none !important;
  }
}

.ag-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.language-toggle,
.language-toggle--header {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #f5f5f2 !important;
  font-family: 'JetBrains Site', ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: .06em !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.language-toggle--header:hover,
.language-toggle--header:focus-visible {
  border-color: rgba(255, 255, 255, .56) !important;
  background: rgba(255, 255, 255, .06) !important;
  outline: none;
}

.language-toggle--header:focus-visible {
  outline: 2px solid #5c9aff !important;
  outline-offset: 3px;
}

/* Mobile Header + Circular Burger + Flat #080808 Swiss Drawer (never square, never gradient!) */
@media (max-width: 620px) {
  body .wp-site-blocks .ag-site-header__inner,
  .ag-site-header__inner {
    grid-template-columns: 1fr auto auto !important;
    gap: 10px !important;
    min-height: 66px !important;
  }

  .ag-header-actions {
    order: 2 !important;
  }

  .ag-site-header .ag-nav-cta {
    display: none !important;
  }

  .ag-site-header nav {
    order: 3 !important;
    justify-self: end !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-open,
  .ag-site-header .wp-block-navigation__responsive-container-open {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #f5f5f2 !important;
    cursor: pointer !important;
    transition: border-color 180ms ease, background 180ms ease !important;
  }

  .ag-site-header .wp-block-navigation__responsive-container-open:hover,
  .ag-site-header .wp-block-navigation__responsive-container-open:active {
    border-color: rgba(255, 255, 255, .56) !important;
    background: rgba(255, 255, 255, .06) !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-open svg,
  .ag-site-header .wp-block-navigation__responsive-container-open svg {
    width: 15px !important;
    height: 15px !important;
    fill: currentColor !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container.has-modal-open.is-menu-open,
  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container.is-menu-open,
  .ag-site-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 100000 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100lvh !important;
    max-height: none !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    background: #080808 !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #f5f5f2 !important;
    border: 0 !important;
    box-shadow: none !important;
    animation: ag-swiss-drawer-in 240ms cubic-bezier(.16, 1, .3, 1) both;
  }

  html.has-modal-open,
  html.has-modal-open body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-close,
  .ag-site-header .wp-block-navigation__responsive-container-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #f5f5f2 !important;
    cursor: pointer !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-close svg,
  .ag-site-header .wp-block-navigation__responsive-container-close svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-content,
  .ag-site-header .wp-block-navigation__responsive-container-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    padding: 24px 20px 36px !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-content::before,
  .ag-site-header .wp-block-navigation__responsive-container-content::before {
    display: block !important;
    margin: 2px 48px 22px 0 !important;
    color: rgba(245, 245, 242, .42) !important;
    font-family: 'JetBrains Site', ui-monospace, monospace !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: .12em !important;
    line-height: 1.4 !important;
    content: 'NAVIGATION / AXEL GUCH' !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
  .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
  .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    display: flex !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, .1) !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:last-child,
  .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content,
  .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 0 !important;
    color: rgba(245, 245, 242, .9) !important;
    font-family: 'JetBrains Site', ui-monospace, monospace !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: .04em !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }

  body .wp-site-blocks .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after,
  .ag-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after {
    color: rgba(245, 245, 242, .45) !important;
    content: '↗' !important;
  }
}

@keyframes ag-swiss-drawer-in {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ── Global Unified Footer ── */
.ag-site-footer {
  background: #080808 !important;
  color: #f5f5f2 !important;
  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  font-family: 'JetBrains Site', ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

.ag-footer-nav a,
.ag-footer-social a,
.ag-footer-contact,
.ag-footer-copyright {
  font-family: 'JetBrains Site', ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

/* ── Unified Swiss Design System for ALL Inner Pages (works, services, about, journal, materials, fashion-dogs, illustration, privacy, 404) ── */
body:not(.swiss-home) {
  background: #080808 !important;
  color: #f5f5f2 !important;
  font-family: 'JetBrains Site', ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* Strip ALL dated radial-gradient blobs & lime-green glows from old WP theme */
body:not(.swiss-home) .ag-works,
body:not(.swiss-home) .ag-works-hero,
body:not(.swiss-home) .ag-services,
body:not(.swiss-home) .ag-services-hero,
body:not(.swiss-home) .ag-service-pricing,
body:not(.swiss-home) .ag-editorial,
body:not(.swiss-home) .ag-page-hero,
body:not(.swiss-home) .ag-case,
body:not(.swiss-home) .ag-case-hero,
body:not(.swiss-home) .ag-contact-panel,
body:not(.swiss-home) .ag-section,
body:not(.swiss-home) .ag-section::before,
body:not(.swiss-home) .ag-home-directions,
body:not(.swiss-home) .ag-home-contact {
  background-color: #080808 !important;
  background-image: none !important;
}

body:not(.swiss-home) .ag-works-hero,
body:not(.swiss-home) .ag-services-hero,
body:not(.swiss-home) .ag-page-hero,
body:not(.swiss-home) .ag-case-hero {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* Consistent Swiss Display Typography (Luna Display) */
body:not(.swiss-home) h1,
body:not(.swiss-home) .ag-works-title,
body:not(.swiss-home) .ag-page-title,
body:not(.swiss-home) .ag-services-hero h1,
body:not(.swiss-home) .ag-case-hero h1,
body:not(.swiss-home) .ag-notfound h1,
body:not(.swiss-home) .ill-intro h1 {
  font-family: 'Luna Display', sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(2.2rem, 5.4vw, 4.75rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.01em !important;
  text-transform: uppercase;
  color: #f5f5f2;
}

body:not(.swiss-home) .ag-page-title span,
body:not(.swiss-home) .ag-works-title span,
body:not(.swiss-home) .ag-services-hero h1 span,
body:not(.swiss-home) .ag-case-hero h1 span {
  color: rgba(245, 245, 242, .46) !important;
  background: none !important;
  -webkit-text-stroke: 0 !important;
  -webkit-text-fill-color: currentColor !important;
}

body:not(.swiss-home) .ag-project h2,
body:not(.swiss-home) .ag-service-list h2,
body:not(.swiss-home) .ag-service-list h2 .ag-service-link,
body:not(.swiss-home) .ag-service-pricing h2,
body:not(.swiss-home) .ag-product-feature h2,
body:not(.swiss-home) .ag-product-grid h2,
body:not(.swiss-home) .ag-contact-panel h2,
body:not(.swiss-home) .ag-case-story h2,
body:not(.swiss-home) .ag-case-next h2,
body:not(.swiss-home) .ill-gallery h2,
body:not(.swiss-home) .ill-faq h2 {
  font-family: 'Luna Display', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  overflow-wrap: break-word;
}

body:not(.swiss-home) .ag-case-story h2 {
  font-size: clamp(1.45rem, 2.35vw, 2.25rem) !important;
  line-height: 1.16 !important;
}

body:not(.swiss-home) .ag-project h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.65rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: normal !important;
}

body:not(.swiss-home) .ag-product-feature h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.35rem) !important;
  line-height: 1.12 !important;
}

body:not(.swiss-home) .ag-service-list h2,
body:not(.swiss-home) .ag-service-list h2 .ag-service-link {
  font-size: clamp(1.35rem, 2.2vw, 2.05rem) !important;
  line-height: 1.12 !important;
  color: #f5f5f2 !important;
  border-bottom: 0 !important;
}

body:not(.swiss-home) .ag-service-list > article:hover h2 .ag-service-link {
  color: #5c9aff !important;
}

body:not(.swiss-home) .ag-contact-panel h2,
body:not(.swiss-home) .ag-service-pricing h2,
body:not(.swiss-home) .ag-case-next h2 {
  font-size: clamp(1.75rem, 3.1vw, 3rem) !important;
  line-height: 1.1 !important;
}

/* Consistent Mono Body & Kickers */
body:not(.swiss-home) p,
body:not(.swiss-home) li,
body:not(.swiss-home) .ag-page-kicker,
body:not(.swiss-home) .ag-works-kicker,
body:not(.swiss-home) .ag-page-intro,
body:not(.swiss-home) .ag-works-intro,
body:not(.swiss-home) .ag-services-lead,
body:not(.swiss-home) .ag-round-link,
body:not(.swiss-home) .ag-button,
body:not(.swiss-home) .ag-service-link,
body:not(.swiss-home) .ag-product-meta,
body:not(.swiss-home) .ag-process {
  font-family: 'JetBrains Site', ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

body:not(.swiss-home) .ag-page-kicker,
body:not(.swiss-home) .ag-works-kicker,
body:not(.swiss-home) .ag-notfound__code {
  color: rgba(245, 245, 242, .46) !important;
  font-size: 11px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

/* Crisp Monochrome Buttons & Links (replacing old WP pills/acid accents) */
body:not(.swiss-home) .ag-round-link,
body:not(.swiss-home) .ag-button {
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #f5f5f2 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

body:not(.swiss-home) .ag-round-link:hover,
body:not(.swiss-home) .ag-round-link:focus-visible,
body:not(.swiss-home) .ag-button:hover,
body:not(.swiss-home) .ag-button:focus-visible {
  background: #f5f5f2 !important;
  color: #080808 !important;
  border-color: #f5f5f2 !important;
  box-shadow: none !important;
}

body:not(.swiss-home) .ag-service-link {
  color: rgba(245, 245, 242, .82) !important;
  border-color: rgba(255, 255, 255, .24) !important;
}

body:not(.swiss-home) .ag-service-link:hover {
  color: #5c9aff !important;
  border-color: #5c9aff !important;
}

body:not(.swiss-home) .ag-service-list > article,
body:not(.swiss-home) .ag-process > div,
body:not(.swiss-home) .ag-product-grid > article,
body:not(.swiss-home) .ag-contact-panel,
body:not(.swiss-home) .ag-service-pricing,
body:not(.swiss-home) .ag-case-story,
body:not(.swiss-home) .ag-case-next,
body:not(.swiss-home) .ag-empty-note {
  border-color: rgba(255, 255, 255, .12) !important;
}

/* Paired CTA button row across cleaned inner pages */
.ag-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 24px;
}

.ag-contact-panel .ag-actions-row {
  margin-top: 0;
}

/* Balanced single secondary product row on /materials/ */
.ag-product-grid--single {
  display: block !important;
  padding-bottom: clamp(64px, 8vw, 108px);
}

.ag-product-grid--single > article {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.ag-product-grid--single > article > div:first-child {
  max-width: 56ch;
}

.ag-product-grid--single .ag-actions-row {
  margin-top: 0;
}

/* Bottom breathing room after removing redundant stacked sections */
.page-about .ag-about-grid,
.page-services .ag-service-pricing {
  padding-bottom: clamp(68px, 9vw, 118px);
}

/* Dark Swiss surface consistency on /illustration/ */
.wp-illustration-page {
  --bg: #080808;
  --fg: #f5f5f2;
  --muted: rgba(245, 245, 242, .58);
  --line: rgba(255, 255, 255, .12);
  --soft: #0d0e11;
}

.wp-illustration-page .ill-intro__art,
.wp-illustration-page .ill-intro__art img,
.wp-illustration-page .ill-work:nth-child(2) > button {
  background: #0d0e11 !important;
}

.wp-illustration-page .ill-intro__art {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.wp-illustration-page .ill-intro__art img {
  object-fit: cover !important;
}

.wp-illustration-page .ill-contact {
  background: #080808 !important;
}

.wp-illustration-page .ill-contact h2 {
  font-size: clamp(36px, 4.6vw, 68px) !important;
}

/* Unified silky GPU-only reveals across ALL inner pages (same choreography as homepage) */
body:not(.swiss-home) [data-ag-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html.ag-inner-anim body:not(.swiss-home) .ag-reveal {
  opacity: 0 !important;
  transform: translate3d(0, 20px, 0) !important;
  transition:
    opacity 720ms cubic-bezier(.16, 1, .3, 1) var(--ag-delay, 0ms),
    transform 820ms cubic-bezier(.16, 1, .3, 1) var(--ag-delay, 0ms) !important;
  will-change: opacity, transform;
}

html.ag-inner-anim body:not(.swiss-home) .ag-reveal.ag-reveal--media {
  transform: translate3d(0, 22px, 0) scale(.982) !important;
}

html.ag-inner-anim body:not(.swiss-home) .ag-reveal.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

html.ag-inner-anim body:not(.swiss-home) .ag-reveal.is-settled {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.ag-inner-anim body:not(.swiss-home) .ag-reveal,
  html.ag-inner-anim body:not(.swiss-home) .ag-reveal.ag-reveal--media {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  .ag-site-header .wp-block-navigation__responsive-container.is-menu-open {
    animation: none !important;
  }
}
