/* bananana.marketing — the case files (/portfolio/), its lead form and the thank-you pages.
   Film-noir mood: venetian-blind light, manila dossiers, rubber stamps, a wax seal. No inline styles (CSP). */

/* breadcrumbs (same as the blog) */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--red); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }

/* ---------- hero ---------- */
.pf-hero {
  position: relative; overflow: hidden; padding-block: 26px clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 90% at 78% -10%, rgba(234, 33, 43, .2), transparent 62%), var(--ink);
}
/* light through venetian blinds */
.pf-hero::before {
  content: ""; position: absolute; inset: -30% -20%; pointer-events: none;
  background: repeating-linear-gradient(-24deg, rgba(247, 244, 232, .055) 0 34px, transparent 34px 88px);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 30% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 30% 35%, #000 10%, transparent 72%);
}
.pf-hero-wrap { position: relative; }
.pf-hero-in { position: relative; display: grid; gap: 24px; justify-items: start; max-width: 760px; margin-top: clamp(36px, 6vw, 72px); }
.pf-hero .ttl { font-size: clamp(40px, 6.4vw, 84px); }
.pf-stamp {
  position: absolute; inset-inline-end: var(--gut); top: clamp(90px, 14vw, 170px); display: grid; justify-items: center; gap: 2px;
  padding: 10px 26px 12px; border: 4px double var(--red-hot); border-radius: 10px; color: var(--red-hot);
  font: 900 clamp(30px, 4.4vw, 58px)/1 var(--fa-head); rotate: -14deg; opacity: .82; pointer-events: none;
  animation: stamp 1s .35s cubic-bezier(.2, 1.4, .4, 1) both;
}
.pf-stamp small { font: 700 clamp(10px, 1vw, 13px)/1 var(--mono); letter-spacing: .5em; }
@keyframes stamp { from { opacity: 0; scale: 2.2; } to { opacity: .82; scale: 1; } }

.case-log {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; color: var(--text-3);
  border-block: 1px dashed #3a3639; font-size: 15px;
}
.case-log span[lang="en"] { font: 500 12px/1 var(--mono); letter-spacing: .35em; color: var(--red-hot); }
.case-log b { color: var(--cream); font: 700 18px/1 var(--mono); }
.case-log .dot { color: #4a464a; }

/* ---------- files ---------- */
.pf-files { padding-top: clamp(56px, 7vw, 90px); }
.case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; }
.case-filter button {
  font: inherit; font-weight: 700; font-size: 15px; color: var(--text-2); background: transparent; cursor: pointer;
  border: 1.5px solid #4a464a; border-radius: 999px; padding: 7px 18px; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.case-filter button:hover { border-color: var(--cream); color: var(--cream); }
.case-filter button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: #000; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px clamp(22px, 2.6vw, 36px); }
.cases-empty { padding: 60px 0; color: var(--text-2); font-size: 18px; text-align: center; }

.case {
  position: relative; background: var(--cream-2); color: #000; padding: 12px 12px 18px;
  border-radius: 0 14px 14px 14px; box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(0, 0, 0, .12);
  rotate: -.7deg; transition: rotate .45s cubic-bezier(.2, .8, .2, 1), translate .45s cubic-bezier(.2, .8, .2, 1);
}
.case:nth-child(3n + 2) { rotate: .6deg; }
.case:nth-child(3n) { rotate: -.3deg; }
.case:hover, .case:focus-within { rotate: 0deg; translate: 0 -8px; }
.case[hidden] { display: none; }
.case-feat { grid-column: span 2; }

/* the folder tab */
.case-tab {
  position: absolute; bottom: 100%; inset-inline-start: 0; display: flex; align-items: center; gap: 10px;
  height: 26px; padding: 0 14px; background: var(--cream-2); border-radius: 10px 10px 0 0; font-size: 12.5px; color: #4b4436;
}
.case-tab b { font: 700 12px/1 var(--mono); color: var(--red-btn); letter-spacing: .08em; }
.case-tab i { font-style: normal; font-weight: 700; }
/* paper clip */
.case::before, .case::after {
  content: ""; position: absolute; z-index: 3; top: -16px; inset-inline-end: 26px; width: 16px; height: 48px;
  border: 3px solid #9c9a94; border-radius: 10px; rotate: 9deg; pointer-events: none;
}
.case::after { top: -8px; inset-inline-end: 30px; width: 8px; height: 30px; border-width: 2.5px; }

.case-art {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #0f0e0f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); text-decoration: none;
}
.case-feat .case-art { aspect-ratio: 16 / 9; }
.case-img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) contrast(1.08) brightness(.92);
  transition: filter .6s ease, scale .8s cubic-bezier(.2, .8, .2, 1);
}
.case:hover .case-img, .case-art:focus-visible .case-img { filter: none; scale: 1.04; }
.case-ph {
  display: grid; place-items: center; height: 100%; font-size: 72px;
  background: repeating-linear-gradient(45deg, #161416 0 12px, #0d0c0d 12px 24px);
}
.case-play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(208, 22, 31, .94); box-shadow: 0 0 0 8px rgba(208, 22, 31, .25), 0 14px 30px rgba(0, 0, 0, .5);
  transition: scale .3s ease, box-shadow .3s ease;
}
.case-play i { width: 0; height: 0; margin-left: 6px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.case:hover .case-play { scale: 1.08; box-shadow: 0 0 0 14px rgba(208, 22, 31, .22), 0 14px 30px rgba(0, 0, 0, .5); }
.case-stamp {
  position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; padding: 4px 14px 6px; border: 3px double #ff4040; border-radius: 6px;
  color: #ff4040; background: rgba(10, 9, 10, .62); font: 900 17px/1.3 var(--fa-head); rotate: -9deg;
  opacity: 0; scale: 1.8; transition: opacity .18s ease, scale .32s cubic-bezier(.2, 1.5, .4, 1);
}
.case:hover .case-stamp, .case-art:focus-visible .case-stamp { opacity: 1; scale: 1; }
.case-body { padding: 14px 4px 0; display: grid; gap: 2px; }
.case-k { font: 500 11px/1.4 var(--mono); letter-spacing: .3em; color: #8a7f6a; }
.case-t { font: 900 clamp(18px, 1.6vw, 21px)/1.5 var(--fa-head); }
.case-c { color: #5b5446; font-size: 14.5px; }

/* ---------- call-to-action band ---------- */
.pf-band { position: relative; overflow: hidden; margin-top: var(--sec); background: var(--red-btn); color: #fff; }
.pf-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-24deg, rgba(0, 0, 0, .12) 0 30px, transparent 30px 80px);
}
.pf-band-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding-block: clamp(40px, 5vw, 64px); }
.pf-band-k { width: 100%; font: 500 12px/1 var(--mono); letter-spacing: .45em; color: rgba(255, 255, 255, .72); text-transform: uppercase; }
.pf-band-t { font: 900 clamp(26px, 3.6vw, 46px)/1.35 var(--fa-head); max-width: 22ch; }
.pf-band .pill-ink:hover { background: #1a1a1a; }

/* ---------- lead form: the contract ---------- */
.lead { padding-block: var(--sec); }
.lead-card {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4.4vw, 60px); border-radius: var(--r); background: var(--cream); color: #000;
  box-shadow: 0 50px 90px -40px rgba(234, 33, 43, .35);
}
.lead-card .ttl { font-size: clamp(32px, 4.2vw, 54px); }
.lead-card .ttl-fa { color: #000; }
.lead-card .lede { color: #4b4436; margin-top: 18px; }
.lead-or { margin-top: 18px; color: #4b4436; }
.lead-or a { color: #000; font-weight: 800; text-underline-offset: 6px; text-decoration-color: var(--red); }
.lead-seal {
  position: absolute; top: -30px; inset-inline-end: clamp(24px, 5vw, 60px); width: 78px; height: 78px; border-radius: 47% 53% 50% 48%;
  display: grid; place-items: center; color: rgba(255, 220, 220, .9); font-size: 30px; rotate: -10deg;
  background: radial-gradient(circle at 35% 30%, #ff4a4a, #b3121a 55%, #6d0a0f);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45), inset 0 -4px 8px rgba(0, 0, 0, .35), inset 0 3px 6px rgba(255, 255, 255, .2);
}
.lead-form { display: grid; gap: 4px; align-content: start; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld span, .picks legend { font-weight: 800; font-size: 14.5px; color: #3d372e; }
.fld input {
  font: inherit; font-size: 16.5px; color: #000; background: #fff; width: 100%; min-height: 52px; padding: 10px 16px;
  border: 1.5px solid #d3c9b1; border-radius: 12px; transition: border-color .2s ease;
}
.fld input::placeholder { color: #a39a87; }
.fld input:focus { border-color: #000; outline: none; }
.fld input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.picks { border: 0; padding: 0; margin: 20px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.picks legend { padding: 0; margin-bottom: 10px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1.5px solid #d3c9b1; font-weight: 700; font-size: 14.5px; line-height: 1.5;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, translate .15s ease;
}
.pick span:hover { border-color: #000; translate: 0 -2px; }
.pick .suit { color: #000; font-size: 13px; }
.pick .suit.red { color: var(--red); }
.pick input:checked + span { background: #000; border-color: #000; color: var(--cream); }
.pick input:checked + span .suit { color: var(--cream); }
.pick input:checked + span .suit.red { color: var(--red-hot); }
.pick input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
/* honeypot: out of sight without an offset (a huge left offset widens an RTL page) */
.hp { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.lead-btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.lead-btn[disabled] { opacity: .6; cursor: progress; }
.lead-priv { margin-top: 12px; font-size: 13.5px; color: #6b6355; }
.lead-msg { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #2a0d0f; color: #ffd0d0; font-size: 14.5px; }
.lead-msg a { color: #fff; }

/* mobile: a sticky way to the form, hidden once the form is on screen */
.float-cta {
  position: fixed; z-index: 40; inset-inline: 16px; bottom: max(14px, env(safe-area-inset-bottom)); justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6); display: none; transition: opacity .25s ease, translate .25s ease;
}
.float-cta.away { opacity: 0; translate: 0 24px; pointer-events: none; }

/* ---------- lightbox ---------- */
.lb { padding: 0; border: 0; background: transparent; color: var(--text); width: min(1080px, 94vw); max-width: none; max-height: 94vh; overflow: visible; }
.lb::backdrop { background: radial-gradient(ellipse at 50% 40%, rgba(20, 18, 20, .86), rgba(0, 0, 0, .96)); }
.lb-in { position: relative; display: grid; background: var(--ink-1); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-height: 94vh; }
.lb-stage { display: grid; place-items: center; background: #000; min-height: 200px; }
.lb-stage img, .lb-stage video { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: #000; }
.lb-stage iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; border: 0; }
.lb-blocked { padding: 40px 24px; text-align: center; color: var(--text-2); }
.lb-cap { padding: 16px 22px 20px; display: grid; gap: 2px; overflow-y: auto; }
.lb-no { font: 500 12px/1.4 var(--mono); letter-spacing: .3em; color: var(--red-hot); }
.lb-cap h2 { font: 900 clamp(19px, 2vw, 24px)/1.5 var(--fa-head); }
.lb-c { color: var(--cream); font-weight: 700; }
.lb-d { color: var(--text-2); font-size: 15px; }
.lb-c:empty, .lb-d:empty, .lb-out:empty { display: none; }
.lb-out { margin-top: 6px; }
.lb-out a { color: var(--red-hot); font-weight: 700; text-underline-offset: 5px; }
.lb-x { position: absolute; z-index: 3; top: 10px; inset-inline-end: 10px; }
.lb-x button, .lb-nav {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font: 400 24px/1 var(--fa);
  color: var(--cream); background: rgba(0, 0, 0, .66); border: 1px solid #4a464a; transition: background-color .2s ease, border-color .2s ease;
}
.lb-x button:hover, .lb-nav:hover { background: var(--red-btn); border-color: var(--red-btn); }
.lb-nav { position: absolute; z-index: 3; top: calc(min(36vh, min(1080px, 94vw) * .28125) - 21px); font-size: 20px; }
.lb-prev { inset-inline-start: 10px; }
.lb-next { inset-inline-end: 10px; }
.lb-nav[hidden] { display: none; }
html.lb-open { overflow: hidden; }

/* ---------- thank-you / error ---------- */
.note { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 24px; padding-block: 70px 90px; }
.note-card {
  display: grid; place-items: center; align-content: center; gap: 2px; width: 92px; height: 128px; border-radius: 10px; rotate: -8deg;
  background: var(--cream); color: #000; box-shadow: 0 24px 40px -16px rgba(234, 33, 43, .5); font-size: 34px;
}
.note-card b { font: 700 24px/1 var(--serif); }
.note-card .suit { color: #000; }
.note-act { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lead-card { grid-template-columns: 1fr; }
  .float-cta { display: inline-flex; }
  body.pf { padding-bottom: 76px; }
  .pf-stamp { top: 64px; font-size: 26px; padding: 6px 16px 8px; }
}
@media (max-width: 640px) {
  .cases { grid-template-columns: 1fr; gap: 58px; }
  .case-feat { grid-column: auto; }
  .case-feat .case-art { aspect-ratio: 4 / 3; }
  .lead-row { grid-template-columns: 1fr; }
  .lead-btn { justify-self: stretch; justify-content: center; }
  .pf-stamp { inset-inline-end: 10px; top: auto; bottom: 26px; font-size: 18px; border-width: 3px; padding: 4px 12px 6px; }
  .pf-stamp small { letter-spacing: .3em; }
  .lb { width: 100vw; }
  .lb-nav { top: calc(min(36vh, 100vw * .28125) - 21px); }
  .lb-in { border-radius: 0; border-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-stamp { animation: none; }
  .case, .case-img, .case-stamp, .case-play, .pick span, .float-cta { transition: none; }
}
