/* Mobile-only presentation layer. Desktop styles remain untouched. */
@media (max-width: 700px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-surface: #0a1c30;
    --mobile-surface-light: #102942;
  }

  html {
    scroll-padding-top: 76px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 95% 8%, rgba(30, 91, 137, .2), transparent 28rem),
      #061120;
  }

  body.mobile-menu-open { overflow: hidden; }

  .noise { opacity: .022; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 72px;
    height: auto;
    padding: max(10px, env(safe-area-inset-top)) max(var(--mobile-gutter), env(safe-area-inset-right)) 10px max(var(--mobile-gutter), env(safe-area-inset-left));
    gap: 8px;
    border-bottom: 1px solid rgba(226, 181, 96, .19);
    background: rgba(6, 17, 32, .94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .header-identity { flex: 0 0 auto; }
  .header-identity img { width: 48px; height: 48px; }
  .header-identity span { display: none !important; }

  .ai-assistant-launch,
  .menu-toggle {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .ai-assistant-launch {
    margin-left: auto;
    padding: 0;
    justify-content: center;
    border-radius: 4px;
  }

  .ai-assistant-launch img { width: 34px; height: 34px; }
  .ai-assistant-launch span { display: none; }

  .language-switch { height: 46px; margin: 0; padding: 3px; }
  .language-switch button { min-width: 29px; height: 38px; padding: 0 6px; }

  .menu-toggle {
    display: flex !important;
    flex: 0 0 46px;
    margin: 0;
    padding: 0;
    border-color: rgba(226, 181, 96, .56);
    border-radius: 4px;
    background: rgba(16, 41, 66, .72);
  }

  .site-nav {
    top: calc(100% + 1px);
    right: var(--mobile-gutter);
    left: var(--mobile-gutter);
    z-index: 110;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    margin: 0;
    padding: 10px;
    gap: 4px;
    border: 1px solid rgba(226, 181, 96, .4);
    border-radius: 6px;
    background: rgba(7, 23, 42, .99);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .46);
    overscroll-behavior: contain;
  }

  .site-nav > a {
    min-height: 52px;
    padding: 14px 15px;
    border-radius: 4px;
    font-size: 15px;
  }

  .site-nav > a:not(.button):active { background: rgba(226, 181, 96, .12); }

  .hero.section-shell {
    width: 100%;
    min-height: 0 !important;
    margin: 0;
    padding: 30px var(--mobile-gutter) 38px;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
  }

  .hero::before,
  .hero::after { display: none !important; }

  .hero-copy {
    order: 1;
    width: 100%;
    max-width: none;
    padding: 0 !important;
  }

  .hero .eyebrow {
    margin: 0 0 16px;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: .15em;
  }

  .state-title {
    max-width: 100%;
    padding-bottom: 19px;
    font-size: clamp(3.25rem, 16.4vw, 4.7rem);
    line-height: .84;
    letter-spacing: .025em;
  }

  .state-title em { margin-top: 7px; letter-spacing: .09em; }
  .state-title::after { width: 78%; }

  .hero-idea {
    margin: 21px 0 16px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .27em;
  }

  .hero-candidates-link {
    width: 100%;
    min-height: 54px;
    margin: 0 0 18px;
    padding: 14px 16px;
    justify-content: space-between;
    gap: 14px;
    font-size: 11px;
    letter-spacing: .055em;
    border-radius: 4px;
  }

  .hero-description {
    max-width: 35ch;
    margin: 0;
    color: #c4ced7;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions { width: 100%; margin: 23px 0 0; }
  .hero-actions .button {
    width: 100%;
    min-height: 58px;
    padding: 16px 20px;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .principles {
    margin: 19px 0 0 !important;
    flex-wrap: wrap;
    row-gap: 8px;
    font-size: 9px;
    line-height: 1.5;
  }

  .hero-visual {
    order: 2;
    position: relative;
    inset: auto;
    display: block !important;
    width: 100%;
    height: clamp(340px, 92vw, 480px);
    min-height: 0;
    margin: 24px 0 18px;
    overflow: hidden;
    border: 1px solid rgba(226, 181, 96, .32);
    background: #091a2c;
    pointer-events: auto;
  }

  .leader-portrait {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .leader-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 47%, rgba(6, 17, 32, .15) 62%, rgba(6, 17, 32, .94) 100%);
    pointer-events: none;
  }

  .leader-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 17%;
    filter: saturate(.93) contrast(1.03) !important;
  }

  .leader-name,
  .leader-role {
    right: 16px;
    left: 16px;
    width: auto;
    transform: none;
    text-align: right;
    white-space: normal;
    text-shadow: 0 2px 13px #000;
  }

  .leader-name { top: auto; bottom: 78px; font-size: clamp(1.25rem, 6.4vw, 1.7rem); }
  .leader-role { top: auto; bottom: 55px; font-size: 8px; }
  .bio-trigger {
    top: auto;
    right: 15px;
    bottom: 14px;
    left: auto;
    min-height: 40px;
    padding: 9px 13px;
    transform: none;
    border-radius: 3px;
  }

  .leader-links {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    gap: 7px;
  }

  .leader-links .bio-trigger,
  .leader-links .book-trigger {
    position: static;
    width: 50%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 7px;
    transform: none;
  }

  .leader-links .book-trigger { font-size: 6.5px; }

  .hero-feature-grid {
    order: 3;
    position: relative;
    inset: auto;
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin: 0;
  }

  .hero-feature,
  .hero-feature:last-child {
    grid-column: auto !important;
    min-height: 118px !important;
    padding: 18px 19px !important;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(16, 41, 66, .96), rgba(7, 22, 40, .96));
  }

  .hero-feature svg { width: 30px; height: 30px; margin: 0 0 10px; }
  .hero-feature b { margin-bottom: 5px; font-size: 14px; line-height: 1.25; }
  .hero-feature span { font-size: 14px; line-height: 1.45; }
  .hero-metrics,
  .scroll-cue { display: none !important; }

  #contacts {
    margin: 0;
    padding: 27px var(--mobile-gutter) calc(27px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-top: 1px solid rgba(226, 181, 96, .17);
  }

  #contacts div { width: 100%; justify-content: space-between; gap: 12px; }
  #contacts a { min-height: 42px; display: inline-flex; align-items: center; font-size: 10px; }
  #contacts small { font-size: 9px; line-height: 1.5; }

  a,
  button,
  input,
  select,
  textarea { touch-action: manipulation; }

  .button,
  .hero-candidates-link,
  .hero-feature,
  .site-nav > a { -webkit-tap-highlight-color: rgba(226, 181, 96, .2); }
}

@media (max-width: 700px) and (orientation: landscape) {
  .hero-visual { height: min(78vh, 430px); }
  .site-nav { max-height: calc(100dvh - 74px); }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (min-width: 701px) and (max-width: 800px) {
  .hero-visual {
    display: none !important;
  }
}

@media (max-width: 370px) {
  .site-header { gap: 5px; padding-right: 10px; padding-left: 10px; }
  .header-identity img { width: 42px; height: 42px; }
  .ai-assistant-launch,
  .menu-toggle { width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
  .language-switch { height: 42px; }
  .language-switch button { min-width: 26px; height: 34px; padding: 0 5px; }
}
