/* =============================================
   ATMOSPHERIC BACKGROUND
   ============================================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

/* The photographic background image */
.site-bg__photo {
  position: absolute;
  inset: 0;
  background-image: url('../assets/bg.jpg');
  background-image: url('../assets/bg.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  /* Darken + desaturate the photo slightly */
  filter: brightness(0.38) saturate(0.8);
  transform: scale(1.05); /* prevent edge show on parallax */
}

/* Deep dark overlay to anchor the UI */
.site-bg__overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(180, 80, 20, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(120, 50, 10, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.65) 0%, rgba(8, 8, 8, 0.30) 50%, rgba(8, 8, 8, 0.70) 100%);
}

/* Subtle grain texture for depth */
.site-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}


/* =============================================
   LAYOUT SYSTEM
   ============================================= */

.site-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ─── VERTICAL NAVIGATION ────────────────────
   Floating left-side pill nav (desktop).
   ──────────────────────────────────────────── */
.site-nav {
  position: fixed !important;
  left: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  width: 66px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 26px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 24px 60px rgba(0, 0, 0, 0.40),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  opacity: 1 !important;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.site-nav:active {
  cursor: default;
}

.site-nav.is-dragging {
  cursor: default !important;
  border-color: rgba(232, 130, 58, 0.65) !important;
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.70),
    0 0 45px rgba(232, 130, 58, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35);
}

.site-nav.is-dragging .nav-liquid-pill {
  transition: transform 30ms linear, opacity 150ms ease !important;
  filter: brightness(1.25) drop-shadow(0 0 22px rgba(232, 130, 58, 0.9));
}

.site-nav.is-dragging .nav-item {
  transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1), color 150ms ease, background 150ms ease;
}

.site-nav.is-dragging .nav-item.drag-hover {
  color: #fff !important;
  transform: scale(1.18) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.site-nav.is-dragging .nav-item.drag-hover .nav-tooltip {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(2px) scale(1.05) !important;
  background: rgba(22, 22, 28, 0.95) !important;
  border-color: rgba(232, 130, 58, 0.6) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(232, 130, 58, 0.35) !important;
  color: #fff !important;
}

.site-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Nav logo mark at top */
.nav-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-warm));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  box-shadow:
    0 0 20px rgba(232, 130, 58, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.40);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo:hover {
  transform: scale(1.08) rotate(-4deg);
}

.nav-items {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

/* ─── LIQUID GLASS NAVIGATION ITEMS ──────────*/
.nav-liquid-pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.42) 0%, rgba(232, 130, 58, 0.32) 50%, rgba(232, 130, 58, 0.16) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(232, 130, 58, 0.08) 100%);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 28px rgba(232, 130, 58, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.50),
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 2px rgba(232, 130, 58, 0.65),
    inset 1px 0 1.5px rgba(255, 255, 255, 0.40);
  transition:
    transform 650ms cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity 300ms ease;
  opacity: 0;
  transform: translateY(0) scale(1);
}

.nav-liquid-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255, 255, 255, 0.65) 0%, rgba(232, 130, 58, 0.30) 60%, transparent 85%);
  pointer-events: none;
}

.nav-item {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    color 300ms cubic-bezier(0.22, 1, 0.36, 1),
    background 300ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  isolation: isolate;
  outline: none;
  z-index: 2;
}

/* Fluid liquid glass specular refraction lens */
.nav-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: 
    radial-gradient(ellipse 65% 55% at var(--mouse-x, 40%) var(--mouse-y, 30%), rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 75%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1), transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

/* Liquid caustic rim highlight */
.nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.55),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.4),
    inset 1px 0 1.5px rgba(255, 255, 255, 0.2),
    inset -1px 0 1.5px rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 2;
}

.nav-item svg {
  position: relative;
  z-index: 3;
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), color 300ms ease, filter 300ms ease;
}

/* Hover: Liquid Glass droplet expands with high spring physics */
.nav-item:hover {
  color: #fff;
  transform: scale(1.15) translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(232, 130, 58, 0.25),
    0 1px 3px rgba(255, 255, 255, 0.2);
}

.nav-item:hover::before {
  opacity: 1;
}

.nav-item:hover::after {
  opacity: 1;
}

.nav-item:hover svg {
  transform: scale(1.08);
  color: #fff;
}

/* Active State: Molten Liquid Crystal Glass */
.nav-item.active {
  color: #fff !important;
  background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.35) 0%, rgba(232, 130, 58, 0.25) 50%, rgba(232, 130, 58, 0.12) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    0 0 24px rgba(232, 130, 58, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.50),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 2px rgba(232, 130, 58, 0.50),
    inset 1px 0 1.5px rgba(255, 255, 255, 0.30) !important;
}

.nav-item.active::before {
  opacity: 1 !important;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255, 255, 255, 0.55) 0%, rgba(232, 130, 58, 0.25) 55%, transparent 80%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(232, 130, 58, 0.08) 100%) !important;
}

.nav-item.active::after {
  opacity: 1 !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.90),
    inset 0 -1.5px 2px rgba(232, 130, 58, 0.60) !important;
}

.nav-item.active svg {
  color: #fff !important;
  filter: drop-shadow(0 0 8px rgba(232, 130, 58, 0.70));
  transform: scale(1.06);
}

/* Active Hover State: Ultra Glass Refraction with Cursor Sheen */
.nav-item.active:hover {
  transform: scale(1.18) translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.60) !important;
  box-shadow:
    0 0 36px rgba(232, 130, 58, 0.70),
    0 12px 32px rgba(0, 0, 0, 0.55),
    inset 0 2.5px 3.5px rgba(255, 255, 255, 0.98),
    inset 0 -2px 3px rgba(232, 130, 58, 0.75),
    inset 1px 0 2px rgba(255, 255, 255, 0.50) !important;
}

.nav-item.active:hover::before {
  opacity: 1 !important;
  background:
    radial-gradient(ellipse 70% 60% at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(255, 255, 255, 0.80) 0%, rgba(232, 130, 58, 0.40) 55%, transparent 85%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(232, 130, 58, 0.16) 100%) !important;
  transform: scale(1.04);
}

.nav-item.active:hover::after {
  opacity: 1 !important;
  box-shadow:
    inset 0 2.5px 3px rgba(255, 255, 255, 1),
    inset 0 -2px 3px rgba(232, 130, 58, 0.80) !important;
}

.nav-item.active:hover svg {
  transform: scale(1.14) !important;
  filter: drop-shadow(0 0 12px rgba(232, 130, 58, 0.95)) !important;
}

/* Tooltip as a liquid bubble */
.nav-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 6px 14px;
  background: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-spring);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 100;
}

.nav-item:hover .nav-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Nav separator */
.nav-sep {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 6px 0;
}

/* ─── MULTI-PAGE VIEW SYSTEM ─────────────────
   Each menu item is a dedicated page view.
   Zero whole-site vertical scrolling!
   ──────────────────────────────────────────── */
/* ─── MULTI-PAGE VIEW SYSTEM ─────────────────
   Each menu item is a dedicated page view.
   Zero whole-site vertical scrolling!
   ──────────────────────────────────────────── */
.site-main {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Atmospheric subtle scale-back while sliding / scrubbing along the menu bar */
body.is-sliding-nav .site-main,
.site-main.nav-blur-active {
  will-change: transform, opacity;
  transform: scale(0.985) translate3d(0, 0, 0) !important;
  opacity: 0.88 !important;
  pointer-events: none !important;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Smooth micro-fade pulse during single click page switches */
.site-main.is-page-switching {
  will-change: transform, opacity;
  transform: scale(0.995) translate3d(0, 0, 0);
  opacity: 0.92;
  transition:
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view {
  position: absolute;
  inset: 0;
  padding-left: 124px; /* generous clearance for left fixed dock nav (90px edge + 34px gap) */
  padding-right: var(--space-8);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.99);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 420ms;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page-view.active,
.site-main.is-page-switching .page-view,
body.is-sliding-nav .page-view {
  will-change: opacity, transform;
}

/* Fast and smooth crossfade during live scrubbing */
body.is-sliding-nav .page-view,
.site-main.nav-blur-active .page-view {
  transition:
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 180ms !important;
}

.page-view.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 5;
}

/* Glass scrollbar for page views */
.page-view::-webkit-scrollbar {
  width: 5px;
}
.page-view::-webkit-scrollbar-track {
  background: transparent;
}
.page-view::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease;
}
.page-view::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 130, 58, 0.55);
}

.page-inner {
  width: 100%;
  max-width: 1240px;
  margin: auto;
  min-height: min-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2) 0 var(--space-6) 0;
  box-sizing: border-box;
}

/* When page content is taller than viewport (e.g. projects, experience) */
.page-inner.page-inner-scroll {
  margin-top: 0;
  justify-content: flex-start;
  padding-top: var(--space-4);
}

/* ─── PAGE HEADER ────────────────────────────*/
.page-header {
  margin-bottom: var(--space-8);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  max-width: 580px;
  line-height: 1.65;
}

/* ─── GRID SYSTEM ────────────────────────────*/
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }

/* =============================================
   RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   All viewports feature the iconic Left Liquid Glass Dock!
   ============================================= */

/* Tablet Landscape & Compact Desktop (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-nav {
    left: 14px !important;
    width: 58px !important;
    padding: 12px 6px !important;
    gap: 4px !important;
    display: flex !important;
  }
  .site-nav .nav-item,
  .site-nav .nav-liquid-pill {
    width: 42px !important;
    height: 42px !important;
  }
  .nav-logo {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    margin-bottom: var(--space-2) !important;
  }
  .page-view {
    padding-left: 88px !important;
    padding-right: var(--space-5) !important;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile & Small Tablets (<= 768px: Android & iPhone, iPad portrait)
   Left floating liquid glass rail with ergonomic spacing
   ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav {
    display: flex !important;
    position: fixed !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    padding: 8px 4px !important;
    gap: 4px !important;
    border-radius: 20px !important;
    max-height: calc(100vh - 20px) !important;
    z-index: var(--z-nav) !important;
    background: rgba(18, 18, 22, 0.88) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.65),
      0 0 20px rgba(232, 130, 58, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
  }

  .site-nav .nav-logo {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.82rem !important;
    margin-bottom: 4px !important;
    border-radius: 10px !important;
  }

  .site-nav .nav-items {
    gap: 3px !important;
  }

  .site-nav .nav-item,
  .site-nav .nav-liquid-pill {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .site-nav .nav-item svg {
    width: 18px !important;
    height: 18px !important;
  }

  .site-nav .nav-sep {
    width: 16px !important;
    margin: 2px 0 !important;
  }

  /* Nav tooltip pops to right on mobile */
  .site-nav .nav-tooltip {
    left: calc(100% + 8px) !important;
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
  }

  /* Content area clear of left dock */
  .page-view {
    display: block !important;
    padding-left: 64px !important;
    padding-right: 14px !important;
    padding-top: 14px !important;
    padding-bottom: 28px !important;
    touch-action: pan-y !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .page-inner {
    margin: 0 auto !important;
    min-height: auto !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* Prevent 3D mouse tilt and floating jitter on touch screens */
  .tilt-card {
    transform: none !important;
  }
  .animate-float {
    animation: none !important;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.75rem; }
}

/* Compact Phones (<= 480px: iPhone 12/13/14/15, Galaxy S) */
@media (max-width: 480px) {
  .site-nav {
    left: 6px !important;
    width: 46px !important;
    padding: 7px 3px !important;
  }

  .site-nav .nav-logo {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.78rem !important;
  }

  .site-nav .nav-item,
  .site-nav .nav-liquid-pill {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }

  .site-nav .nav-item svg {
    width: 17px !important;
    height: 17px !important;
  }

  .page-view {
    display: block !important;
    padding-left: 58px !important;
    padding-right: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .page-inner {
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .site-main { padding: 0 !important; }
}

/* Very Small Phones (<= 360px: iPhone SE 1st gen, small Androids) */
@media (max-width: 360px) {
  .site-nav {
    left: 4px !important;
    width: 42px !important;
    padding: 6px 2px !important;
  }

  .site-nav .nav-logo {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
  }

  .site-nav .nav-item,
  .site-nav .nav-liquid-pill {
    width: 33px !important;
    height: 33px !important;
    border-radius: 9px !important;
  }

  .site-nav .nav-item svg {
    width: 15px !important;
    height: 15px !important;
  }

  .page-view {
    display: block !important;
    padding-left: 50px !important;
    padding-right: 8px !important;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .page-inner {
    margin: 0 auto !important;
    padding: 0 !important;
  }
}


