/*
 * AVRYN Consulting 2.0 — critical foundation.
 * Deliberately small: layout, navigation, shared actions and footer only.
 */

:root {
  --bg: #050505;
  --text: #F2F0E9;
  --muted: #B7D85A;
  --line: rgba(183, 216, 90, .18);
  --line2: rgba(183, 216, 90, .09);
  --blue: #B7D85A;
  --violet: #B7D85A;
  --grad: linear-gradient(115deg, #B7D85A, #B7D85A);
  --header: 78px;
  --ease: cubic-bezier(.2, .72, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.av-noise {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .024;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* Header */
.av-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  height: var(--header);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.av-header-inner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto auto;
  gap: 30px;
  align-items: center;
  height: 100%;
  margin-inline: auto;
}
.av-brand { display: inline-flex; align-items: center; width: fit-content; }
.av-desktop-nav { justify-self: end; }
.av-menu { display: flex; gap: 28px; align-items: center; margin: 0; padding: 0; list-style: none; }
.av-menu a { display: inline-flex; align-items: center; min-height: 44px; }
.av-header-cta { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.av-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.av-menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0 5px auto;
  background: currentColor;
}
.av-menu-toggle > span:nth-child(2) { width: 17px; }

.av-mobile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 200;
  width: min(92vw, 420px);
  padding: 25px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(5, 5, 5, .985);
  box-shadow: -30px 0 90px rgba(5, 5, 5, .42);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .42s var(--ease), visibility 0s linear .42s;
}
.av-mobile-panel.is-open { visibility: visible; transform: none; transition-delay: 0s; }
.av-mobile-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line2); }
.av-mobile-top img { width: 112px; }
.av-mobile-close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 32px; font-weight: 200; cursor: pointer; }
.av-mobile-panel nav { display: flex; flex-direction: column; padding: 26px 0; }
.av-mobile-panel nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line2); font-size: 18px; }
.av-mobile-cta { width: 100%; }

/* Shared actions */
.av-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}
.av-button:hover { transform: translateY(-2px); }
.av-button-primary { color: #F2F0E9; background: var(--grad); box-shadow: 0 15px 44px rgba(183, 216, 90, .22); }
.av-button-primary:hover { box-shadow: 0 18px 52px rgba(183, 216, 90, .32); }

/* Hero shell — the orbital component is isolated in hero-orbit-premium.css. */
.av-ai-hero { position: relative; overflow: hidden; }
.av-ai-hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: 44px; }
.av-ai-hero-copy { position: relative; z-index: 2; min-width: 0; }
.av-ai-hero-eyebrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #B7D85A; font-size: 10px; line-height: 1.4; letter-spacing: .16em; }
.av-ai-hero-eyebrow > span { color: #F2F0E9; font-weight: 750; }
.av-ai-hero-eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: #B7D85A; box-shadow: 0 0 12px #B7D85A; }
.av-ai-hero-eyebrow strong { font-weight: 650; }
.av-ai-hero-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.av-ai-hero-secondary { display: inline-flex; gap: 12px; align-items: center; min-height: 48px; color: #B7D85A; font-size: 13px; }
.av-ai-hero-secondary i { color: #B7D85A; font-style: normal; transition: transform .22s ease; }
.av-ai-hero-secondary:hover i { transform: translate(3px, 3px); }
.av-ai-hero-principle { display: flex; gap: 12px; align-items: flex-start; }
.av-ai-hero-principle > span { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: #B7D85A; box-shadow: 0 0 14px rgba(183, 216, 90, .8); }
.av-ai-hero-principle p { margin: 0; font-size: 12px; line-height: 1.65; }
.av-ai-hero-principle strong { color: #F2F0E9; font-weight: 600; }
.av-ai-hero-system { position: relative; min-width: 0; min-height: 650px; }

/* Footer */
.av-footer { position: relative; z-index: 2; padding: 80px 0 28px; }
.av-footer-main { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 80px; padding-bottom: 70px; }
.av-footer-brand { min-width: 0; }
.av-footer-logo { width: 116px; margin-bottom: 25px; }
.av-footer-principle { display: block; margin-top: 22px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.av-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.av-footer-nav > div { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.av-footer-label { margin-bottom: 7px; color: #B7D85A; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.av-footer-nav a { width: fit-content; max-width: 100%; color: #B7D85A; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.av-footer-nav a:hover { color: #F2F0E9; }
.av-footer-signature { overflow: hidden; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.av-footer-signature span { display: block; margin: -.02em 0 -.15em; color: rgba(242, 240, 233, .055); font-size: clamp(110px, 22vw, 340px); line-height: .9; font-weight: 700; letter-spacing: -.08em; white-space: nowrap; }
.av-footer-bottom { align-items: center; justify-content: space-between; min-height: 74px; color: #B7D85A; font-size: 11px; }

.av-form-status { margin-bottom: 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.av-form-status.is-success { color: #F2F0E9; border-color: rgba(183, 216, 90, .35); background: rgba(183, 216, 90, .08); }
.av-form-status.is-error { color: #F2F0E9; border-color: rgba(183, 216, 90, .36); background: rgba(183, 216, 90, .08); }

@media (max-width: 1120px) {
  .av-header-inner { grid-template-columns: 150px 1fr auto auto; }
  .av-desktop-nav { display: none; }
  .av-menu-toggle { display: block; }
}

@media (max-width: 900px) {
  .av-ai-hero-grid { grid-template-columns: 1fr; }
  .av-footer-main { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 680px) {
  :root { --header: 72px; }
  .av-header-inner { grid-template-columns: 1fr auto; gap: 14px; }
  .av-header-cta { display: none; }
  .av-menu-toggle { grid-column: 2; }
  .av-ai-hero-actions { flex-direction: column; align-items: stretch; }
  .av-ai-hero-system { min-height: 430px; }
  .av-footer { padding-top: 60px; }
  .av-footer-main { padding-bottom: 52px; }
  .av-footer-nav { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .av-footer-nav > div:last-child { grid-column: 1 / -1; }
  .av-footer-bottom { justify-content: flex-start; padding-block: 22px; }
}

@media (max-width: 390px) {
  .av-mobile-panel { width: 100%; }
  .av-footer-nav { grid-template-columns: 1fr; }
  .av-footer-nav > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .av-mobile-panel { transition: none; }
  .av-button:hover { transform: none; }
}

