/* Krispy Kool home: layout replica of the quatt.io home page, measured at 1440 wide.
   Sizes scale with the viewport like the reference (h1 7vw, h2 3.27vw, card h3 2.1vw, product h3 3.73vw). */
.rf-home { --q-ink: #131a20; --q-mute: #5d6670; --q-red: #e3261f; --q-red-d: #c51f19; --q-beige: #f3ebe1; --q-sky: #eaf1f5; --q-sage: #e3e7de; --q-blue: #e8eeee; --q-grey: #f7f7f7; --q-line: rgba(19, 26, 32, .12); --q-pad: max(20px, 5vw); --q-r: 27px; background: #fff; color: var(--q-ink); }
.rf-home main { font-family: Inter, system-ui, sans-serif; }
.kwrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--q-pad); box-sizing: border-box; }

/* buttons: full pills, 46 tall */
.kb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 28px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.kb.sm { height: 42px; padding: 0 20px; font-size: 13.5px; }
.kb-fill { background: var(--q-red); color: #fff; min-width: 180px; }
.kb-fill:hover { background: var(--q-red-d); }
.kb-line { border: 1.5px solid var(--q-line); color: var(--q-ink); background: transparent; }
.kb-line:hover { border-color: var(--q-ink); }
.kb-line.light { border-color: rgba(255, 255, 255, .55); color: #fff; min-width: 180px; }
.kb-line.light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.kb .karr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* announcement bar */
.qbar { position: relative; z-index: 95; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--q-ink); color: #fff; font-size: 13.5px; font-weight: 600; padding: 0 16px; text-align: center; }
.qbar a { display: inline-flex; align-items: center; gap: 8px; }
.qbar .ms { font-size: 16px; }

/* nav */
.hdr.qn { position: fixed; top: 36px; left: 0; right: 0; transform: none; width: 100%; height: 72px; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; z-index: 90; transition: top .3s, background .3s, color .3s, box-shadow .3s, height .3s; }
.hdr.qn::after { display: none; }
.hdr.qn .qn-in { height: 100%; display: flex; align-items: center; gap: clamp(20px, 3vw, 56px); }
.hdr.qn .logo { justify-self: auto; flex: none; }
.hdr.qn .logo img { height: 46px; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .3)); }
.hdr.qn .logo span { display: none; }
.qn-links { display: flex; gap: clamp(18px, 2.6vw, 44px); font-size: 15px; font-weight: 600; }
.qn-links a { opacity: .95; transition: opacity .2s; }
.qn-links a:hover { opacity: .7; }
.qn-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.qn-tel { font-size: 15px; font-weight: 600; }
.hdr.qn .burger { display: none; color: inherit; }
.hdr.qn.solid { top: 0; height: 64px; background: #fff; color: var(--q-ink); box-shadow: 0 1px 0 var(--q-line), 0 10px 30px -20px rgba(0, 0, 0, .25); }
.hdr.qn.solid .logo img { height: 40px; filter: none; }

/* hero: 50vw tall video, centred stack, curved edge */
.qh { position: relative; height: max(560px, min(50vw, 92svh)); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; }
.qh-media { position: absolute; inset: 0; z-index: -1; background: #20262b; }
.qh-media img, .qh-media .hv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.qh-media .hv { opacity: 0; transition: opacity .9s; }
.qh-media .hv.on { opacity: 1; }
.qh-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 14, 18, .55) 0%, rgba(10, 14, 18, .35) 45%, rgba(10, 14, 18, .45) 100%); }
.qh-in { position: relative; z-index: 2; padding: 108px var(--q-pad) 60px; display: flex; flex-direction: column; align-items: center; }
.qh-rate { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(14px, 1.1vw, 17px); font-weight: 500; opacity: .95; }
.qh-rate b { font-weight: 700; }
.qh-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.qh-title { font-size: clamp(46px, 7vw, 124px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: clamp(10px, 1.4vw, 22px) 0 clamp(12px, 1.4vw, 22px); text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.qh-sub { font-size: clamp(17px, 1.82vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; max-width: 40ch; }
.qh-btns { display: flex; gap: 14px; margin-top: clamp(22px, 2.3vw, 38px); flex-wrap: wrap; justify-content: center; }
.qh-btns .kb { height: 46px; min-width: clamp(200px, 18.7vw, 300px); }
.qh-pause { position: absolute; left: var(--q-pad); bottom: 60px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; display: grid; place-items: center; background: rgba(0, 0, 0, .15); }
.qh-pause .ms { font-size: 22px; }
.qh-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(24px, 2.6vw, 40px); z-index: 2; fill: #fff; }

/* trust points */
.qusp { padding: clamp(28px, 3vw, 46px) 0; }
.qusp .kwrap { display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.qusp span { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(15px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.02em; }
.qusp .kico { width: 26px; height: 26px; fill: none; stroke: var(--q-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* section rhythm + titles */
.qsec { padding: clamp(48px, 6.4vw, 96px) 0 0; }
.qh2 { font-size: clamp(30px, 3.27vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; color: var(--q-ink); }
.qh2.c { text-align: center; margin-bottom: clamp(26px, 3.4vw, 50px); }

/* message card */
.qsec-msg { padding-top: clamp(30px, 4vw, 60px); }
.qmsg { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--q-beige); border-radius: var(--q-r); overflow: hidden; min-height: clamp(340px, 26vw, 420px); }
.qmsg-tx { padding: clamp(30px, 4.6vw, 68px); align-self: center; }
.qmsg-kick { font-size: 15px; font-weight: 500; color: #8a6a4f; }
.qmsg h2 { font-size: clamp(24px, 2.1vw, 34px); font-weight: 600; letter-spacing: -.04em; margin: 14px 0 16px; }
.qmsg p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; color: #3d4349; max-width: 46rem; }
.qmsg .kb { margin-top: 24px; min-width: 240px; }
.qmsg-img { position: relative; padding: 40px 50px 0 10px; display: flex; align-items: flex-end; }
.qmsg-img img { width: 100%; height: calc(100% - 10px); max-height: 380px; object-fit: cover; border-radius: 22px 22px 0 0; transform: rotate(3deg); transform-origin: bottom center; box-shadow: 0 30px 60px -30px rgba(40, 30, 20, .5); }
.qmsg-badge { position: absolute; right: 26px; top: 26px; width: 64px; height: 64px; border-radius: 50%; background: var(--q-red); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(227, 38, 31, .7); }
.qmsg-badge svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* solutions */
.qsol-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.3vw, 34px); }
.qsol { position: relative; display: block; aspect-ratio: 407 / 457; border-radius: var(--q-r); overflow: hidden; color: #fff; isolation: isolate; }
.qsol img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.qsol::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .7) 100%); }
.qsol:hover img { transform: scale(1.05); }
.qsol-tx { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.3vw, 34px); }
.qsol h3 { font-size: clamp(22px, 2.1vw, 34px); font-weight: 600; letter-spacing: -.04em; }
.qsol p { font-size: clamp(14px, 1.08vw, 16px); line-height: 1.55; margin-top: 10px; opacity: .95; max-width: 30ch; }

/* products */
.qprod-list { display: grid; gap: clamp(20px, 3.2vw, 48px); }
.qprod { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(380px, 41vw, 640px); border-radius: var(--q-r); overflow: hidden; }
.qprod.beige { background: var(--q-beige); } .qprod.sky { background: var(--q-sky); } .qprod.sage { background: var(--q-sage); }
.qprod.img-r .qprod-img { order: 2; }
.qprod-img { position: relative; overflow: hidden; }
.qprod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.qprod:hover .qprod-img img { transform: scale(1.03); }
.qprod-tx { align-self: center; padding: clamp(28px, 4.6vw, 68px) clamp(24px, 4.6vw, 100px); }
.qprod-kick { display: block; font-size: clamp(19px, 2.1vw, 32px); font-weight: 400; letter-spacing: -.03em; color: #4a5058; }
.qprod h3 { font-size: clamp(32px, 3.73vw, 62px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; margin: 8px 0 14px; color: var(--q-ink); }
.qprod p { font-size: clamp(16px, 1.55vw, 23px); font-weight: 400; letter-spacing: -.02em; color: #4a5058; }
.qprod-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.6vw, 38px); }
.qprod-btns .kb-fill { min-width: clamp(200px, 18.7vw, 290px); }
.qprod-facts { display: flex; margin-top: clamp(24px, 2.6vw, 38px); }
.qprod-facts div { padding: 0 clamp(16px, 2.2vw, 34px); border-left: 1px solid rgba(19, 26, 32, .22); }
.qprod-facts div:first-child { padding-left: 0; border-left: 0; }
.qprod-facts small { display: block; font-size: clamp(12px, .93vw, 14px); color: #4a5058; }
.qprod-facts b { display: block; font-size: clamp(14px, 1.25vw, 19px); font-weight: 500; letter-spacing: -.02em; margin-top: 4px; color: var(--q-ink); }

/* services: white cards on a white-to-blue fade */
.qsec-svc { background: linear-gradient(180deg, #fff 0%, var(--q-blue) 100%); padding-bottom: clamp(60px, 8vw, 120px); margin-top: 0; }
.qsvc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.3vw, 34px); }
.qsvc { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: var(--q-r); padding: clamp(26px, 2.8vw, 40px) clamp(16px, 1.9vw, 27px); box-shadow: 0 2px 30px -10px rgba(19, 26, 32, .1); transition: transform .3s, box-shadow .3s; }
.qsvc:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(19, 26, 32, .25); }
.qsvc-ic { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; background: #ffd9d6; color: var(--q-red); }
.qsvc-ic.sq { border-radius: 12px; } .qsvc-ic.ci { border-radius: 50%; } .qsvc-ic.dk { border-radius: 12px; background: var(--q-ink); color: #fff; }
.qsvc-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qsvc h3 { font-size: clamp(17px, 1.55vw, 23px); font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.qsvc small { display: block; font-size: clamp(13px, 1.08vw, 16px); color: var(--q-mute); margin-top: 12px; }
.qsvc .kb { margin-top: 18px; }
.qsvc:hover .kb-line { border-color: var(--q-ink); }

/* how it works: blue band, accordion left, picture right */
.qsec-blue { background: var(--q-blue); padding: clamp(50px, 6.4vw, 96px) 0; margin-top: -1px; }
.qhow { display: grid; grid-template-columns: 590fr 697fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.qhow-tx p { font-size: clamp(14px, 1.08vw, 16px); line-height: 1.65; color: var(--q-mute); margin: 16px 0 clamp(22px, 2.6vw, 40px); max-width: 44ch; }
.qaccs { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.qacc { background: #fff; border-radius: 20px; box-shadow: 0 2px 20px -10px rgba(19, 26, 32, .15); padding: 0 clamp(18px, 1.4vw, 22px); }
.qacc summary { list-style: none; min-height: clamp(60px, 5.1vw, 74px); display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: clamp(16px, 1.4vw, 21px); font-weight: 600; letter-spacing: -.03em; }
.qacc summary::-webkit-details-marker { display: none; }
.qacc summary i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--q-ink); display: grid; place-items: center; font-size: 14px; font-weight: 500; flex: none; }
.qacc summary span { flex: 1; }
.qchev { width: 22px; height: 22px; fill: none; stroke: var(--q-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; flex: none; }
.qacc[open] .qchev { transform: rotate(180deg); }
.qacc p { padding: 0 0 20px 46px; font-size: 15px; line-height: 1.6; color: var(--q-mute); }
.qhow-img { border-radius: var(--q-r); overflow: hidden; aspect-ratio: 697 / 480; }
.qhow-img img { width: 100%; height: 100%; object-fit: cover; }

/* latest guides */
.qnews-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(22px, 2.6vw, 40px); }
.qnews-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.3vw, 40px); }
.qnews { display: block; }
.qnews-img { aspect-ratio: 402 / 255; border-radius: var(--q-r); overflow: hidden; }
.qnews-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.qnews:hover .qnews-img img { transform: scale(1.04); }
.qnews-meta { display: block; margin-top: clamp(16px, 1.9vw, 28px); font-size: clamp(11px, .9vw, 13px); font-weight: 500; color: var(--q-mute); text-transform: uppercase; letter-spacing: .02em; }
.qnews-meta i { font-style: normal; margin: 0 6px; }
.qnews h3 { font-size: clamp(19px, 2.1vw, 32px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; margin-top: 10px; }

/* real jobs: grey band with two video cards */
.qsec-grey { background: var(--q-grey); padding-bottom: clamp(50px, 6.4vw, 96px); margin-top: clamp(48px, 6.4vw, 96px); }
.qvid-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.3vw, 34px); }
.qvid { position: relative; aspect-ratio: 627 / 353; border-radius: 20px; overflow: hidden; background: #000; color: #fff; }
.qvid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qvid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 60%); pointer-events: none; transition: opacity .3s; }
.qvid.playing::after, .qvid.playing .qvid-tx, .qvid.playing .qvid-play { opacity: 0; pointer-events: none; }
.qvid-play { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: clamp(56px, 5.7vw, 84px); height: clamp(56px, 5.7vw, 84px); border-radius: 50%; background: #fff; color: var(--q-ink); display: grid; place-items: center; transition: transform .3s, opacity .3s; }
.qvid-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.qvid-play .ms { font-size: clamp(30px, 3vw, 44px); }
.qvid-tx { position: absolute; left: clamp(18px, 2.3vw, 34px); bottom: clamp(18px, 2.3vw, 34px); z-index: 2; transition: opacity .3s; }
.qvid-tx small { display: block; font-size: clamp(13px, 1.2vw, 17px); font-weight: 500; margin-bottom: 8px; }
.qvid-tx b { display: block; font-size: clamp(26px, 3vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.qstories-note { text-align: center; margin-top: clamp(22px, 2.6vw, 40px); font-size: 15px; color: var(--q-mute); }
.qstories-note a { color: var(--q-ink); font-weight: 600; text-decoration: underline; }

/* parishes strip (in place of partner logos) */
.qsec-partners { padding-bottom: clamp(40px, 5vw, 70px); }
.qlogos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.qlogos-track { display: flex; align-items: center; gap: clamp(40px, 6vw, 110px); width: max-content; animation: qLogos 45s linear infinite; }
.qlogos-track a { font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -.03em; color: #6b7178; white-space: nowrap; transition: color .2s; }
.qlogos-track a:hover { color: var(--q-ink); }
.qlogos:hover .qlogos-track { animation-play-state: paused; }
@keyframes qLogos { to { transform: translateX(-50%); } }

/* small print */
.qsmall { padding: clamp(20px, 3vw, 46px) 0 clamp(40px, 5vw, 70px); }
.qsmall ol { max-width: 900px; margin: 0 auto; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: #6b7178; }

/* ---- tablet / phone ---- */
@media (max-width: 1100px) {
  .qn-links { gap: 18px; font-size: 14px; }
  .qn-tel { display: none; }
}
@media (max-width: 960px) {
  .qn-links { display: none; }
  .hdr.qn .burger { display: flex; }
  .qmsg, .qhow { grid-template-columns: 1fr; }
  .qmsg-img { padding: 0 24px; height: 260px; }
  .qprod { grid-template-columns: 1fr; }
  .qprod.img-r .qprod-img { order: 0; }
  .qprod-img { aspect-ratio: 16 / 10; }
  .qsvc-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .qbar { font-size: 12px; height: 34px; }
  .hdr.qn { top: 34px; height: 62px; }
  .hdr.qn .logo img { height: 38px; }
  .qn-right .kb { min-width: 0; height: 38px; padding: 0 14px; font-size: 12.5px; }
  .qh { height: auto; min-height: 88svh; }
  .qh-in { padding: 120px 20px 80px; }
  .qh-title { font-size: 48px; }
  .qh-btns { flex-direction: column; width: 100%; max-width: 340px; }
  .qh-btns .kb { width: 100%; }
  .qh-pause { bottom: 44px; width: 38px; height: 38px; }
  .qusp .kwrap { flex-direction: column; align-items: flex-start; gap: 12px; padding-left: 28px; }
  .qsol-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qsol { aspect-ratio: 3 / 4; border-radius: 18px; }
  .qsol:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .qsol p { display: none; }
  .qsol h3 { font-size: 19px; }
  .qprod { border-radius: 20px; min-height: 0; }
  .qprod-tx { padding: 22px 20px 26px; }
  .qprod-facts { flex-wrap: wrap; gap: 10px 0; }
  .qprod-facts div { padding: 0 14px; }
  .qsvc-row { gap: 10px; }
  .qsvc { padding: 20px 12px; border-radius: 18px; }
  .qsvc-ic { width: 44px; height: 44px; margin-bottom: 12px; }
  .qsvc .kb { height: 36px; padding: 0 12px; font-size: 12px; }
  .qnews-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .qnews:nth-child(3) { display: none; }
  .qnews-img { border-radius: 16px; }
  .qnews h3 { font-size: 16px; }
  .qvid-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qvid { aspect-ratio: 3 / 4; border-radius: 16px; }
  .qvid-tx b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .qlogos-track { animation: none; } }
/* nav links: plain case like the reference (overrides older .hdr nav rules) */
.hdr.qn nav { gap: clamp(18px, 2.6vw, 44px); font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.hdr.qn nav a { padding: 0; }
.hdr.qn nav a::after { display: none; }
.hdr.qn .kb { height: 42px; }
/* transparent PNG slots float on the card colour, like the reference product shots */
.qprod-img img.cut { object-fit: contain; padding: 6% 8%; filter: drop-shadow(0 30px 30px rgba(19, 26, 32, .18)); }
.qsol img.cut, .qmsg-img img.cut, .qhow-img img.cut { object-fit: contain; }
.qbar-m { display: none; }
@media (max-width: 760px) { .qbar-x { display: none; } .qbar-m { display: inline; } .qbar a { gap: 4px; white-space: nowrap; } }
