/* Rebecca Bauen Studio - Modern Archival Stylesheet */
:root {
  --color-parchment: #f4ede2;
  --color-parchment-light: #faf7f2;
  --color-parchment-dark: #e8ded0;
  --color-ink: #2b2520;
  --color-ink-muted: #5e544b;
  --color-accent-amber: #8c6239;
  --color-border: #d9cebe;
}

html,
body {
  font-family: 'Inter', sans-serif;
  color: var(--color-ink);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

.font-serif-archival {
  font-family: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
}

.font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Banner container & header styling */
.banner-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

.banner-container picture {
  display: block;
  width: 100%;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  min-height: 46px;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Torn Tab Ragged Edge Clip Paths */
.clip-torn-1 {
  -webkit-clip-path: polygon(0% 4%, 3% 0%, 96% 2%, 100% 6%, 98% 94%, 95% 99%, 4% 97%, 0% 92%);
  clip-path: polygon(0% 4%, 3% 0%, 96% 2%, 100% 6%, 98% 94%, 95% 99%, 4% 97%, 0% 92%);
}
.clip-torn-2 {
  -webkit-clip-path: polygon(2% 2%, 98% 0%, 100% 8%, 97% 93%, 94% 98%, 3% 100%, 0% 90%, 1% 10%);
  clip-path: polygon(2% 2%, 98% 0%, 100% 8%, 97% 93%, 94% 98%, 3% 100%, 0% 90%, 1% 10%);
}
.clip-torn-3 {
  -webkit-clip-path: polygon(1% 0%, 97% 3%, 100% 12%, 99% 95%, 96% 99%, 2% 98%, 0% 92%);
  clip-path: polygon(1% 0%, 97% 3%, 100% 12%, 99% 95%, 96% 99%, 2% 98%, 0% 92%);
}
.clip-torn-sub1 {
  -webkit-clip-path: polygon(3% 0%, 98% 2%, 100% 10%, 97% 96%, 93% 100%, 2% 97%, 0% 88%);
  clip-path: polygon(3% 0%, 98% 2%, 100% 10%, 97% 96%, 93% 100%, 2% 97%, 0% 88%);
}
.clip-torn-sub2 {
  -webkit-clip-path: polygon(1% 3%, 96% 0%, 100% 6%, 98% 94%, 95% 98%, 4% 100%, 0% 93%);
  clip-path: polygon(1% 3%, 96% 0%, 100% 6%, 98% 94%, 95% 98%, 4% 100%, 0% 93%);
}
.clip-torn-sub3 {
  -webkit-clip-path: polygon(2% 1%, 99% 4%, 97% 92%, 94% 99%, 3% 97%, 0% 90%, 1% 8%);
  clip-path: polygon(2% 1%, 99% 4%, 97% 92%, 94% 99%, 3% 97%, 0% 90%, 1% 8%);
}
.clip-torn-card {
  -webkit-clip-path: polygon(0.5% 0.5%, 99.2% 0.2%, 99.8% 99.4%, 0.4% 99.8%);
  clip-path: polygon(0.5% 0.5%, 99.2% 0.2%, 99.8% 99.4%, 0.4% 99.8%);
}

/* Torn Tab Dropdown Button Styling — Warm parchment gradient */
.torn-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #D6CDBC 0%, #EAE3D2 6px, #E5DEC9 100%);
  color: #2c251e;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  filter: drop-shadow(0 2px 2px rgba(45, 38, 25, 0.12));
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.torn-tab-btn:hover {
  background: linear-gradient(180deg, #DED6C5 0%, #F3EDE0 6px, #EFE9DA 100%);
  color: #111111;
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 5px rgba(45, 38, 25, 0.18));
}

/* --------------------------------------------------------------------------
   Compact Torn-Paper Pill — Sculpture Quick-Navigator Links
   -------------------------------------------------------------------------- */
.torn-paper-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem 0.35rem;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #2c251e;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  background: linear-gradient(180deg, #D6CDBC 0%, #EAE3D2 4px, #E5DEC9 100%);
  filter: drop-shadow(0 2px 2px rgba(45, 38, 25, 0.12));

  transition:
    transform 0.14s cubic-bezier(0.2, 0.8, 0.25, 1),
    filter 0.14s ease,
    background 0.14s ease,
    color 0.14s ease;
}
@media (hover: hover) and (pointer: fine) {
  .torn-paper-pill:hover {
    transform: translateY(-3px);
    color: #000000;
    background: linear-gradient(180deg, #D0C7B2 0%, #F3EDE0 4px, #EFE9DA 100%);
    filter: drop-shadow(0 5px 6px rgba(45, 38, 25, 0.18));
  }
}
.torn-paper-pill:active,
.torn-paper-pill.is-tap-active {
  transform: translateY(-1px) scale(0.97);
  background: linear-gradient(180deg, #BFB49C 0%, #FAF6EC 4px, #F5EFE2 100%);
}
.torn-paper-pill:focus-visible {
  outline: 2px solid #6b4d2e;
  outline-offset: 3px;
}

/* Micro-tear clip-path variations for pills */
.torn-paper-pill--tear-1 {
  -webkit-clip-path: polygon(0% 100%, 0% 15%, 5% 5%, 15% 12%, 25% 3%, 40% 10%, 55% 4%, 70% 11%, 82% 3%, 92% 9%, 100% 12%, 100% 100%);
  clip-path: polygon(0% 100%, 0% 15%, 5% 5%, 15% 12%, 25% 3%, 40% 10%, 55% 4%, 70% 11%, 82% 3%, 92% 9%, 100% 12%, 100% 100%);
}
.torn-paper-pill--tear-2 {
  -webkit-clip-path: polygon(0% 100%, 0% 12%, 4% 4%, 12% 10%, 22% 3%, 35% 8%, 48% 2%, 62% 9%, 75% 4%, 88% 11%, 96% 5%, 100% 14%, 100% 100%);
  clip-path: polygon(0% 100%, 0% 12%, 4% 4%, 12% 10%, 22% 3%, 35% 8%, 48% 2%, 62% 9%, 75% 4%, 88% 11%, 96% 5%, 100% 14%, 100% 100%);
}
.torn-paper-pill--tear-3 {
  -webkit-clip-path: polygon(0% 100%, 0% 10%, 6% 3%, 18% 9%, 30% 4%, 44% 12%, 58% 3%, 72% 8%, 84% 4%, 94% 10%, 100% 6%, 100% 100%);
  clip-path: polygon(0% 100%, 0% 10%, 6% 3%, 18% 9%, 30% 4%, 44% 12%, 58% 3%, 72% 8%, 84% 4%, 94% 10%, 100% 6%, 100% 100%);
}

/* Parchment card styling - Apple 2026 Squircle & Optical Micro-Ring standard */
.parchment-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 12px 36px -4px rgba(44, 37, 30, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.parchment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 20px 48px -6px rgba(44, 37, 30, 0.09);
}

/* Archival Newspaper Watermark Overlay - Viewport-Fixed Full Canvas */
.archival-watermark {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.archival-watermark-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/vintage_newspaper_texture.webp');
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: 0.14;
  filter: contrast(1.15) sepia(0.25);
  will-change: transform;
}

/* Card-level archival typo watermark (Code-embedded SVG) */
.card-watermarked {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20280%20220%22%20width%3D%22280%22%20height%3D%22220%22%3E%20%3Cg%20transform%3D%22rotate%28-22%20140%20110%29%22%20fill%3D%22%232b2520%22%20opacity%3D%220.07%22%3E%20%3Ctext%20x%3D%2230%22%20y%3D%2235%22%20font-family%3D%22%27Inter%27%2C%20-apple-system%2C%20sans-serif%22%20font-size%3D%2222%22%20font-weight%3D%22900%22%20letter-spacing%3D%221.5%22%3EOTHER%20OPINION%3C/text%3E%20%3Ctext%20x%3D%2230%22%20y%3D%2254%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%2213%22%20font-style%3D%22italic%22%3EDaily%20News%20%26%238226%3B%20Editorial%3C/text%3E%20%3Cline%20x1%3D%2230%22%20y1%3D%2260%22%20x2%3D%22260%22%20y2%3D%2260%22%20stroke%3D%22%232b2520%22%20stroke-width%3D%220.8%22%20opacity%3D%220.5%22/%3E%20%3Ctext%20x%3D%2230%22%20y%3D%2275%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%229%22%20letter-spacing%3D%220.2%22%3Ewas%20all%20the%20time%20and%20with%20partisan%20bickering%3C/text%3E%20%3Ctext%20x%3D%2230%22%20y%3D%2288%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%229%22%20letter-spacing%3D%220.2%22%3Eover%20power%20for%20its%20own%20sake...%20the%20public%3C/text%3E%20%3Ctext%20x%3D%2230%22%20y%3D%22101%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%229%22%20letter-spacing%3D%220.2%22%3Ebeginning%20to%20question%20changes%20confronting%20us%3C/text%3E%20%3Ctext%20x%3D%2230%22%20y%3D%22119%22%20font-family%3D%22%27Inter%27%2C%20sans-serif%22%20font-size%3D%2218%22%20font-weight%3D%22900%22%20letter-spacing%3D%221%22%3EGOVERNMENT%3C/text%3E%20%3Ctext%20x%3D%2230%22%20y%3D%22134%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%2211%22%20font-weight%3D%22bold%22%3Eor%20our%20passport%3C/text%3E%20%3Ctext%20x%3D%2230%22%20y%3D%22148%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%20letter-spacing%3D%220.2%22%3Ecultivating%20the%20sacred%20through%20play%20%26amp%3B%20story%3C/text%3E%20%3Ctext%20x%3D%2230%22%20y%3D%22160%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%20letter-spacing%3D%220.2%22%3Etransforming%20heirlooms%20into%20understanding%3C/text%3E%20%3C/g%3E%20%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -10px bottom -10px;
  background-size: 260px auto;
}

/* Studio Archive highlight banner watermark (Code-embedded panoramic SVG) */
.card-watermarked-archive {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20900%20240%22%20width%3D%22900%22%20height%3D%22240%22%3E%20%3Cg%20transform%3D%22rotate%28-10%20140%20120%29%22%20fill%3D%22%232b2520%22%20opacity%3D%220.055%22%3E%20%3Ctext%20x%3D%2220%22%20y%3D%2250%22%20font-family%3D%22%27Inter%27%2C%20sans-serif%22%20font-size%3D%2220%22%20font-weight%3D%22900%22%20letter-spacing%3D%221.2%22%3ESTUDIO%20ARCHIVE%3C/text%3E%20%3Ctext%20x%3D%2220%22%20y%3D%2270%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%2212%22%20font-style%3D%22italic%22%3ESelected%20Assemblages%20%26amp%3B%20Works%3C/text%3E%20%3Cline%20x1%3D%2220%22%20y1%3D%2276%22%20x2%3D%22260%22%20y2%3D%2276%22%20stroke%3D%22%232b2520%22%20stroke-width%3D%220.8%22%20opacity%3D%220.5%22/%3E%20%3Ctext%20x%3D%2220%22%20y%3D%2292%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%3Ecaravans%2C%20arks%20%26amp%3B%20wagons%20with%20inviting%20interiors%3C/text%3E%20%3Ctext%20x%3D%2220%22%20y%3D%22105%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%3Evehicles%20for%20storytelling%20%26amp%3B%20emotional%20healing%3C/text%3E%20%3Ctext%20x%3D%2220%22%20y%3D%22118%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%3Einspired%20by%20the%20natural%20world%20%26amp%3B%20poets%3C/text%3E%20%3C/g%3E%20%3Cg%20transform%3D%22rotate%2812%20760%20120%29%22%20fill%3D%22%232b2520%22%20opacity%3D%220.055%22%3E%20%3Ctext%20x%3D%22620%22%20y%3D%2250%22%20font-family%3D%22%27Inter%27%2C%20sans-serif%22%20font-size%3D%2220%22%20font-weight%3D%22900%22%20letter-spacing%3D%221.2%22%3EOTHER%20OPINION%3C/text%3E%20%3Ctext%20x%3D%22620%22%20y%3D%2270%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%2212%22%20font-style%3D%22italic%22%3EDaily%20News%20%26%238226%3B%20Broadsheet%3C/text%3E%20%3Cline%20x1%3D%22620%22%20y1%3D%2276%22%20x2%3D%22860%22%20y2%3D%2276%22%20stroke%3D%22%232b2520%22%20stroke-width%3D%220.8%22%20opacity%3D%220.5%22/%3E%20%3Ctext%20x%3D%22620%22%20y%3D%2292%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%3Ecultivating%20the%20sacred%20through%20play%20%26amp%3B%20memory%3C/text%3E%20%3Ctext%20x%3D%22620%22%20y%3D%22105%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%3Etransforming%20family%20heirlooms%20into%20understanding%3C/text%3E%20%3Ctext%20x%3D%22620%22%20y%3D%22118%22%20font-family%3D%22%27Newsreader%27%2C%20Georgia%2C%20serif%22%20font-size%3D%228.5%22%3Eheirloom%20works%20%26%238226%3B%20assemblage%20%26%238226%3B%20sculpture%3C/text%3E%20%3C/g%3E%20%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

/* Audio Player Component Styling */
.audio-player-widget {
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 4px 12px rgba(0,0,0,0.06);
}

/* Lightbox Modal Transitions */
.lightbox-modal {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Skeuomorphic Organic Torn-Paper Tab Navigation System
   ========================================================================== */

/* Tab Container Group */
.torn-paper-tab-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 1.5rem 0.5rem 0.5rem;
  position: relative;
  z-index: 10;
}

/* Base Torn-Paper Tab */
.torn-paper-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem 0.75rem;
  min-height: 48px;
  
  /* Typography: High-contrast, clean sans-serif */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f0f0f;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  /* Skeuomorphic Aging: Burnt top edge tint bleeding down into vintage parchment */
  background: linear-gradient(
    180deg,
    #C8BEA7 0%,
    #D6CDBC 5px,
    #EAE3D2 14px,
    #E5DEC9 100%
  );

  /* Silhouette Drop Shadow following clipped edges */
  filter: drop-shadow(0 3px 3px rgba(45, 38, 25, 0.16)) 
          drop-shadow(0 1px 1px rgba(45, 38, 25, 0.10));

  /* Smooth physical lift transitions */
  transition: 
    transform 0.15s cubic-bezier(0.2, 0.8, 0.25, 1),
    filter 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

/* --------------------------------------------------------------------------
   Interactive States: Hover, Focus & Active
   -------------------------------------------------------------------------- */

/* Hover State: Physical lift & amplified depth (fine pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .torn-paper-tab:hover {
    transform: translateY(-4px);
    color: #000000;
    background: linear-gradient(
      180deg,
      #D0C7B2 0%,
      #E0D7C4 5px,
      #F3EDE0 14px,
      #EFE9DA 100%
    );
    filter: drop-shadow(0 7px 8px rgba(45, 38, 25, 0.22)) 
            drop-shadow(0 2px 3px rgba(45, 38, 25, 0.14));
  }
}

/* Active / Pressed / Selected State */
.torn-paper-tab:active,
.torn-paper-tab.is-tap-active,
.torn-paper-tab.torn-paper-tab--active {
  transform: translateY(-2px) scale(0.98);
  color: #050505;
  background: linear-gradient(
    180deg,
    #BFB49C 0%,
    #CDC2AB 4px,
    #FAF6EC 12px,
    #F5EFE2 100%
  );
  filter: drop-shadow(0 5px 7px rgba(45, 38, 25, 0.22)) 
          drop-shadow(0 2px 3px rgba(45, 38, 25, 0.14));
}

/* Accessible Focus Outlines */
.torn-paper-tab:focus-visible {
  outline: 2px solid #6b4d2e;
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Organic Torn Clip-Path Variations
   (Flat bottom edges 0% 100% & 100% 100%, irregular serrated top edges)
   -------------------------------------------------------------------------- */

/* Variation 1: Jagged left rip with central dip */
.torn-paper-tab--tear-1 {
  -webkit-clip-path: polygon(
    0% 100%,
    0% 18%,
    3% 8%,
    7% 15%,
    12% 6%,
    18% 12%,
    25% 4%,
    32% 10%,
    39% 3%,
    48% 9%,
    55% 5%,
    63% 11%,
    71% 4%,
    78% 10%,
    86% 3%,
    92% 9%,
    97% 4%,
    100% 14%,
    100% 100%
  );
  clip-path: polygon(
    0% 100%,
    0% 18%,
    3% 8%,
    7% 15%,
    12% 6%,
    18% 12%,
    25% 4%,
    32% 10%,
    39% 3%,
    48% 9%,
    55% 5%,
    63% 11%,
    71% 4%,
    78% 10%,
    86% 3%,
    92% 9%,
    97% 4%,
    100% 14%,
    100% 100%
  );
}

/* Variation 2: Stepped fiber tear with elevated center */
.torn-paper-tab--tear-2 {
  -webkit-clip-path: polygon(
    0% 100%,
    0% 14%,
    4% 5%,
    9% 11%,
    16% 3%,
    22% 9%,
    30% 6%,
    38% 13%,
    46% 4%,
    54% 8%,
    62% 2%,
    70% 9%,
    77% 5%,
    84% 12%,
    90% 4%,
    96% 8%,
    100% 18%,
    100% 100%
  );
  clip-path: polygon(
    0% 100%,
    0% 14%,
    4% 5%,
    9% 11%,
    16% 3%,
    22% 9%,
    30% 6%,
    38% 13%,
    46% 4%,
    54% 8%,
    62% 2%,
    70% 9%,
    77% 5%,
    84% 12%,
    90% 4%,
    96% 8%,
    100% 18%,
    100% 100%
  );
}

/* Variation 3: Diagonal slope with micro-serrations */
.torn-paper-tab--tear-3 {
  -webkit-clip-path: polygon(
    0% 100%,
    0% 8%,
    5% 14%,
    11% 6%,
    17% 12%,
    24% 4%,
    31% 8%,
    38% 3%,
    47% 10%,
    56% 4%,
    64% 8%,
    72% 3%,
    80% 11%,
    88% 5%,
    94% 12%,
    98% 6%,
    100% 15%,
    100% 100%
  );
  clip-path: polygon(
    0% 100%,
    0% 8%,
    5% 14%,
    11% 6%,
    17% 12%,
    24% 4%,
    31% 8%,
    38% 3%,
    47% 10%,
    56% 4%,
    64% 8%,
    72% 3%,
    80% 11%,
    88% 5%,
    94% 12%,
    98% 6%,
    100% 15%,
    100% 100%
  );
}

/* Variation 4: Deep notched rift on right shoulder */
.torn-paper-tab--tear-4 {
  -webkit-clip-path: polygon(
    0% 100%,
    0% 12%,
    4% 4%,
    10% 10%,
    17% 5%,
    25% 12%,
    33% 4%,
    41% 9%,
    50% 3%,
    58% 8%,
    66% 4%,
    74% 12%,
    81% 6%,
    87% 14%,
    93% 5%,
    97% 10%,
    100% 6%,
    100% 100%
  );
  clip-path: polygon(
    0% 100%,
    0% 12%,
    4% 4%,
    10% 10%,
    17% 5%,
    25% 12%,
    33% 4%,
    41% 9%,
    50% 3%,
    58% 8%,
    66% 4%,
    74% 12%,
    81% 6%,
    87% 14%,
    93% 5%,
    97% 10%,
    100% 6%,
    100% 100%
  );
}

/* Responsive Mobile Adaptation for Torn-Paper Tabs (320px - 639px) */
@media (max-width: 639px) {
  .torn-paper-tab {
    white-space: normal;
    padding: 0.75rem 1rem 0.65rem;
    font-size: 0.75rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Detail Page Gallery Viewer Responsive Safeguards */
.parchment-card .torn-paper-tab {
  padding: 0.75rem 1.1rem 0.65rem;
}
.-translate-y-1\/2 {
  transform: translateY(-50%);
}
#detail-view-counter {
  white-space: nowrap;
  flex-shrink: 0;
}
.top-3 {
  top: 0.75rem;
}
.top-4 {
  top: 1rem;
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.max-h-24 {
  max-height: 6rem;
}
.whitespace-normal {
  white-space: normal;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.self-end {
  align-self: flex-end;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mb-20 {
  margin-bottom: 5rem;
}
.w-px {
  width: 1px;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.border-stone-800 {
  border-color: #292524;
}
@media (min-width: 640px) {
  .sm\:whitespace-nowrap {
    white-space: nowrap;
  }
  .sm\:w-auto {
    width: auto;
  }
  .sm\:text-right {
    text-align: right;
  }
  .sm\:self-auto {
    align-self: auto;
  }
  .sm\:p-4 {
    padding: 1rem;
  }
  .sm\:p-5 {
    padding: 1.25rem;
  }
  .sm\:px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .sm\:py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Desktop Sticky Sidebar for Series Pages (Desktop Devices >= 1024px) */
@media (min-width: 1024px) {
  .desktop-sticky-sidebar,
  .desktop-sticky-category {
    position: -webkit-sticky;
    position: sticky;
    top: 6.5rem; /* Clears sticky header (approx 90px) */
    align-self: start !important;
    z-index: 30;
  }


  .category-tab-active {
    background: linear-gradient(180deg, #c7bca5 0%, #dbd2bf 6px, #d2c8b3 100%) !important;
    border-color: #8c6239 !important;
    box-shadow: 0 2px 6px rgba(140, 98, 57, 0.25);
    font-weight: 700 !important;
    color: #1a1612 !important;
  }
  .category-tab-active .tab-indicator {
    transform: translateX(3px);
    color: #8c6239;
    font-weight: bold;
  }

  #gypsy,
  #companion,
  #roundup,
  #safe,
  #wandering,
  #artist-statement,
  #lineage-altar,
  #mother,
  #oldest-sister,
  #sister,
  #clock,
  #cage,
  #radio,
  #chair,
  #trunk,
  #rack,
  #canyon-girl {
    scroll-margin-top: 7rem;
  }
}

/* Bio Hero Container */
.bio-hero-banner {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
}

.bio-hero-bg {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: #ffffff;
  background-image: url('../../images/bioBackHero.webp');
  background-image: url('../../images/bioBackHero.webp');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (min-width: 480px) {
  .bio-hero-bg {
    height: 300px;
  }
}

@media (min-width: 640px) {
  .bio-hero-bg {
    height: 360px;
  }
}

@media (min-width: 768px) {
  .bio-hero-bg {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .bio-hero-bg {
    height: 450px;
  }
}

/* Shared Deckled Paper & Torn Edge Surfaces (Older-Browser Safe) */
.deckled-card,
.torn-strip,
.torn-btn,
.torn-disc {
  position: relative;
  isolation: isolate;
  --paper-fill: initial;
}

.absolute.deckled-card,
.absolute.torn-strip,
.absolute.torn-btn,
.absolute.torn-disc {
  position: absolute;
}

.torn-disc .paper-group {
  opacity: var(--paper-opacity, 1);
  transition: opacity 200ms ease;
}

.paper-body {
  transition: fill 200ms ease, opacity 200ms ease;
}

.paper-ready {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.paper-shape,
.tear svg {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.shadow-paper {
  box-shadow: 0 10px 28px -6px rgba(45, 34, 20, 0.12), 0 3px 10px -2px rgba(45, 34, 20, 0.08);
}

.focus-ring:focus-visible {
  outline: 2px solid #8C6239;
  outline-offset: 3px;
}




