/*  TABLET  max 1024px  */
@media(max-width:1024px) {

  /* Nav */
  nav {
    padding: 0 32px;
  }

  .nav-links {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Page header */
  .page-nav {
    flex-wrap: wrap;
    gap: 12px 0;
    margin-top: 40px;
  }

  .page-nav-item {
    padding-right: 24px;
    margin-right: 24px;
    font-size: .62rem;
  }

  /* Philosophy */
  .phil-manifesto {
    grid-template-columns: 1fr;
  }

  .phil-manifesto-left {
    padding: 64px 40px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .phil-manifesto-right {
    padding: 64px 40px;
  }

  .phil-planks {
    grid-template-columns: 1fr;
  }

  .phil-plank {
    padding: 48px 40px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .phil-plank:last-child {
    border-bottom: none;
  }

  .phil-metrics {
    grid-template-columns: 1fr;
  }

  .phil-metric {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .phil-pullquote {
    padding: 60px 40px;
  }

  /* Portfolios */
  .port-intro {
    grid-template-columns: 1fr;
    padding: 64px 40px;
    gap: 32px;
    justify-items: stretch;
  }

  .port-cards {
    grid-template-columns: 1fr;
  }

  .port-card-inner {
    padding: 48px;
  }

  .port-both {
    grid-template-columns: 1fr;
    padding: 64px 40px;
    gap: 48px;
    justify-items: center;
  }

  .port-split-visual {
    grid-template-columns: 1fr;
  }

  .port-split-block {
    padding: 40px;
  }

  /* Methodology â€” disable sticky sidebar on tablet */
  .meth-header {
    grid-template-columns: 1fr;
    padding: 64px 40px 0;
    gap: 0;
  }

  .meth-header-sticky {
    position: relative;
    top: auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }

  .meth-filters {
    padding: 0;
  }

  .meth-filter {
    padding: 48px 40px;
    grid-template-columns: 64px 1fr;
    gap: 20px;
  }

  .meth-filter:first-child {
    padding-top: 48px;
  }

  .meth-filter:last-child {
    padding-bottom: 48px;
  }

  .meth-rebalance {
    padding: 60px 40px;
  }

  .meth-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .meth-timeline::before {
    display: none;
  }

  .meth-tl-dot {
    display: none;
  }

  .meth-tl-item {
    padding-top: 0;
  }

  .meth-closing {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    gap: 32px;
  }

  /* Onboarding */
  .onb-header {
    grid-template-columns: 1fr;
    padding: 64px 40px;
    gap: 32px;
  }

  .onb-steps {
    grid-template-columns: 1fr 1fr;
  }

  .onb-step::after {
    display: none;
  }

  .onb-step {
    padding: 48px 32px;
    border-bottom: 1px solid var(--border);
  }

  .onb-timeline {
    grid-template-columns: 1fr;
    padding: 48px 40px;
    gap: 40px;
  }

  .onb-questions {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 32px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  footer {
    padding: 56px 40px 40px;
  }
}

/*  MOBILE  max 768px   */
@media(max-width:768px) {
  html {
    font-size: 17px;
  }

  /* Nav */
  nav {
    padding: 0 20px;
    height: 60px;
  }

  .btn-request {
    display: none;
  }

  .nav-mobile-menu {
    top: 60px;
  }

  /* Page header */
  .page-nav {
    gap: 8px 0;
  }

  .page-nav-item {
    font-size: .58rem;
    padding-right: 16px;
    margin-right: 16px;
  }

  /* Philosophy */
  .phil-manifesto-left,
  .phil-manifesto-right {
    padding: 48px 24px;
  }

  .phil-plank {
    padding: 40px 24px;
  }

  .phil-pullquote {
    padding: 48px 24px;
  }

  .phil-pullquote::before {
    left: 20px;
    top: 28px;
    font-size: 5rem;
  }

  .phil-metric {
    padding: 40px 24px;
  }

  /* Portfolios */
  .port-intro {
    padding: 48px 24px;
    gap: 24px;
    justify-items: stretch;
  }

  .port-card-inner {
    padding: 40px;
  }

  .port-chars {
    grid-template-columns: 1fr;
  }

  .port-char {
    border-right: none;
  }

  .port-both {
    padding: 48px 24px;
    gap: 36px;
    justify-items: center;
  }

  .port-split-visual {
    grid-template-columns: 1fr;
  }

  .port-split-block {
    padding: 40px;
  }

  /* Methodology */
  .meth-header {
    padding: 48px 24px 0;
  }

  .meth-filter {
    padding: 40px 24px;
    grid-template-columns: 1fr;
  }

  .meth-filter:first-child {
    padding-top: 40px;
  }

  .meth-filter:last-child {
    padding-bottom: 40px;
  }

  .meth-filter-num {
    font-size: 3rem;
    margin-bottom: 12px;
  }

  .meth-rebalance {
    padding: 48px 24px;
  }

  .meth-timeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .meth-closing {
    padding: 48px 24px;
  }

  /* Onboarding */
  .onb-header {
    padding: 48px 24px;
  }

  .onb-steps {
    grid-template-columns: 1fr;
  }

  .onb-step {
    padding: 40px 24px;
  }

  .onb-timeline {
    padding: 40px 24px;
  }

  .onb-tl-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .onb-questions {
    padding: 48px 24px;
  }

  .onb-q-actions {
    width: 100%;
  }

  .btn-email {
    display: block;
    text-align: center;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  footer {
    padding: 48px 24px 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

/*  SMALL MOBILE  max 480px */
@media(max-width:480px) {
  .page-nav {
    flex-direction: column;
    gap: 10px;
  }

  .page-nav-item {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding-bottom: 10px;
  }

  .page-nav-item:last-child {
    border-bottom: none;
  }

  .port-split-visual {
    grid-template-columns: 1fr;
  }

  .onb-tl-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive for new layouts */
@media(max-width: 1024px) {
  .page-header {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    display: block !important;
  }

  .page-header-content {
    padding: 110px 40px 64px !important;
  }

  .page-header-image {
    display: none;
  }

  .meth-chart-strip-inner {
    grid-template-columns: 1fr;
  }

  .meth-chart-svg-wrap {
    height: 220px;
  }

  .meth-chart-text {
    padding: 40px 40px 24px;
  }
}

@media(max-width: 768px) {
  .page-header-content {
    padding: 90px 24px 52px !important;
  }

  .meth-chart-text {
    padding: 32px 24px 20px;
  }
}


/*  MOBILE: DISABLE REVEAL ANIMATIONS
   Content must always be visible on mobile
 */
@media(max-width:768px) {

  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
}

@media(max-width:768px) {
  .meth-chart-strip-inner {
    grid-template-columns: 1fr !important;
  }

  .meth-chart-svg-wrap {
    height: 200px;
  }

  .meth-chart-text {
    padding: 32px 24px 16px;
  }

  .onb-steps {
    grid-template-columns: 1fr !important;
  }

  .onb-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media(max-width:480px) {
  .meth-chart-svg-wrap {
    display: none;
  }

  .meth-chart-strip-inner {
    grid-template-columns: 1fr !important;
  }
}

/* Custom Cursors and Pointer Rules on Mobile/Tablets */
@media(max-width:1024px) {
  body {
    cursor: auto !important;
  }
  .cursor, .cursor-ring {
    display: none !important;
  }
  a, button, [role="button"], input[type="checkbox"], input[type="submit"] {
    cursor: pointer !important;
  }
  .btn-request {
    cursor: pointer !important;
  }
}

/* Center the pyramid in its block on screens under 1280px */
@media(max-width:1280px) {
  .alloc-inline-pyramid {
    grid-column: 1 / -1 !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .alloc-inline-pyramid img {
    margin: 0 auto !important;
    display: block !important;
  }
}

/* Mobile Menu & Nav Responsiveness */
@media(max-width:768px) {
  .nav-mobile-menu {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

/* Geographic Flow Chart (Onboarding Section) Stacking */
@media(max-width:768px) {
  .geo-flow-track {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .geo-node {
    width: 100% !important;
    max-width: 280px !important;
  }
  .geo-arrow {
    transform: rotate(90deg) !important;
    padding: 8px 0 !important;
  }
}

/* Portfolios Section Border Resets */
@media(max-width:768px) {
  .port-char {
    border-bottom: 1px solid var(--border) !important;
  }
  .port-char:last-child {
    border-bottom: none !important;
  }
}

/* Small mobile responsiveness (< 480px) */
@media(max-width:480px) {
  .nav-logo {
    font-size: 1rem !important;
  }
  .stats-bar {
    grid-template-columns: 1fr !important;
  }
  .stats-bar-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
  }
  .stats-bar-item:last-child {
    border-bottom: none !important;
  }
  .barbell-bar {
    width: auto !important;
    max-width: 60px !important;
    flex: 1 1 auto !important;
  }
  .alloc-inline-pyramid {
    width: 100% !important;
    max-width: 340px !important;
  }
}

/* Extra small mobile responsiveness (< 400px) */
@media(max-width:400px) {
  .page-header-content {
    padding: 90px 16px 52px !important;
  }
  .phil-pullquote::before {
    left: 10px !important;
    top: 20px !important;
    font-size: 4rem !important;
  }
}