/* krt.creatives — styles shared by every page (index.html, library.html):
   fonts helper, nav links, yellow marker + CTA, glass system, cards, folders, footer, frosted nav. */
:root {
  --bg-canvas: #F3F3F3; --bg-surface: #FFFFFF; --text-dark: #222222; --text-muted: #666666;
  --mustard-yellow: #E8B931; --border-hairline: rgba(34, 34, 34, 0.11);
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Navigation Links */
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--text-dark);
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.nav-link:hover {
  opacity: 0.55;
}


/* hero pitch: yellow marker behind the key phrase */
.hero-mark {
  background: linear-gradient(transparent 56%, var(--mustard-yellow) 56%, var(--mustard-yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px;
  font-weight: 700; letter-spacing: -0.01em;
}
.hero-cta .arr { transition: transform .2s ease; }
.hero-cta:hover .arr { transform: translateX(3px); }


/* Editorial Card Hover */
.cr-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
          backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 0.5px rgba(0,0,0,0.06), 0 14px 34px -18px rgba(0,0,0,0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cr-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 0.5px rgba(0,0,0,0.08), 0 26px 50px -20px rgba(0,0,0,0.32);
}


/* =====================================================================
   GLASS SYSTEM — translucent, blurred, glossy surfaces
   .glass (light) · .glass-dark · .glass-yellow · .glass-nav · .glass-panel
   ::after adds the glossy top sheen behind the content (isolation keeps it inside).
   ===================================================================== */
.glass, .glass-dark, .glass-yellow {
  position: relative; isolation: isolate;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, color .2s ease;
}
.glass::after, .glass-dark::after, .glass-yellow::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.14) 46%, rgba(255,255,255,0) 54%);
}
.glass {
  color: #1D1D1F;
  background: linear-gradient(160deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.46) 100%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(0,0,0,0.04),
              0 0 0 0.5px rgba(0,0,0,0.07), 0 10px 28px -14px rgba(0,0,0,0.28);
}
.glass-dark {
  color: #FFFFFF;
  background: linear-gradient(160deg, rgba(72,72,76,0.86) 0%, rgba(22,22,24,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 0 0 0.5px rgba(0,0,0,0.3), 0 12px 28px -12px rgba(0,0,0,0.55);
}
.glass-dark::after { background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 46%, rgba(255,255,255,0) 54%); }
.glass-yellow {
  color: #1D1D1F;
  background: linear-gradient(160deg, rgba(250,220,118,0.96) 0%, rgba(232,185,49,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 0 0 0.5px rgba(160,120,10,0.25), 0 10px 26px -10px rgba(232,185,49,0.75);
}
.glass:hover, .glass-dark:hover, .glass-yellow:hover { transform: translateY(-1px) scale(1.015); }
.glass:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 0 0 0.5px rgba(0,0,0,0.08), 0 16px 34px -14px rgba(0,0,0,0.32); }
.glass-dark:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 0 0 0.5px rgba(0,0,0,0.3), 0 18px 36px -12px rgba(0,0,0,0.6); }
.glass-yellow:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 0 0 0.5px rgba(160,120,10,0.3), 0 16px 34px -10px rgba(232,185,49,0.85); }
.glass-static:hover { transform: none; }



/* =====================================================================
   BREAKDOWN FOLDERS — category cards with a fanned stack of frames
   ===================================================================== */
.bd-folder { position: relative; overflow: hidden; border-radius: 26px; text-align: left; min-height: 236px; padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.bd-folder .fan { position: absolute; right: -10px; top: -18px; width: 66%; height: 50%; pointer-events: none; }
.bd-folder > span:not(.fan) { position: relative; z-index: 1; }
.bd-folder .fan img { position: absolute; top: 0; width: 38%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.bd-folder .fan img:nth-child(1) { right: 52%; transform: rotate(-12deg) translateY(10px); }
.bd-folder .fan img:nth-child(2) { right: 34%; transform: rotate(-5deg) translateY(2px); }
.bd-folder .fan img:nth-child(3) { right: 16%; transform: rotate(3deg); }
.bd-folder .fan img:nth-child(4) { right: -2%; transform: rotate(10deg) translateY(6px); }
.bd-folder:hover .fan img:nth-child(1) { transform: rotate(-16deg) translate(-14px, 4px); }
.bd-folder:hover .fan img:nth-child(2) { transform: rotate(-7deg) translate(-6px, -4px); }
.bd-folder:hover .fan img:nth-child(3) { transform: rotate(5deg) translate(4px, -6px); }
.bd-folder:hover .fan img:nth-child(4) { transform: rotate(14deg) translate(12px, 0); }
.bd-folder .count { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.bd-folder.is-active { box-shadow: 0 0 0 2px #E8B931, 0 18px 40px -16px rgba(232,185,49,.55) !important; }
.bd-folder.is-active .open { color: #E8B931; }
@media (max-width: 639px) {
  #prodFolders { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .bd-folder { min-height: 168px; padding: 14px; border-radius: 20px; }
  .bd-folder .count { font-size: 32px; }
  .bd-folder .desc { display: none; }
  .bd-folder .fan { width: 92%; height: 52%; right: -14px; top: -14px; }
  .bd-folder > span.mt-1 { font-size: 14px; }
}


/* =====================================================================
   FOOTER — "Let's work together"
   ===================================================================== */
.lwt { font-family: 'Poppins', sans-serif; font-weight: 800; letter-spacing: -0.045em; line-height: .92; color: #222222;
  font-size: clamp(56px, 11vw, 200px); }
.lwt .arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1); color: #E8B931; }
.lwt-link:hover .arrow { transform: translate(.08em, -.08em) rotate(-8deg); }
.lwt-link:hover .lwt-under { background-size: 100% .12em; }
.lwt-under { background: linear-gradient(#E8B931, #E8B931) no-repeat 0 92% / 0 .12em; transition: background-size .5s cubic-bezier(.2,.8,.2,1); }
.foot-col h4 { font: 700 10px/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #8A8A8A; margin-bottom: 14px; }
.foot-col a, .foot-col button { display: block; font-size: 15px; font-weight: 500; color: #222222; padding: 4px 0; text-align: left; cursor: pointer; }
.foot-col a:hover, .foot-col button:hover { color: #8A6A12; }

/* frosted navigation bar — no hard edge: the frost fades out below the bar */
.glass-nav { background: transparent; }
.glass-nav::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -22px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(246,246,248,0.86) 0%, rgba(246,246,248,0.7) 62%, rgba(246,246,248,0) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}
/* large frosted sheets (modal, drawer) */
.glass-panel {
  background: linear-gradient(170deg, rgba(252,252,253,0.9) 0%, rgba(244,244,246,0.84) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
          backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 30px 80px -20px rgba(0,0,0,0.35);
}

