/* Cedilla Studio — Overprint's lower sections (since 2026-11-11, first on
   /overprint-test): [08] The process, [09] Make it yours, [10] Try it,
   [11] Upgrade. Drawn by assets/js/overprint-story.js. Loaded after
   off-grid.css and overprint.css, whose colour tokens it uses. */

.op-story { border-top: 1px solid var(--line); padding: 80px clamp(16px, 4vw, 56px) 96px; color: #fff; }
.op-story-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 120px; }
.op-story .lab-label { margin-bottom: 18px; }
.op-h2 { margin: 0 0 16px; max-width: 18ch; font: 600 clamp(30px, 3.6vw, 48px)/1.06 'Open Sans', sans-serif; letter-spacing: -.03em; }
.op-h2--big { max-width: 16ch; font-size: clamp(36px, 5vw, 68px); }
.op-lead { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .68); }
.op-story strong { color: #fff; font-weight: 600; }
.op-small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.op-story a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.op-story a:hover { text-decoration-color: #fff; }
.op-story kbd { font: 600 11.5px/1 var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }

/* ---------- [08] three steps, picture and words side by side ---------- */
.op-steps { display: grid; gap: 88px; margin-top: 64px; }
.op-step { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.op-step--flip .op-media { order: 2; }
.op-step-no { display: block; margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--cyan); }
.op-step h3 { margin: 0 0 14px; font: 600 clamp(22px, 2.2vw, 30px)/1.15 'Open Sans', sans-serif; letter-spacing: -.02em; }
.op-step p { margin: 0 0 12px; max-width: 46ch; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .68); }
.op-note { font-family: var(--mono); font-size: 12.5px !important; color: #fff !important; min-height: 1.7em; }

.op-media {
  position: relative; overflow: hidden; border-radius: 20px;
  background: #15151b; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}
.op-canvas { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .5s var(--ease); }
.op-canvas.is-ready { opacity: 1; }
.op-media--plates { max-width: 480px; justify-self: center; width: 100%; aspect-ratio: 803 / 1000; }
.op-media--loupe { aspect-ratio: 128 / 110; }
.op-media--compare { aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; cursor: ew-resize; }
.op-media .op-canvas { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.op-media-tag {
  position: absolute; left: 14px; top: 14px; padding: 6px 11px; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none;
}
.op-media-tag--r { left: auto; right: 14px; }

/* The plate switches sit on the picture */
.op-plate-chips { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.op-chip {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px 8px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  font: 500 12.5px/1 'Open Sans', sans-serif; color: rgba(255, 255, 255, .6);
  background: rgba(8, 8, 12, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .2s, border-color .2s, background-color .2s;
}
.op-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); opacity: .35; transition: opacity .2s; }
.op-chip.is-on { color: #fff; border-color: rgba(255, 255, 255, .55); }
.op-chip.is-on i { opacity: 1; }
.op-chip:hover { border-color: #fff; }
.op-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Clean v worn: the worn print on top, clipped at the split */
.op-compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.op-compare-bar { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.op-compare-bar::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.op-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.op-media--compare:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- [09] the gallery ---------- */
.op-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.op-tile {
  appearance: none; font: inherit; color: #fff; text-align: left; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: stretch; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.op-tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .45); }
.op-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.op-tile-img { position: relative; display: block; width: 100%; aspect-ratio: 803 / 1000; background: #15151b; }
.op-tile-img .op-canvas { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.op-tile-text { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 11px 13px 13px; }
.op-tile-text b { font-size: 14px; font-weight: 600; }
.op-tile-text small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.op-tile .rc-pro {
  font: 600 9px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 6px 2px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--blue));
}

/* ---------- [10] Try it ---------- */
.op-try {
  padding: clamp(40px, 6vw, 80px); border-radius: 28px; border: 1px solid transparent;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(81, 100, 246, .22), transparent 60%),
    radial-gradient(120% 140% at 0% 100%, rgba(252, 95, 173, .18), transparent 60%),
    linear-gradient(#0b0b10, #0b0b10) padding-box,
    linear-gradient(120deg, rgba(252, 95, 173, .55), rgba(81, 100, 246, .55) 50%, rgba(33, 212, 253, .45)) border-box;
}
.op-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; padding: 0; list-style: none; }
.op-tags li { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: 13px; color: rgba(255, 255, 255, .85); }
.op-try-row, .op-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.op-story .pill.op-cta {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center;
  padding: 15px 26px; border-radius: 999px; border: 1px solid #fff;
  font: 600 15px/1 'Open Sans', sans-serif; letter-spacing: 0; color: #000; background: #fff;
  transition: transform .3s var(--ease);
}
.op-story .pill.op-cta:hover { background: linear-gradient(135deg, var(--pink), var(--blue), var(--cyan)) border-box; border-color: transparent; color: #fff; transform: translateY(-1px); }
.op-shortcuts { margin: 28px 0 0; font-size: 13px; line-height: 2; color: var(--muted); }

/* ---------- [11] Upgrade ---------- */
.op-compare-table { margin: 40px 0 32px; max-width: 760px; border-top: 1px solid var(--line); }
.op-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.op-row > span:not(:first-child) { text-align: center; color: rgba(255, 255, 255, .85); }
.op-row--head { min-height: 44px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.op-row--head > span:last-child { color: var(--cyan) !important; }
.op-row b { font-weight: 600; color: #fff; }
.op-yes, .op-no { font-size: 0; }
.op-yes::before { content: ''; display: inline-block; width: 18px; height: 18px; background: var(--cyan); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.op-row > .op-yes:nth-child(2)::before { background: rgba(255, 255, 255, .7); }
.op-no::before { content: ''; display: inline-block; width: 12px; height: 1.5px; background: rgba(255, 255, 255, .3); vertical-align: middle; }

/* No WebGL: the words stay, the pictures go */
.op-story.is-nogl .op-media, .op-story.is-nogl .op-gallery { display: none; }
.op-story.is-nogl .op-step { grid-template-columns: minmax(0, 1fr); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .op-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .op-story { padding: 56px 16px 72px; }
  .op-story-inner { gap: 80px; }
  .op-steps { gap: 64px; margin-top: 40px; }
  .op-step { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .op-step--flip .op-media { order: 0; }
  .op-row { grid-template-columns: minmax(0, 1fr) 72px 92px; font-size: 13.5px; }
  .op-gallery { gap: 10px; }
  .op-try { padding: 32px 22px; border-radius: 22px; }
}
