/* ==========================================================================
   LedgerBridge Financial - Master Design System
   Aesthetic: Hybrid Executive Fintech
   Colors: Midnight Navy (#041935), Cyan (#42A2CD), Amber CTA (#F2A605)
   Typography: Plus Jakarta Sans, Inter, JetBrains Mono
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary: #041935;
  --color-primary-dark: #020f22;
  --color-surface: #072246;
  --color-surface-card: #0a2c58;
  --color-surface-hover: #0e376c;
  --color-surface-glass: rgba(7, 34, 70, 0.75);

  --color-accent: #42A2CD;
  --color-accent-light: #6bc2e8;
  --color-accent-dim: rgba(66, 162, 205, 0.12);
  --color-accent-glow: rgba(66, 162, 205, 0.3);

  --color-cta: #F2A605;
  --color-cta-hover: #ffb82b;
  --color-cta-active: #d69004;
  --color-cta-glow: rgba(242, 166, 5, 0.35);

  --color-success: #10b981;
  --color-success-dim: rgba(16, 185, 129, 0.15);

  /* Typography Colors */
  --color-text-white: #FFFFFF;
  --color-text-light: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;

  /* Borders & Dividers */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(66, 162, 205, 0.4);
  --color-border-focus: #42A2CD;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', Consolas, monospace;

  /* Layout */
  --container-max: 1240px;
  --container-wide: 1360px;
  --nav-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(66, 162, 205, 0.2);
  --shadow-cta: 0 6px 24px rgba(242, 166, 5, 0.32);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-text-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-cta);
  color: var(--color-primary);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: 15px;
}

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-white);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.05rem;
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  max-width: var(--container-wide);
}

.container-sm {
  max-width: 900px;
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
  position: relative;
}

.section-sm {
  padding: clamp(40px, 5vw, 70px) 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.badge-cyan {
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border: 1px solid rgba(66, 162, 205, 0.3);
}

.badge-amber {
  background: rgba(242, 166, 5, 0.12);
  color: var(--color-cta);
  border: 1px solid rgba(242, 166, 5, 0.3);
}

.badge-green {
  background: var(--color-success-dim);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-cta,
.btn-primary {
  background-color: var(--color-cta);
  color: var(--color-primary);
  border-color: var(--color-cta);
  box-shadow: var(--shadow-cta);
}

.btn-cta:hover,
.btn-primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(242, 166, 5, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-white);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 162, 205, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: rgba(66, 162, 205, 0.5);
}

.btn-outline:hover {
  background-color: var(--color-accent-dim);
  border-color: var(--color-accent);
  color: var(--color-text-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-utility-bar {
  background-color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  display: block;
}

.top-utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-contact-links a {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-contact-links a:hover {
  color: var(--color-cta);
}

.top-badge-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

header.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(4, 25, 53, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

header.site-header.scrolled {
  background-color: rgba(2, 15, 34, 0.96);
  border-bottom-color: rgba(66, 162, 205, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 55px;
  max-width: 240px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-card) 100%);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  box-shadow: 0 0 15px rgba(66, 162, 205, 0.25);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name span {
  color: var(--color-accent);
}

.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cta);
  font-weight: 600;
}

/* Desktop Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-cta);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link .dropdown-caret {
  font-size: 0.65rem;
  transition: transform var(--transition-fast);
  color: var(--color-accent);
}

.nav-item:hover .nav-link .dropdown-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu (Two Columns) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 620px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: linear-gradient(180deg, #072246 0%, #041935 100%);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(66, 162, 205, 0.2);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 1050;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: rgba(66, 162, 205, 0.12);
  color: var(--color-text-white);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  background: rgba(66, 162, 205, 0.15);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-item-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Nav Right CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-white);
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 15, 34, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 2000;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-white);
  padding: 8px 12px;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-white);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-link:hover {
  color: var(--color-cta);
}

.mobile-sub-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.mobile-sub-link {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.mobile-sub-link:hover {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .top-utility-bar {
    display: none;
  }

  .nav-menu,
  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background-color: var(--color-primary-dark);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 30px;
  color: var(--color-text-muted);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 18px 0 24px;
  max-width: 340px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.footer-contact-item a {
  color: var(--color-text-light);
}

.footer-contact-item a:hover {
  color: var(--color-cta);
}

.footer-contact-icon {
  color: var(--color-accent);
  width: 18px;
}

.footer-socials {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(66, 162, 205, 0.08);
  border: 1px solid rgba(66, 162, 205, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-accent-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-social-link-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
  gap: 6px;
}

.footer-social-link-sm svg {
  width: 13px;
  height: 13px;
}

.blog-author-tag-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1.5px solid var(--color-accent);
  display: inline-block;
  vertical-align: middle;
}

.footer-col h4 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--color-cta);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--color-text-dim);
}

.footer-legal-links a:hover {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Section Color Variations
   Apply these classes to <section> elements for visual rhythm / contrast.
   ========================================================================== */

/* Default (inherits body navy #041935) */
.section-navy {
  background-color: var(--color-primary);
}

/* Deeper dark — use after hero and for FAQ / CTA alternating rows */
.section-dark {
  background-color: var(--color-primary-dark);
}

/* Subtle surface card — for profile, testimonial, and pricing sections */
.section-surface {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Teal/cyan-tinted section — for trust, proof, and advantage sections */
.section-teal {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #042238 50%, var(--color-primary-dark) 100%);
  position: relative;
}

.section-teal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(66, 162, 205, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

/* Amber/gold-tinted section — for pricing and CTA banner sections */
.section-amber {
  background: linear-gradient(180deg, var(--color-primary) 0%, #0d1f08 50%, var(--color-primary) 100%);
  background: linear-gradient(180deg, #041935 0%, #091e2f 50%, #041935 100%);
  position: relative;
}

.section-amber::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(242, 166, 5, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Charcoal slate — for service detail pages and secondary sections */
.section-slate {
  background-color: #051626;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   Image Holder / Placeholder Component
   Replace .img-holder > img or set a background-image on .img-holder.
   ========================================================================== */
.img-holder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(66, 162, 205, 0.35);
  background: linear-gradient(135deg, rgba(7, 34, 70, 0.85) 0%, rgba(4, 25, 53, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-dim);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
  transition: border-color var(--transition-base);
}

.img-holder:hover {
  border-color: rgba(66, 162, 205, 0.6);
}

.img-holder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-lg) - 2px);
}

/* When image is added, hide the placeholder overlay text and icon, and use solid subtle border */
.img-holder:has(img) {
  border: 1px solid var(--color-border);
}

.img-holder:has(img) .img-holder-label,
.img-holder:has(img) .img-holder-icon {
  display: none;
}

.img-holder-icon {
  width: 48px;
  height: 48px;
  background: rgba(66, 162, 205, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-accent);
  margin-bottom: 4px;
}

/* Size variants */
.img-holder-sm {
  min-height: 200px;
}

.img-holder-md {
  min-height: 300px;
}

.img-holder-lg {
  min-height: 420px;
}

.img-holder-xl {
  min-height: 540px;
}

.img-holder-square {
  aspect-ratio: 1 / 1;
}

.img-holder-portrait {
  aspect-ratio: 3 / 4;
}

.img-holder-landscape {
  aspect-ratio: 16 / 9;
}

/* Round avatar variant */
.img-holder-avatar {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  min-height: unset;
  flex-shrink: 0;
}

/* ==========================================================================
   Staggered Skeleton Loading Screen
   ========================================================================== */
.skeleton-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #031329;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 3vw, 28px);
  gap: 28px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: none;
}

.skeleton-screen.skeleton-hidden {
  opacity: 0;
  visibility: hidden;
}

.skeleton-inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(10, 44, 88, 0.7) 0%,
    rgba(66, 162, 205, 0.22) 50%,
    rgba(10, 44, 88, 0.7) 100%
  );
  background-size: 250% 100%;
  border-radius: var(--radius-sm);
  animation: skeleton-wave 1.75s ease-in-out infinite;
}

@keyframes skeleton-wave {
  0% {
    background-position: 250% 0;
  }
  100% {
    background-position: -250% 0;
  }
}

/* Staggered loading offsets */
.skeleton-stagger-1 { animation-delay: 0.05s; }
.skeleton-stagger-2 { animation-delay: 0.18s; }
.skeleton-stagger-3 { animation-delay: 0.30s; }
.skeleton-stagger-4 { animation-delay: 0.42s; }
.skeleton-stagger-5 { animation-delay: 0.54s; }

.skeleton-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

.skeleton-hero-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin-top: 10px;
}

.skeleton-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .skeleton-cards-row {
    grid-template-columns: 1fr;
  }
  .skeleton-cards-row > :nth-child(n+2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer {
    animation: none;
  }
}