/* ==========================================================================
   Portafolio Sonya Córdova — Estilo clásico formal iPortfolio (v2.1.0)
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-section-alt: #f5f8fd;
  --sidebar-bg: #040b14;
  --sidebar-surface: #212431;
  --sidebar-border: #2c2f3f;
  --sidebar-muted: #a8a9b4;
  --text-main: #272829;
  --text-muted: #525866;
  --heading-navy: #173b6c;
  --heading-dark: #050d18;
  --timeline-blue: #1f5297;
  --timeline-badge-bg: #e4edf9;
  --accent-color: #149ddd;
  --accent-dark: #0e74a8;
  --accent-hover: #37b3ed;
  --accent-soft: #dff3fc;
  --border-subtle: #dce6f5;
  --surface-card: #ffffff;
  --shadow-card: 0 4px 24px rgba(5, 13, 24, 0.08);
  --shadow-card-hover: 0 10px 30px rgba(23, 59, 108, 0.14);

  --sidebar-width: 300px;
  --font-body: "Open Sans", system-ui, -apple-system, sans-serif;
  --font-heading: "Raleway", system-ui, -apple-system, sans-serif;
  --font-ui: "Poppins", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--heading-dark);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  inset-block-start: 16px;
  color: #ffffff;
}

.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

/* ==========================================================================
   Sidebar + Navigation Drawer (mobile < 1200px / sidebar >= 1200px)
   ========================================================================== */

.Drawer {
  --drawer-width: min(300px, 82dvw, 100dvw - 24px);
  --drawer-backdrop: 0;

  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #040b14;
  opacity: calc(var(--drawer-backdrop) * 0.65);
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::after {
  content: "";
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100svh;
  padding: 20px 18px 24px;
  background: var(--sidebar-bg);
  color: #ffffff;
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-border) transparent;
}

@supports (animation-timeline: scroll()) {
  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }

  @keyframes fade-drawer-backdrop {
    0% {
      --drawer-backdrop: 1;
    }
    100% {
      --drawer-backdrop: 0;
    }
  }

  @media (max-width: 1199px) {
    .Drawer {
      timeline-scope: --drawer-fade;
      animation: fade-drawer-backdrop linear both;
      animation-timeline: --drawer-fade;
    }

    .Drawer-scroller {
      scroll-timeline: --drawer-fade x;
    }
  }
}

.drawer-close-row {
  display: flex;
  justify-content: flex-end;
  margin-block-end: 4px;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sidebar-border);
  background: var(--sidebar-surface);
  color: #ffffff;
  cursor: pointer;
}

.drawer-close-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-color);
}

.sidebar-profile {
  text-align: center;
}

.sidebar-avatar {
  width: 120px;
  height: 120px;
  margin-inline: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--sidebar-border);
}

.sidebar-brand {
  margin: 14px 0 2px;
  font-family: var(--font-ui);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.sidebar-brand a {
  color: #ffffff;
}

.sidebar-brand a:hover {
  color: var(--accent-hover);
}

.sidebar-role {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--sidebar-muted);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sidebar-surface);
  color: #ffffff;
}

.social-links a:hover {
  background: var(--accent-color);
  color: #ffffff;
}

.nav-menu {
  margin-top: 26px;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--sidebar-muted);
}

.nav-link svg {
  flex-shrink: 0;
  color: #7c8496;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover svg,
.nav-link.active svg,
.nav-link[aria-current="page"] svg {
  color: var(--accent-color);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: var(--sidebar-muted);
}

.sidebar-footer p {
  margin: 2px 0;
}

.sidebar-footer .sidebar-meta {
  color: #8c909f;
}

/* Mobile fixed hamburger button */
.mobile-nav-toggle {
  position: fixed;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(4, 11, 20, 0.35);
  cursor: pointer;
}

.mobile-nav-toggle:hover {
  background: var(--accent-color);
}

@media (min-width: 1200px) {
  #sidebar.Drawer {
    display: block;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    inline-size: var(--sidebar-width);
    block-size: 100svh;
    z-index: 900;
  }

  .Drawer-scroller {
    display: block;
    overflow: visible;
    scroll-snap-type: none;
    height: 100%;
  }

  .Drawer-scroller::after {
    content: none;
    display: none;
  }

  .Drawer-sheet {
    height: 100%;
    padding: 26px 20px 24px;
  }

  .drawer-close-row,
  .mobile-nav-toggle {
    display: none;
  }

  #main,
  .site-footer {
    margin-inline-start: var(--sidebar-width);
  }
}

/* ==========================================================================
   Hero section
   ========================================================================== */

.hero-section {
  position: relative;
  min-block-size: 100svh;
  display: flex;
  align-items: center;
  padding-block: 80px 64px;
  color: #ffffff;
  background: var(--heading-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: -2;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(5, 13, 24, 0.82) 0%,
    rgba(5, 13, 24, 0.6) 52%,
    rgba(5, 13, 24, 0.38) 100%
  );
}

.hero-container {
  position: relative;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(55, 179, 237, 0.45);
  background: rgba(4, 11, 20, 0.65);
  color: #dff3fc;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-container h1 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
}

.hero-subtitle {
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: #f0f4fa;
}

.hero-subtitle span {
  color: #ffffff;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--accent-color);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 60ch;
  font-size: 1.03rem;
  color: #e4eaf4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-outline-light,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-dark);
  color: #ffffff;
  border: 2px solid var(--accent-dark);
}

.btn-primary:hover {
  background: #0b5d87;
  border-color: #0b5d87;
  color: #ffffff;
}

.btn-outline-light {
  background: rgba(4, 11, 20, 0.5);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--heading-dark);
  border-color: #ffffff;
}

.btn-secondary {
  background: var(--bg-page);
  color: var(--heading-navy);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--timeline-badge-bg);
  border-color: var(--accent-color);
  color: var(--heading-dark);
}

/* ==========================================================================
   Shared Sections & Formal Section Headings
   ========================================================================== */

.section-block {
  padding-block: 68px;
  background: var(--bg-page);
  scroll-margin-top: 16px;
}

.section-bg {
  background: var(--bg-section-alt);
}

.section-title {
  margin-bottom: 34px;
}

.section-title h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.6vw, 2.05rem);
  font-weight: 700;
  color: var(--heading-navy);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  inset-block-end: 0;
  inset-inline-start: 0;
}

.section-title p {
  margin: 0;
  max-width: 78ch;
  color: var(--text-muted);
}

/* ==========================================================================
   About / Sobre mí
   ========================================================================== */

.about-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(250px, 320px) 1fr;
    gap: 36px;
  }
}

.about-portrait {
  margin: 0;
  background: var(--surface-card);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.about-content h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--heading-navy);
}

.about-objective {
  margin: 0 0 22px;
  font-style: italic;
  color: var(--text-main);
}

.about-facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px 24px;
}

@media (min-width: 640px) {
  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.96rem;
}

.fact-chevron {
  color: var(--accent-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.specialties-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .specialties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.specialty-card {
  padding: 18px 20px;
  background: var(--bg-section-alt);
  border: 1px solid var(--border-subtle);
  border-inline-start: 4px solid var(--accent-color);
  border-radius: var(--radius-sm);
}

.specialty-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--heading-navy);
}

.specialty-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Resume / Trayectoria Timeline
   ========================================================================== */

.resume-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

.resume-heading {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading-dark);
}

.resume-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-item {
  position: relative;
  padding-inline-start: 24px;
  padding-bottom: 24px;
  border-inline-start: 2px solid var(--timeline-blue);
}

.resume-item:last-child {
  padding-bottom: 0;
}

.resume-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -9px;
  inset-block-start: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--timeline-blue);
}

.resume-item h4 {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--heading-dark);
}

.resume-period {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: var(--timeline-badge-bg);
  color: var(--heading-navy);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
}

.resume-org {
  margin: 0 0 6px;
  font-style: italic;
  font-weight: 600;
  color: var(--heading-navy);
}

.resume-detail {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Portfolio Filters & Collection Grid
   ========================================================================== */

.portfolio-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

#portfolio-flters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-section-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.filter-btn {
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--accent-dark);
}

.filter-btn[aria-pressed="true"] {
  background: var(--accent-dark);
  color: #ffffff;
}

.filter-count {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.collections-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .collections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.collection-card[hidden] {
  display: none;
}

.collection-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.collection-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.collection-card-link:hover {
  color: inherit;
}

.portfolio-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-section-alt);
}

.portfolio-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.35s ease;
}

.collection-card:hover .portfolio-wrap img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(5, 13, 24, 0.78);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
}

.collection-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.collection-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
}

.collection-card-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading-navy);
}

.collection-subtitle {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
}

.collection-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--heading-navy);
}

.collection-card:hover .collection-card-foot span:last-child {
  color: var(--accent-dark);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

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

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.contact-info-card,
.contact-cta-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.contact-item h3 {
  margin: 0 0 2px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-dark);
}

.contact-item p,
.contact-item a {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  word-break: break-word;
}

.contact-item a {
  color: var(--accent-dark);
  font-weight: 600;
}

.contact-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.contact-cta-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-navy);
}

.contact-cta-card p {
  margin: 0;
  color: var(--text-muted);
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Collection Detail Pages
   ========================================================================== */

.breadcrumbs-bar {
  padding-block: 18px;
  background: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: var(--text-muted);
}

.collection-details-section {
  padding-block: 44px 36px;
}

.collection-details-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .collection-details-grid {
    grid-template-columns: 1.25fr 0.95fr;
  }
}

.collection-stage {
  margin: 0;
  background: var(--bg-section-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: center;
}

.collection-stage img {
  max-height: 560px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.portfolio-info {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.portfolio-info h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--heading-navy);
}

.portfolio-info dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.portfolio-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.95rem;
}

.portfolio-info dt {
  font-weight: 700;
  color: var(--heading-dark);
}

.portfolio-info dt::after {
  content: ":";
}

.portfolio-info dd {
  margin: 0;
  color: var(--text-muted);
}

.portfolio-description {
  margin-top: 24px;
}

.portfolio-description h1 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--heading-navy);
}

.collection-hero-sub {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.portfolio-description p:last-child {
  margin: 0;
  color: var(--text-main);
}

/* ==========================================================================
   Tabs & Gallery Grid
   ========================================================================== */

.gallery-section {
  padding-block: 36px 64px;
  background: var(--bg-section-alt);
}

.section-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 28px;
}

.section-tablist [role="tab"] {
  position: relative;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.section-tablist [role="tab"]:hover {
  color: var(--heading-navy);
}

.section-tablist [role="tab"][aria-selected="true"] {
  color: var(--heading-navy);
}

.section-tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  border-block-end: 3px solid var(--accent-color);
}

.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-grid--compact {
  max-width: 780px;
}

.plate-card {
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.plate-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border: 0;
  background: #ffffff;
  cursor: zoom-in;
}

.plate-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.plate-trigger--cover {
  padding: 0;
}

.plate-trigger--cover img {
  object-fit: cover;
  object-position: center 18%;
}

.plate-trigger:hover img {
  transform: scale(1.03);
}

.plate-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.load-more-wrap {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.load-more-status {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.collection-pager {
  padding-block: 36px 56px;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .collection-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.pager-link:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-card-hover);
}

.pager-dir {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
}

.pager-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-navy);
}

/* ==========================================================================
   Lightbox Modal Dialog
   ========================================================================== */

.lightbox-dialog {
  width: min(960px, 100vw - 24px);
  max-width: none;
  max-height: 92svh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-main);
  box-shadow: 0 24px 60px rgba(4, 11, 20, 0.45);
}

.lightbox-dialog::backdrop {
  background: rgba(4, 11, 20, 0.82);
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  max-height: 92svh;
}

.lightbox-bar,
.lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-section-alt);
}

.lightbox-bar {
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-foot {
  border-top: 1px solid var(--border-subtle);
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--heading-navy);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #0b111c;
  min-height: 260px;
  overflow: auto;
}

.lightbox-stage img {
  max-height: calc(92svh - 170px);
  width: auto;
  object-fit: contain;
}

.lightbox-nav {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Footer & Back-to-top
   ========================================================================== */

.site-footer {
  padding-block: 24px;
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.back-to-top {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(4, 11, 20, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-color);
  color: #ffffff;
}

/* ==========================================================================
   Accessibility: Reduced Motion & Forced Colors
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .section-tablist [role="tab"][aria-selected="true"]::after {
    border-block-end: 3px solid Highlight;
  }

  .filter-btn[aria-pressed="true"] {
    border: 2px solid Highlight;
  }
}
