/* ============================================================
   Suganthavasan J — Portfolio : page + quote styles
   Builds on portfolio.css + the SJ design-system tokens.
   ============================================================ */

/* shared: pages with the fixed nav need top clearance */
.page { padding-top: 68px; }

/* ============================================================
   CAPABILITY DETAIL PAGE — rich header
   ============================================================ */
.cap-hero { position: relative; padding-block: 60px 52px; overflow: hidden; }
.cap-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 460px; pointer-events: none;
  background: radial-gradient(58% 100% at 16% -10%, var(--cap-tint, transparent), transparent 70%); opacity: 0.6; }
.cap-hero .shell { position: relative; }
.cap-hero__head { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.cap-hero__ic { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.cap-hero__ic svg { width: 28px; height: 28px; }
.cap-hero__ic--img { background: none; border-radius: 0; }
.cap-hero__ic--img img { width: 54px; height: 54px; display: block; border-radius: 13px; }
.cap-hero__eye { font-size: 13px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ash); }
.cap-hero h1 { margin-top: 4px; font-size: 44px; line-height: 1.14; font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.01em; max-width: 22ch; }
.cap-hero__desc { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--on-dark-mute); max-width: 62ch; }
.cap-hero__bullets { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; max-width: 700px; }
.cap-hero__bullets li { display: flex; align-items: center; gap: 13px; font-size: 16px; color: var(--ink); }
.cap-hero__bullets .sq { width: 7px; height: 7px; flex: none; }
.cap-hero__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .cap-hero h1 { font-size: 30px; }
  .cap-hero__desc { font-size: 17px; }
  .cap-hero__bullets { grid-template-columns: 1fr; }
  .cap-hero__head { gap: 14px; }
  .cap-hero__ic { width: 46px; height: 46px; }
  .cap-hero__ic--img img { width: 46px; height: 46px; }
}

.page-hero { padding-block: 72px 40px; position: relative; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: 52px; line-height: 1.12; font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.01em; max-width: 18ch; }
.page-hero p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--on-dark-mute); max-width: 60ch; }

/* quote page: tighter hero + shuttle gradient backdrop */
.page-hero--quote { padding-block: 46px 22px; position: relative; overflow: hidden; }
.page-hero--quote h1 { font-size: 44px; }
.page-hero--quote p { margin-top: 14px; font-size: 16px; max-width: 54ch; }
.page-hero--quote .shell { position: relative; z-index: 1; }
.qbg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--hero-stripe-start) 60%, transparent) 0%,
    color-mix(in oklab, var(--hero-stripe-end) 30%, transparent) 34%,
    transparent 88%);
  background-size: 160% 100%;
  animation: qShuttle 10s ease-in-out infinite alternate; }
@keyframes qShuttle { 0% { background-position: 0% 0; } 100% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .qbg { animation: none; } }

/* blog hero: blue shuttle gradient (mirrors quote red) */
.page-hero--blog { position: relative; overflow: hidden; }
.page-hero--blog .shell { position: relative; z-index: 1; }

/* blog hero two-column: copy left, animated character right */
.page-hero--blog .shell { padding-bottom: 0; }
.blog-hero__grid { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
.blog-hero__copy { min-width: 0; position: relative; z-index: 4; }

.char { position: relative; justify-self: end; width: 100%; max-width: 440px; aspect-ratio: 599 / 559; transform: translateY(34px); }
.char__fade { display: none; }
.char__glow { position: absolute; left: 50%; top: 54%; width: 92%; height: 92%; transform: translate(-50%,-50%); z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, var(--accent-blue) 55%, transparent), transparent 70%);
  filter: blur(46px); opacity: 0.4; }
.char__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1;
  opacity: 0; transition: opacity .26s ease; will-change: opacity;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,0.5));
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 90%); }
.char__frame.is-on { opacity: 1; }

/* gentle idle bob + a stronger breathing while asleep */
.char__frame.is-on { animation: charBob 4.2s ease-in-out infinite; }
.char__frame[data-scene="sleep"].is-on { animation: charSleep 3.6s ease-in-out infinite; }
@keyframes charBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes charSleep { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(2px) scale(1.008); } }

/* zzz floats while sleeping */
.char__zzz { position: absolute; top: 12%; right: 6%; z-index: 2; display: flex; gap: 2px; align-items: flex-end;
  opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.char.is-sleeping .char__zzz { opacity: 1; }
.char__zzz b { font-family: var(--font-display, inherit); font-weight: 700; color: var(--accent-blue);
  text-shadow: 0 0 14px color-mix(in oklab, var(--accent-blue) 60%, transparent); animation: zzzFloat 2.6s ease-in-out infinite; }
.char__zzz b:nth-child(1) { font-size: 24px; animation-delay: 0s; }
.char__zzz b:nth-child(2) { font-size: 32px; animation-delay: .5s; }
.char__zzz b:nth-child(3) { font-size: 42px; animation-delay: 1s; }
@keyframes zzzFloat { 0% { opacity: 0; transform: translateY(6px) rotate(-6deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px) rotate(8deg); } }

@media (prefers-reduced-motion: reduce) {
  .char__frame.is-on { animation: none; }
  .char__zzz b { animation: none; }
}
@media (max-width: 860px) {
  .blog-hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .char { order: -1; justify-self: center; max-width: 300px; margin-bottom: 6px; }
}
.bbg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent-blue) 52%, transparent) 0%,
    color-mix(in oklab, var(--accent-blue) 26%, transparent) 34%,
    transparent 88%);
  background-size: 160% 100%;
  animation: qShuttle 10s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .bbg { animation: none; } }

/* work hero: green shuttle gradient (mirrors quote red / blog blue) */
.page-hero--work { position: relative; overflow: hidden; }
.page-hero--work .shell { position: relative; z-index: 1; }
.wbg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent-green) 50%, transparent) 0%,
    color-mix(in oklab, var(--accent-green) 25%, transparent) 34%,
    transparent 88%);
  background-size: 160% 100%;
  animation: qShuttle 10s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .wbg { animation: none; } }

/* ============================================================
   PORTFOLIO — vertical parallax masonry
   ============================================================ */
.expl { position: relative; height: 480vh; background: var(--canvas); }
.expl__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--canvas); }
.expl__plane { position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; gap: 18px; width: min(1520px, 94vw); }

.ex-col { flex: 1; display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.ex-card { position: relative; width: 100%; aspect-ratio: var(--ar, 3/4); border-radius: 12px; overflow: hidden;
  background: var(--surface-card); border: 1px solid var(--hairline); }
.ex-card image-slot, .ex-card .ex-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-card .ex-img { position: absolute; inset: 0; }

.ex-card .yt { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0;
  background: var(--surface-elevated); cursor: pointer; }
.ex-card .yt__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-card .yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-card .yt__btn { position: relative; z-index: 3;
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(7,8,10,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; transition: background .18s ease, transform .18s ease; }
.ex-card .yt:hover .yt__btn { background: rgba(7,8,10,0.72); transform: scale(1.08); }
.ex-card .yt__btn svg { width: 22px; height: 22px; margin-left: 2px; }

/* title + bottom gradient overlay on every card */
.ex-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 46px 14px 13px; font-size: 14px; font-weight: var(--weight-medium); line-height: 1.3;
  color: #fff; letter-spacing: 0.01em; text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  background: linear-gradient(to top, rgba(4,5,7,0.94) 0%, rgba(4,5,7,0.55) 42%, transparent 100%); }

/* link-out card (Behance project) — thumbnail opens in a new tab */
.ex-link { display: block; position: absolute; inset: 0; }
.ex-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-link__badge { position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(7,8,10,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22); color: #fff;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, background .18s ease; }
.ex-link__badge svg { width: 16px; height: 16px; }
.ex-card:hover .ex-link__badge { opacity: 1; transform: translateY(0); }
.ex-card:hover .ex-link__badge { background: rgba(7,8,10,0.75); }

/* soft dark edges so cards emerge & dissolve */
.expl__fade { position: absolute; left: 0; right: 0; height: 24vh; z-index: 8; pointer-events: none; }
.expl__fade--t { top: 0; background: linear-gradient(180deg, var(--canvas) 24%, transparent); }
.expl__fade--b { bottom: 0; background: linear-gradient(0deg, var(--canvas) 24%, transparent); }

/* minimal corner labels */
.expl__labels { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.expl__lbl { position: absolute; font-size: 12px; font-weight: var(--weight-medium);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.expl__lbl--tl { top: 92px; left: var(--page-pad); }
.expl__lbl--tc { top: 92px; left: 50%; transform: translateX(-50%); }
.expl__lbl--tr { top: 92px; right: var(--page-pad); }
.expl__lbl--bl { bottom: 30px; left: var(--page-pad); }
.expl__lbl--br { bottom: 30px; right: var(--page-pad); color: var(--ash); }

/* tablet & mobile: calm masonry grid, no parallax */
@media (max-width: 900px) {
  .expl { height: auto; }
  .expl__stage { position: static; height: auto; overflow: visible; padding: 92px 0 72px; }
  .expl__plane { position: static; transform: none; display: block; width: auto;
    columns: 2; column-gap: 14px; padding: 0 var(--page-pad); }
  .ex-col { display: contents; }
  .ex-col > * { transform: none !important; }
  .ex-card { break-inside: avoid; margin-bottom: 14px; }
  .expl__fade { display: none; }
  .expl__lbl--tc, .expl__lbl--tr, .expl__lbl--br { display: none; }
  .expl__lbl--tl { top: 64px; }
  .expl__lbl--bl { display: none; }
}
@media (max-width: 560px) { .expl__plane { columns: 1; } }

/* video lightbox — full-view player */
.vlight { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw; background: rgba(4,5,7,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vlight[hidden] { display: none; }
.vlight__frame { position: relative; width: min(1200px, 92vw); aspect-ratio: 16 / 9; max-height: 86vh;
  border-radius: 14px; overflow: hidden; box-shadow: 0 60px 160px -40px rgba(0,0,0,0.9); }
.vlight__frame.is-portrait { width: auto; height: 86vh; aspect-ratio: 9 / 16; }
.vlight__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.vlight__loader { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  background: var(--canvas); color: var(--ink); }
.vlight__loader svg { width: min(28vmin, 150px); height: min(28vmin, 150px); overflow: visible; }
.vlight__loader circle { fill: currentColor; }
.vlight__frame.is-loaded .vlight__loader { opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.vlight__close { position: absolute; top: 24px; right: 28px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-elevated); border: 1px solid var(--hairline-strong); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2;
  transition: background .16s ease, border-color .16s ease; }
.vlight__close:hover { background: var(--surface-card); border-color: var(--stone); }

/* quote hero: two columns — copy left, animated How-it-works right */
.qhero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-top: 4px; }
.qhero__left h1 { margin-top: 4px; }
.qhero__desc { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--on-dark-mute); max-width: 46ch; }
.qhero__wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 15px; font-weight: var(--weight-medium); color: var(--mute); transition: color .14s ease; }
.qhero__wa svg { width: 20px; height: 20px; color: #25d366; flex: none; }
.qhero__wa:hover { color: var(--ink); }

/* hire hero: résumé + whatsapp action row */
.qhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.qhero__actions .qhero__wa { margin-top: 0; }
.btn--resume { display: inline-flex; align-items: center; gap: 9px; }
.btn--resume svg { width: 16px; height: 16px; flex: none; }

/* hire hero: blue shuttle gradient (mirrors quote red) */
.page-hero--hire { position: relative; overflow: hidden; }
.page-hero--hire .shell { position: relative; z-index: 1; }
.hbg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent-blue) 50%, transparent) 0%,
    color-mix(in oklab, var(--accent-blue) 24%, transparent) 34%,
    transparent 86%);
  background-size: 160% 100%;
  animation: qShuttle 10s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hbg { animation: none; } }

/* animated How-it-works card */
.howcard { position: relative; background: rgba(13,13,13,0.72); border: 1px solid var(--hairline); border-radius: 12px; padding: 28px 28px 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.howcard__eye { display: block; font-size: 12px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.16em; color: var(--ash); margin-bottom: 20px; }
.howsteps { display: flex; flex-direction: column; gap: 6px; }
.howstep { display: grid; grid-template-columns: 36px 1fr; gap: 15px; align-items: start; padding: 12px; border-radius: 9px; opacity: 0.4; transition: opacity .5s ease, background .5s ease, transform .5s ease; }
.howstep.is-active { opacity: 1; background: var(--surface-elevated); }
.howstep__n { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline-strong); display: grid; place-items: center; font-size: 15px; font-weight: var(--weight-semibold); color: var(--ink); transition: background .5s ease, color .5s ease, border-color .5s ease; }
.howstep.is-active .howstep__n { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.howstep__body { display: flex; flex-direction: column; gap: 4px; padding-top: 5px; }
.howstep__t { font-size: 17px; font-weight: var(--weight-medium); color: var(--ink); }
.howstep__d { font-size: 14px; line-height: 1.5; color: var(--mute); }
.howcard__bar { margin-top: 20px; height: 3px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.howcard__fill { display: block; height: 100%; width: 33%; background: var(--primary); border-radius: 3px; transition: width .55s cubic-bezier(.4,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .howstep { opacity: 1; }
  .howcard__fill { display: none; }
}

/* form gets the full lower area, comfortably centered */
.qform-wrap { padding-bottom: 72px; }
.qform-col { max-width: 980px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-medium); color: var(--mute); margin-bottom: 26px; transition: color .12s ease, gap .12s ease; }
.back-link:hover { color: var(--ink); gap: 12px; }
.back-link svg { width: 14px; height: 14px; }

/* ============================================================
   QUOTE SECTION (home) + QUOTE PAGE shared form pieces
   ============================================================ */
.quote-cta { padding-block: var(--rhythm); border-top: 1px solid var(--hairline); }
.qc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.qc__intro .eyebrow { margin-bottom: 14px; }
.qc__intro h2 { font-size: 44px; line-height: 1.18; font-weight: var(--weight-medium); color: var(--ink); }
.qc__lead { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--on-dark-mute); max-width: 46ch; }
.qc__wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; font-weight: var(--weight-medium); color: var(--mute); transition: color .14s ease; }
.qc__wa svg { width: 20px; height: 20px; color: #25d366; }
.qc__wa:hover { color: var(--ink); }

/* the form card */
.qform { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 26px; }
.qfield { display: flex; flex-direction: column; gap: 14px; }
.qfield__label { font-size: 13px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ash); }
.chips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.qchip {
  appearance: none; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-size: 15px; font-weight: var(--weight-medium);
  color: var(--body); background: var(--surface-elevated);
  border: 1px solid var(--hairline); border-radius: 12px; transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.chips-row .qchip { flex: 1; justify-content: center; min-width: 96px; }
.qchip:hover { color: var(--ink); border-color: var(--hairline-strong); }
.qchip.is-active { color: var(--ink); background: var(--surface-card); border-color: var(--on-dark-mute); }
.qchip .sq { width: 8px; height: 8px; flex: none; }

/* live estimate readout */
.qest { background: var(--surface-elevated); border: 1px solid var(--hairline); border-radius: 12px; padding: 20px 22px; }
.qest__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.qest__label { font-size: 13px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ash); }
.qest__val { font-size: 28px; font-weight: var(--weight-semibold); color: var(--ink); letter-spacing: -0.01em; font-feature-settings: var(--font-features-display); white-space: nowrap; }
.qest__note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--mute); }
.qform__submit { justify-content: center; width: 100%; padding-block: 15px; }

/* ============================================================
   QUOTE PAGE
   ============================================================ */
.qpage-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: start; padding-bottom: 64px; }
.qpage-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.qcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; }
.qcard h3 { font-size: 19px; font-weight: var(--weight-medium); color: var(--ink); margin-bottom: 8px; }
.qcard p { font-size: 15px; line-height: 1.6; color: var(--mute); }

/* How-it-works stepper (numbered, connecting line) */
.qhow__h { font-size: 20px; font-weight: var(--weight-medium); color: var(--ink); margin-bottom: 24px; }
.stepper { display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: -2px; width: 1px; background: var(--hairline-strong); }
.step:last-child::before { display: none; }
.step__n { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--canvas); display: grid; place-items: center; font-size: 14px; font-weight: var(--weight-semibold); color: var(--ink); }
.step__body { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.step__t { font-size: 17px; font-weight: var(--weight-medium); color: var(--ink); }
.step__d { font-size: 15px; line-height: 1.5; color: var(--mute); }

/* full form */
.qfull { display: flex; flex-direction: column; gap: 26px; }
.qfull .qfield { gap: 14px; }
.qfull .chips-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ---- "What do you need" multi-select checkboxes ---- */
.qfield__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qfield__hint { text-transform: none; letter-spacing: 0; font-weight: var(--weight-regular); color: var(--mute); font-size: 12px; margin-left: 6px; }
.allbtn { appearance: none; font-family: inherit; cursor: pointer; font-size: 13px; font-weight: var(--weight-medium);
  color: var(--mute); background: transparent; border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px;
  transition: color .14s ease, border-color .14s ease, background .14s ease; }
.allbtn:hover { color: var(--ink); border-color: var(--hairline-strong); }
.allbtn.is-active { color: var(--ink); background: var(--surface-card); border-color: var(--on-dark-mute); }
.chips-grid--multi { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.qchk { appearance: none; font-family: inherit; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 12px; font-size: 15px; font-weight: var(--weight-medium);
  color: var(--body); background: var(--surface-elevated); border: 1px solid var(--hairline); border-radius: 12px;
  transition: background .14s ease, border-color .14s ease, color .14s ease; }
.qchk:hover { color: var(--ink); border-color: var(--hairline-strong); }
.qchk.is-active { color: var(--ink); background: color-mix(in oklab, var(--qc, var(--on-dark-mute)) 10%, var(--surface-card)); border-color: var(--qc, var(--on-dark-mute)); }
.qchk__box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--hairline-strong);
  display: grid; place-items: center; color: var(--on-primary); background: transparent; transition: background .14s ease, border-color .14s ease; }
.qchk__box svg { width: 13px; height: 13px; opacity: 0; transition: opacity .12s ease; }
.qchk.is-active .qchk__box { background: var(--qc, var(--primary)); border-color: var(--qc, var(--primary)); }
.qchk.is-active .qchk__box svg { opacity: 1; }

/* budget free-text + negotiable mini-pills */
.chips-row--mini { gap: 8px; margin-top: 4px; }
.chips-row--mini .qchip { flex: 0 0 auto; min-width: 0; padding: 12px; font-size: 14px; }
.chips-row--wrap { flex-wrap: wrap; }
.chips-row--wrap .qchip { flex: 1 1 auto; min-width: 84px; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label { font-size: 13px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ash); }
.input, .textarea, .select {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-elevated); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px; width: 100%; transition: border-color .14s ease;
}
.qfull .qchip { padding: 12px; font-size: 15px; }
.qfull .qest { padding: 22px 24px; }
.qfull .qest__val { font-size: 28px; }
.qfull .qsubmit-row { margin-top: 4px; }
.qfull .qsubmit-row .btn { padding-block: 15px; }
.input::placeholder, .textarea::placeholder { color: var(--ash); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--on-dark-mute); }

/* budget: currency selector fused into the same input box */
.budget-box { display: flex; align-items: stretch; background: var(--surface-elevated); border: 1px solid var(--hairline); border-radius: 12px; transition: border-color .14s ease; }
.budget-box:focus-within { border-color: var(--on-dark-mute); }
.budget-currency { appearance: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: var(--weight-medium);
  color: var(--ink); background: transparent; border: none; border-right: 1px solid var(--hairline);
  padding: 12px 26px 12px 14px; border-radius: 12px 0 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%239c9c9d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.budget-currency:focus { outline: none; }
.budget-amount { flex: 1; min-width: 0; font-family: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: none; border-radius: 0 12px 12px 0; padding: 12px 14px; }
.budget-amount:focus { outline: none; }
.budget-amount::placeholder { color: var(--ash); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%239c9c9d' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.qsubmit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qsubmit-row .btn { padding-block: 15px; border-radius: 12px; }
.muted-note { font-size: 13px; color: var(--mute); }

/* confirmation panel */
.qdone { display: none; background: var(--surface); border: 1px solid var(--hairline); padding: 40px; text-align: center; flex-direction: column; align-items: center; gap: 18px; }
.qdone.is-shown { display: flex; }
.qdone__check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-green-soft); color: var(--accent-green); }
.qdone__check svg { width: 28px; height: 28px; }
.qdone h2 { font-size: 30px; font-weight: var(--weight-medium); color: var(--ink); }
.qdone p { font-size: 16px; line-height: 1.6; color: var(--on-dark-mute); max-width: 52ch; }
.qdone__est { font-size: 22px; font-weight: var(--weight-semibold); color: var(--ink); }
.qdone__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn--wa { background: #25d366; color: #07120a; padding: 13px 20px; }
.btn--wa:hover { background: #1fbe5b; }
.btn--wa svg { width: 18px; height: 18px; }

/* ============================================================
   WORK / PROJECTS PAGE
   ============================================================ */
.proj-section { padding-block: 56px; border-top: 1px solid var(--hairline); scroll-margin-top: 90px; }
.proj-head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.proj-head .dot { width: 12px; height: 12px; border-radius: 3px; }
.proj-head h2 { font-size: 30px; font-weight: var(--weight-medium); color: var(--ink); white-space: nowrap; }
.proj-head .count { margin-left: auto; font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj-card { border: 1px solid var(--hairline); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: border-color .16s ease, transform .16s ease; }
.proj-card:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.proj-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-card); }
.proj-card__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }

/* motion: click-to-play YouTube cards */
.proj-card--play { cursor: default; }
.proj-card--play .yt, .proj-card--play .yt__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.yt { position: relative; padding: 0; background: var(--surface-card); cursor: pointer; overflow: hidden; }
.yt__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .2s ease; }
.yt:hover .yt__poster { transform: scale(1.04); opacity: .8; }
.yt__btn { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(10,10,12,0.55);
  border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(4px); transition: background .16s ease, transform .16s ease; }
.yt:hover .yt__btn { background: var(--accent-blue, #2d7ff9); transform: scale(1.06); }
.yt__btn svg { width: 26px; height: 26px; margin-left: 2px; }
.proj-card__title { font-size: 17px; font-weight: var(--weight-medium); color: var(--ink); }
.proj-card__meta { font-size: 14px; color: var(--mute); }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-note { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px dashed var(--hairline-strong); background: var(--surface); color: var(--mute); font-size: 14px; line-height: 1.5; margin-bottom: 40px; }
.blog-note svg { width: 20px; height: 20px; flex: none; color: var(--accent-blue); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: var(--rhythm); }
.blog-grid--single { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.blog-grid--single .post--featured { grid-column: auto; }
.post { display: flex; flex-direction: column; border: 1px solid var(--hairline); background: var(--surface); padding: 28px; gap: 16px; transition: border-color .16s ease, transform .16s ease; }
.post__thumb { position: relative; margin: -28px -28px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-card); border-bottom: 1px solid var(--hairline); }
.post__thumb image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.post__thumbimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__li--site { color: var(--accent-green); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.post--featured { grid-column: 1 / -1; }
.post--featured .post__thumb { aspect-ratio: 16 / 9; }
.post--featured h3 { font-size: 26px; }
.post:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.post__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.post__tag { font-size: 12px; font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ash); }
.post__li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--accent-blue); }
.post__li svg { width: 16px; height: 16px; }
.post h3 { font-size: 21px; line-height: 1.3; font-weight: var(--weight-medium); color: var(--ink); }
.post p { font-size: 15px; line-height: 1.6; color: var(--on-dark-mute); }
.post__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.post__date { font-size: 13px; color: var(--mute); }
.post__read { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-medium); color: var(--ink); transition: gap .14s ease; }
.post:hover .post__read { gap: 12px; }
.post__read svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .qc, .qpage-grid { grid-template-columns: 1fr; gap: 36px; }
  .qpage-aside { position: static; }
  .qhero { grid-template-columns: 1fr; gap: 36px; }
  .qfull .chips-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 40px; }
}
@media (max-width: 720px) {
  .qc__intro h2 { font-size: 30px; }
  .qform { padding: 22px; }
  .chips-grid { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr; }
  .proj-grid, .blog-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; }
  .qdone { padding: 28px; }
}
