/* PIKOLO — case study layout and interactive modules */

/* ==========================================
   PIKOLO CASE STUDY
   Cleaned and updated layout
   ========================================== */

/* ------------------------------------------
   1. BASE & PAGE LAYOUT
   ------------------------------------------ */

body {
  margin: 0;
}

.pk-main {
  box-sizing: border-box;
  width: min(100% - 64px, 960px);
  max-width: 960px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 0 90px;
}

/* ------------------------------------------
   2. HERO
   ------------------------------------------ */

.pk-hero {
  padding: 115px 0 55px;
}

/* Back to all work — matches PregTrial */

.pk-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 70px;

  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #68726a;
  text-decoration: none;

  transition: color 0.25s ease;
}

.pk-back svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 0.25s ease;
}

.pk-back:hover {
  color: #1a3a5c;
}

.pk-back:hover svg {
  transform: translateX(-3px);
}

.pk-kicker {
  font: 16px "DM Mono", monospace;
  color: #325a4b;
  letter-spacing: 0.13em;
  margin: 0 0 20px;
}

.pk-hero h1 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.15rem, 4.3vw, 3.7rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -0.045em;
  max-width: 960px;
  margin: 0 0 30px;
}

.pk-hero h1 em {
  font: italic 400 1em Georgia, serif;
}

.pk-lede {
  font-size: clamp(18px, 2vw, 24px);
  color: #5d685f;
  line-height: 1.55;
  max-width: 810px;
  margin-bottom: 60px;
}

/* ------------------------------------------
   3. PROJECT METADATA
   ------------------------------------------ */

.pk-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border-block: 1px solid #dfe2dd;
  padding: 25px 0;
  margin-bottom: 52px;
}

.pk-meta div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pk-meta span,
.pk-placeholder span,
.pk-tile span {
  font: 16px "DM Mono", monospace;
  letter-spacing: 0.1em;
  color: #68746d;
}

.pk-meta strong {
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ------------------------------------------
   4. HERO VIDEO
   ------------------------------------------ */

.pk-hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #eef0ec;
  border: 1px solid #dfe2dd;
  box-sizing: border-box;
  margin: 48px 0;
}

/* ------------------------------------------
   5. CASE STUDY SECTIONS
   ------------------------------------------ */

.pk-section {
  padding: 85px 0;
  border-top: 1px solid #dfe2dd;
  scroll-margin-top: 115px;
}

.pk-hero {
  scroll-margin-top: 115px;
}

.pk-section h2 {
  font-size: clamp(33px, 4.2vw, 55px);
  letter-spacing: -0.055em;
  line-height: 1.14;
  font-weight: 500;
  max-width: 820px;
  margin: 0 0 30px;
}

.pk-section > p:not(.pk-kicker) {
  font-size: 18px;
  line-height: 1.75;
  max-width: 800px;
  color: #58625b;
  margin: 0 0 22px;
}

/* ------------------------------------------
   6. PLACEHOLDERS
   ------------------------------------------ */

.pk-placeholder {
  box-sizing: border-box;
  min-height: 320px;
  background: #eef0ec;
  border: 1px dashed #aebbb0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 45px 24px;
  margin: 48px 0;
  gap: 12px;
}

.pk-placeholder strong {
  font-size: 23px;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.pk-placeholder p {
  font-size: 14px;
  color: #6c756f;
  max-width: 480px;
  line-height: 1.6;
}

.pk-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------
   7. EDITORIAL CALLOUTS
   ------------------------------------------ */

.pk-aside {
  background: #eef0ec;
  border-left: 2px solid #325a4b;
  padding: 22px 25px !important;
  margin: 30px 0 !important;
  font-size: 16px !important;
  color: #3e4c42 !important;
}

.pk-aside p {
  margin: 8px 0 0;
  font-size: 15px;
}

/* ------------------------------------------
   8. PROCESS STEPS
   ------------------------------------------ */

.pk-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 38px 0;
}


.pk-steps b {
  position: relative;
  display: block;
  color: #325a4b;
  font: 20px "DM Mono", monospace;
  padding-bottom: 14px;
  margin-bottom: 23px;
}

/* the light track */
.pk-steps b::before,
.pk-steps b::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
}

.pk-steps b::before {
  background: #cdd4cd;
}

/* the moving fill */
.pk-steps b::after {
  background: #1A3A5C;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
}

/* triggered by JS when the section is visible */
.pk-steps.in-view b::after {
  transform: scaleX(1);
}

/* stagger: step 1, then 2, then 3 */
.pk-steps.in-view > div:nth-child(2) b::after { transition-delay: 0.4s; }
.pk-steps.in-view > div:nth-child(3) b::after { transition-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .pk-steps b::after {
    transition: none;
    transform: scaleX(1);
  }
}
.pk-steps strong {
  font-weight: 550;
  font-size:20px;
}

.pk-steps p {
  font-size: 16px;
  line-height: 1.7;
  color: #000;
}

/* ------------------------------------------
   9. DESIGN SYSTEM TILES
   ------------------------------------------ */

.pk-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0;
}

.pk-tile {
  box-sizing: border-box;
  background: #eff0ed;
  min-height: 180px;
  min-width: 0;
  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pk-tile i {
  display: block;
  width: 70px;
  height: 70px;
  border: 1px solid #d2d8d2;
}

.pk-tile code {
  font-size: 12px;
}

/* ------------------------------------------
   10. CTA & BACK TO TOP
   ------------------------------------------ */

.pk-cta {
  display: inline-block;
  border-bottom: 1px solid #222722;
  padding: 12px 0;
  margin-top: 12px;
  font-size: 16px;
}

.pk-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 48px;
  padding: 8px 0;

  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;

  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.pk-back-to-top:hover {
  opacity: 0.6;
}

/* ------------------------------------------
   11. CASE STUDY SIDEBAR
   ------------------------------------------ */

/* Hidden by default on smaller screens */

.toc-sidebar {
  display: none;
}

/* Desktop sidebar */

@media (min-width: 1180px) {

  .toc-sidebar {
    display: flex;
    flex-direction: column;

    position: fixed;
    top: 150px;
    left: max(24px, calc((100vw - 1400px) / 2));
    bottom: auto;

    width: 150px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;

    padding: 12px 0;
    gap: 4px;

    background: transparent;
    border: none;
    z-index: 20;
    box-sizing: border-box;
  }

  .toc-link {
    display: block;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    text-transform: none;
    letter-spacing: 0;

    color: #818b84;
    padding: 9px 12px;

    border-left: 2px solid transparent;
    text-decoration: none;

    transition:
      color 0.2s ease,
      border-color 0.2s ease,
      background 0.2s ease;
  }

  .toc-link.active {
    color: #222722;
    border-left-color: #435486;
    background: transparent;
  }

  .toc-link:hover {
    color: #435486;
    background: transparent;
  }
}

/* ------------------------------------------
   12. FOOTER LAYOUT
   ------------------------------------------ */

/* The footer spans the page independently
   of the case study sidebar. */

footer.v7-footer {
  display: block;
  position: relative;
  box-sizing: border-box;

  width: 100%;
  max-width: none;

  margin-left: 0;
  margin-right: 0;
  transform: none;
}

/* ------------------------------------------
   13. TABLET LAYOUT
   ------------------------------------------ */

@media (max-width: 1179px) {

  .toc-sidebar {
    display: none;
  }

  .pk-main {
    width: min(100% - 48px, 900px);
    max-width: 900px;
  }

  .v3-jump {
    display: flex;
    align-items: center;
  }
}

/* ------------------------------------------
   14. MOBILE LAYOUT
   ------------------------------------------ */

@media (max-width: 700px) {

  .pk-main {
    width: calc(100% - 44px);
    padding-bottom: 55px;
  }

  .pk-hero {
    padding-top: 65px;
  }

  .pk-back {
    margin-bottom: 55px;
  }

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

  .pk-steps,
  .pk-tiles {
    grid-template-columns: 1fr;
  }

  .pk-section {
    padding: 65px 0;
  }

  .pk-placeholder {
    min-height: 260px;
  }
}

/* ------------------------------------------
   15. MEDIA OVERFLOW PROTECTION
   ------------------------------------------ */

.pk-main img,
.pk-main video {
  max-width: 100%;
}

/* ------------------------------------------
   16. PIKOLO STAMP SECTION HEADINGS
   Apply only to selected section h2 elements.
   ------------------------------------------ */

.pk-section h2.pk-stamp-heading {
  /* Preserve the original heading's position in the editorial layout. */
  margin: 0 0 38px;
  max-width: 100%;
  font-size: inherit;
  letter-spacing: normal;
  line-height: normal;
}

.pk-stamp-heading__ink {
  --stamp-color: #1A3A5C;
  --stamp-rotation: -4deg;
  --stamp-font-size: clamp(19px, 3vw, 24px);
  --stamp-padding-y: 12px;
  --stamp-padding-x: 21px;
  display: inline-flex;
  max-width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--stamp-color);
  border-radius: 9px;
  padding: var(--stamp-padding-y) var(--stamp-padding-x);
  background: transparent;
  color: var(--stamp-color);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: var(--stamp-font-size);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
  transform: rotate(var(--stamp-rotation));
  transform-origin: center center;
  transition: transform 260ms ease, opacity 380ms ease;
}

/* Add this class only when JavaScript IntersectionObserver is in use. */
.pk-stamp-heading.pk-stamp-animate .pk-stamp-heading__ink {
  opacity: 0;
  transform: translateY(12px) rotate(-11deg) scale(0.92);
}

.pk-stamp-heading.pk-stamp-animate.is-visible .pk-stamp-heading__ink {
  opacity: 1;
  transform: translateY(0) rotate(var(--stamp-rotation)) scale(1);
  transition: transform 520ms cubic-bezier(0.2, 1.45, 0.4, 1), opacity 280ms ease;
}

.pk-stamp-heading:not(.pk-stamp-animate) .pk-stamp-heading__ink:hover,
.pk-stamp-heading.pk-stamp-animate.is-visible .pk-stamp-heading__ink:hover {
  transform: rotate(0deg);
  transition: transform 260ms ease;
}

@media (max-width: 700px) {
  .pk-stamp-heading__ink {
    --stamp-font-size: clamp(17px, 5vw, 24px);
    --stamp-padding-y: 10px;
    --stamp-padding-x: 14px;
    border-width: 4px;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pk-stamp-heading__ink,
  .pk-stamp-heading.pk-stamp-animate .pk-stamp-heading__ink,
  .pk-stamp-heading.pk-stamp-animate.is-visible .pk-stamp-heading__ink,
  .pk-stamp-heading .pk-stamp-heading__ink:hover {
    opacity: 1;
    transform: rotate(var(--stamp-rotation));
    transition: none;
  }
}

.pk-section img {
  border: none;
  outline: none;
  max-width: 100%;
  height: auto;
}


/* ===== Former Pikolo inline <style> block (loaded after base styles) ===== */


  .pk-ds { --app-font:"Courier Prime","Courier New",monospace; --line:#cdd4cd; --muted:#68746d; margin:38px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }

  .pk-ds .blk { border:1px solid var(--line); border-radius:14px; padding:22px; background:#faf7f0; min-width:0; }

  .pk-ds .blk.full { grid-column:1 / -1; }

  .pk-ds h3 { font:600 16px/1.3 "DM Sans",sans-serif; margin:0 0 4px; }

  .pk-ds .why { font-size:14px; line-height:1.6; color:var(--muted); margin:0 0 18px; }

  .pk-ds .app { font-family:var(--app-font); color:#000; }



  /* colour */

  .pk-ds .chips { display:flex; gap:10px; flex-wrap:wrap; }

  .pk-ds .chip { flex:1 1 90px; }

  .pk-ds .chip i { display:block; height:56px; border-radius:10px; border:1px solid rgba(0,0,0,.12); }

  .pk-ds .chip b { display:block; font:600 13px "DM Sans",sans-serif; margin-top:8px; }

  .pk-ds .chip code { font:12px "DM Mono",monospace; color:var(--muted); }

  .pk-ds .dots { display:flex; align-items:center; gap:8px; margin-top:18px; font:12px "DM Mono",monospace; color:var(--muted); }

  .pk-ds .dots i { width:22px; height:22px; border-radius:50%; display:inline-block; }



  /* type */

  .pk-ds .big { font-size:64px; font-weight:700; line-height:1; margin:0 0 10px; }

  .pk-ds .big small { font-size:22px; font-weight:400; }

  .pk-ds .sm { font-size:13px; text-transform:uppercase; letter-spacing:.1em; color:rgba(0,0,0,.7); margin:0; }



  /* components */

  .pk-ds .comps { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; align-items:start; }

  .pk-ds .hero { background:#1a3a5c; color:#fff; border-radius:16px; padding:20px; box-shadow:0 4px 20px rgba(26,58,92,.35); }

  .pk-ds .hero p { margin:0; }

  .pk-ds .hero .l { font-size:14px; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.8); margin-bottom:10px; }

  .pk-ds .hero .n { font-size:52px; font-weight:700; line-height:1; }

  .pk-ds .hero .n small { font-size:20px; font-weight:400; color:rgba(255,255,255,.85); }

  .pk-ds .hero .s { font-size:14px; color:rgba(255,255,255,.75); margin-top:6px; }

  .pk-ds .cc { background:#fff; border:1px solid rgba(0,0,0,.1); border-radius:12px; overflow:hidden; box-shadow:1px 2px 0 rgba(0,0,0,.05); margin-bottom:10px; }

  .pk-ds .cc:last-child { margin-bottom:0; }

  .pk-ds .cc .bar { height:6px; }

  .pk-ds .cc .body { padding:14px 16px; }

  .pk-ds .cc .top { display:flex; justify-content:space-between; margin-bottom:9px; font-size:15px; font-weight:700; }

  .pk-ds .cc .top span:first-child { text-transform:uppercase; letter-spacing:.025em; }

  .pk-ds .cc .track { height:10px; border-radius:999px; background:#b8b0a0; overflow:hidden; }

  .pk-ds .cc .fill { height:100%; border-radius:999px; }

  .pk-ds .btn { font-size:17px; font-family:var(--app-font); padding:12px 20px; border-radius:12px; border:1px solid transparent; text-align:center; margin-bottom:10px; }

  .pk-ds .btn:last-child { margin-bottom:0; }

  .pk-ds .btn.a { background:#1a3a5c; color:#fff; }

  .pk-ds .btn.w { background:#e7dfc6; border-color:rgba(0,0,0,.2); }

  .pk-ds .btn.g { border-color:rgba(0,0,0,.3); }



  /* receipt */

  .pk-ds .row { display:flex; justify-content:space-between; font-size:14px; padding:2px 0; }

  .pk-ds .row span:first-child { color:rgba(0,0,0,.55); }

  .pk-ds .dash { border-top:1px dashed rgba(0,0,0,.25); margin:12px 0; }

  .pk-ds .stamp { display:inline-block; border:3px solid #1a3a5c; border-radius:4px; transform:rotate(-4deg); padding:2px 8px; opacity:.7; text-transform:uppercase; letter-spacing:.15em; font-size:11px; color:#1a3a5c; margin-top:14px; }



  /* interactive bits */

  .pk-ds .chip { background:none; border:0; padding:0; text-align:left; cursor:pointer; font:inherit; color:inherit; }

  .pk-ds .chip:hover i { transform:translateY(-2px); }

  .pk-ds .chip i { transition:transform .15s ease; }

  .pk-ds .btn { display:block; width:100%; cursor:pointer; transition:transform .1s ease; }

  .pk-ds .btn:active { transform:scale(.98); }

  .pk-ds .chip:focus-visible, .pk-ds .btn:focus-visible, .pk-ds #ds-slider:focus-visible { outline:2px solid #1a3a5c; outline-offset:3px; }

  .pk-ds .scrub { margin:0 0 20px; display:grid; grid-template-columns:1fr; gap:6px; font-family:"DM Sans",sans-serif; }

  .pk-ds .scrub label { font-size:15px; color:var(--muted); }

  .pk-ds .scrub output { font:12px "DM Mono",monospace; color:var(--muted); }

  .pk-ds #ds-slider { width:100%; accent-color:#1a3a5c; }

  .pk-ds .hero { display:flex; justify-content:space-between; align-items:center; gap:12px; }

  .pk-ds .cc .fill { width:0; transition:width .15s ease; }

  @media (prefers-reduced-motion:reduce) { .pk-ds .cc .fill, .pk-ds .chip i, .pk-ds .btn { transition:none; } }



  @media (max-width:720px) { .pk-ds { grid-template-columns:1fr; } }

  .pk-ds svg text { font-family:var(--app-font); }





/* PIKOLO — LIVE PRODUCT SHOWCASE */



.pk-product-showcase {

  margin-top: 64px;

}



.pk-product-intro {

  margin-bottom: 32px;

}



.pk-product-intro h3 {

  font-size: clamp(23px, 3vw, 32px);

  font-weight: 600;

  letter-spacing: -0.035em;

  margin: 0 0 10px;

}



.pk-product-intro p {

  max-width: 560px;

  line-height: 1.65;

  color: #666;

  margin: 0;

}



.pk-product-grid {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;

  align-items: start;

}



.pk-product-card {

  min-width: 0;

}



.pk-product-video {

  background: #faf7f0;

  border: 1px solid #e6e2d9;

  border-radius: 16px;

  padding: 20px 12px;

  margin-bottom: 20px;



  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

}



.pk-product-video video {

  display: block;

  width: auto;

  max-width: 100%;

  height: auto;

  max-height: 430px;

  object-fit: contain;

  border-radius: 10px;

}



.pk-product-number {

  display: block;

  color: #1a3a5c;

  font-family: "DM Mono", monospace;

  font-size: 11px;

  letter-spacing: 0.08em;

  margin-bottom: 10px;

}



.pk-product-card h3 {

  font-size: 19px;

  font-weight: 600;

  letter-spacing: -0.025em;

  margin: 0 0 8px;

}



.pk-product-card p {

  font-size: 14px;

  line-height: 1.65;

  color: #666;

  margin: 0;

}



/* Tablet */

@media (max-width: 900px) {

  .pk-product-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

}



/* Mobile */

@media (max-width: 600px) {

  .pk-product-showcase {

    margin-top: 40px;

  }



  .pk-product-grid {

    grid-template-columns: 1fr;

    gap: 36px;

  }



  .pk-product-video video {

    max-height: 480px;

  }

}



@media (prefers-reduced-motion: reduce) {

  .pk-product-video video {

    /* Autoplay can be disabled via JavaScript if needed. */

  }

}



/* Clickable Pikolo link stamp */



.pk-link-stamp {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;



  padding: 10px 18px;

  border: 3px solid #1a3a5c;

  border-radius: 8px;



  color: #1a3a5c;

  background: transparent;



  font-family: "Courier Prime", "Courier New", monospace;

  font-size: 16px;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-decoration: none;



  transform: rotate(-3deg);

  transition: transform 0.2s ease, background 0.2s ease;

}



.pk-link-stamp:hover {

  transform: rotate(0deg) scale(1.04);

  background: rgba(26, 58, 92, 0.06);

}



.pk-link-stamp:focus-visible {

  outline: 2px solid #1a3a5c;

  outline-offset: 5px;

}



@media (prefers-reduced-motion: reduce) {

  .pk-link-stamp {

    transition: none;

  }

}

.pk-scroll-video {

  display: block;

  width: 100%;

  height: auto;

}





/* Spacing between bottom links */



.pk-back-to-top-wrap {

  margin-top: 36px;

}



.pk-back-to-work-wrap {

  margin-top: 55px;

}



/* Filled navy stamp */



.pk-link-stamp-filled {

  background: #1a3a5c;

  color: #ffffff;

  border-color: #1a3a5c;

}



/* Switch to outlined style on hover or click */



.pk-link-stamp-filled:hover,

.pk-link-stamp-filled:active {

  background: transparent;

  color: #1a3a5c;

  border-color: #1a3a5c;

}



/* Keyboard accessibility */



.pk-link-stamp-filled:focus-visible {

  background: transparent;

  color: #1a3a5c;

}





/* Bottom navigation stamps — straight by default */



.pk-back-to-top-wrap .pk-link-stamp,

.pk-back-to-work-wrap .pk-link-stamp {

  transform: rotate(0deg);

  transition: transform 0.25s ease,

background 0.2s ease,

              color 0.2s ease;

}



/* Tilt on hover */

.pk-back-to-top-wrap .pk-link-stamp:hover,

.pk-back-to-work-wrap .pk-link-stamp:hover {

  transform: rotate(-3deg) scale(1.04);

}



/* Tilt slightly more when pressed */

.pk-back-to-top-wrap .pk-link-stamp:active,

.pk-back-to-work-wrap .pk-link-stamp:active {

  transform: rotate(-5deg) scale(0.98);

}



/* Preserve reduced-motion accessibility */

@media (prefers-reduced-motion: reduce) {

  .pk-back-to-top-wrap .pk-link-stamp,

  .pk-back-to-work-wrap .pk-link-stamp {

    transition: none;

  }



  .pk-back-to-top-wrap .pk-link-stamp:hover,

  .pk-back-to-work-wrap .pk-link-stamp:hover,

  .pk-back-to-top-wrap .pk-link-stamp:active,

  .pk-back-to-work-wrap .pk-link-stamp:active {

    transform: none;

  }

}





/* Bottom navigation */



.pk-bottom-navigation {

  margin-top: 64px;

}



.pk-bottom-divider {

  width: 100%;

  height: 1px;

  background: #cdd4cd;

  margin-bottom: 32px;

}



.pk-bottom-buttons {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 40px;

}



/* Straight by default */

.pk-bottom-buttons .pk-link-stamp {

  transform: rotate(0deg);

}



/* Tilt on hover */

.pk-bottom-buttons .pk-link-stamp:hover {

  transform: rotate(-3deg) scale(1.03);

}



/* Tilt when pressed */

.pk-bottom-buttons .pk-link-stamp:active {

  transform: rotate(-5deg) scale(0.98);

}



@media (max-width: 600px) {

  .pk-bottom-buttons {

    flex-direction: column;

    align-items: flex-start;

  }

}



@media (prefers-reduced-motion: reduce) {

  .pk-bottom-buttons .pk-link-stamp:hover,

  .pk-bottom-buttons .pk-link-stamp:active {

    transform: none;

  }

}





/* Responsive layout safety */



html,

body {

  width: 100%;

  max-width: 100%;

}



* {

  box-sizing: border-box;

}



/* Keep header within viewport */

.v3-header,

.v3-nav {

  max-width: 100%;

}



.v3-nav {

  min-width: 0;

}



.v3-links {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px 20px;

  min-width: 0;

}



/* Prevent content from forcing page wider */

.pk-main {

  min-width: 0;

  max-width: 100%;

}



.pk-main img,

.pk-main video {

  max-width: 100%;

}



/* Adapt product videos to smaller desktop screens */

@media (max-width: 1100px) {

  .pk-product-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

}



@media (max-width: 700px) {

  .pk-product-grid {

    grid-template-columns: minmax(0, 1fr);

  }

}







/* ===== PIKOLO LAYOUT STABILIZATION (2026-10-28) =====
   Previous sidebar activated too early (1180px) and overlapped
   the content column. On narrower windows use the JS jump menu. */
.pk-main {
  width: min(calc(100% - 64px), 960px);
  max-width: 960px;
  min-width: 0;
  margin-inline: auto;
}

/* Ensure the case-study column does not inherit side offsets. */
body:has(> .v3-header) > main.pk-main {
  margin-left: auto;
  margin-right: auto;
}

/* Prefer a comfortable viewport before rendering the fixed sidebar. */
@media (min-width: 1180px) and (max-width: 1399px) {
  .toc-sidebar { display: none !important; }
  .v3-jump { display: flex; align-items: center; }
}
@media (min-width: 1400px) {
  .toc-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 116px;
    left: max(24px, calc((100vw - 1400px) / 2));
    width: 150px;
    max-height: calc(100vh - 145px);
    overflow-y: auto;
    z-index: 20;
  }
  .v3-jump { display: none; }
}
@media (max-width: 1399px) {
  .pk-main { width: min(calc(100% - 48px), 900px); }
}
@media (max-width: 700px) {
  .pk-main { width: calc(100% - 44px); }
}
