/* =========================================================
   LaidBLK Studios — All Work + Build Your Plan pages
   ========================================================= */

/* three-option segmented control */
.seg--3 .seg__thumb { width: calc((100% - 8px) / 3); transform: translateX(calc(var(--k, 0) * 100%)); }
.seg--3 button { min-width: 0; padding: 0 18px; }
.seg.is-right .seg__thumb { transform: translateX(100%); }

/* =================== ALL WORK =================== */
.wk { position: relative; z-index: 1; }
.wk-hero { position: relative; min-height: 88svh; display: grid; align-items: end; padding: 140px var(--gutter) 64px; overflow: hidden; }
.wk-hero__copy { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; }
.wk-title { font-size: clamp(56px, 11vw, 176px); font-weight: 800; letter-spacing: -0.055em; line-height: .92; display: grid; }
.wk-title span { display: block; opacity: 0; filter: blur(18px); transform: translateY(30px) scaleX(1.06); transition: opacity 1.1s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
body.is-ready .wk-title span { opacity: 1; filter: none; transform: none; }
body.is-ready .wk-title .w2 { transition-delay: .15s; }
.wk-hero__sub { margin-top: 26px; max-width: 560px; color: var(--cement-light); font-size: clamp(17px, 1.5vw, 21px); }
.wk-facts { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: 40px; flex-wrap: wrap; }
.wk-facts b { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.wk-facts i { font-style: normal; color: var(--red); }
.wk-facts span { font-size: 14px; color: var(--cement); font-weight: 500; }

.wk-ribbon { position: absolute; top: 90px; left: -10%; right: -10%; z-index: 0; transform: rotate(-6deg); opacity: .55;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); pointer-events: none; }
.wk-ribbon__track { display: flex; gap: 14px; width: max-content; animation: ribbon 90s linear infinite; }
.wk-ribbon__item { width: 150px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; flex: none; filter: grayscale(.6) brightness(.6); }
.wk-ribbon__item.is-wide { width: 300px; aspect-ratio: auto; height: calc(150px * 16 / 9); }
.wk-ribbon__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* sticky filter / view bar */
.wk-bar { position: sticky; top: 56px; z-index: 20; padding: 12px var(--gutter); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.wk-bar.is-stuck { background: rgba(0,0,0,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-color: var(--line); }
.wk-bar__inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wk-filters { margin: 0; padding: 0; max-width: none; flex: 1 1 400px; }
.filter sup { font-size: 10px; font-weight: 700; margin-left: 4px; opacity: .6; vertical-align: super; }
.wk-bar__right { display: flex; align-items: center; gap: 10px; }
#wkShuffle svg { width: 15px; height: 15px; }
#wkShuffle.is-rolling svg { animation: roll .7s var(--ease-out); }
@keyframes roll { to { transform: rotate(720deg); } }

/* index view */
.wk-index { position: relative; z-index: 2; max-width: var(--max); margin: 24px auto 0; padding: 0 var(--gutter); border-top: 1px solid var(--line); }
.wk-index.is-shown .row { animation: rowIn .7s var(--ease-out) both; animation-delay: calc(var(--d) * 30ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
.row { position: relative; display: grid; grid-template-columns: 56px 1fr auto 140px; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity .35s, color .35s; }
.row[hidden] { display: none; }
.row.is-entering { opacity: 0; transform: translateY(20px); }
.row__n { font-size: 13px; font-weight: 600; color: var(--cement); font-variant-numeric: tabular-nums; }
.row__thumb { display: none; }
.row__brand { font-size: clamp(30px, 4.6vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; transition: transform .6s var(--ease-out), letter-spacing .6s var(--ease-out); }
.row__label { font-size: 15px; color: var(--cement-light); text-align: right; }
.row__cat { font-size: 13px; font-weight: 600; color: var(--cement); text-align: right; }
.row.is-hover .row__brand { transform: translateX(18px); letter-spacing: -0.035em; }
.row.is-hover .row__n { color: var(--red); }
.row.is-pick .row__brand { color: var(--red); }
body.is-staging .row:not(.is-hover) { opacity: .22; }
body.is-staging .row.is-hover { border-color: rgba(255,255,255,.4); }

/* full-screen stage behind the index */
.wk-stage { position: fixed; inset: 0; z-index: 0; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); background: #000; }
.wk-stage img, .wk-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.8)); }
body.is-staging .wk-stage { opacity: 1; }
.wk-stage.is-swap img, .wk-stage.is-swap video { animation: stageIn .7s var(--ease-out); }
@keyframes stageIn { from { transform: scale(1.08); filter: blur(14px); } }

/* grid view (masonry) */
.wk-grid { position: relative; z-index: 2; max-width: var(--max); margin: 24px auto 0; padding: 0 var(--gutter); columns: 4 240px; column-gap: 16px; }
.wk-card { break-inside: avoid; margin-bottom: 16px; width: 100%; transition: transform .5s var(--ease-out), opacity .5s, filter .5s; transform-style: preserve-3d; }
.wk-card.is-wide { aspect-ratio: 16 / 10; }
.wk-card[hidden] { display: none; }
.wk-card.is-entering { opacity: 0; filter: blur(10px); transform: translateY(24px) scale(.97); }
.wk-grid.is-shown .wk-card { animation: rowIn .8s var(--ease-out) both; animation-delay: calc(var(--d) * 35ms); }
.wk-empty { text-align: center; color: var(--cement); padding: 60px 0; }

.wk-cta { position: relative; z-index: 2; text-align: center; padding: clamp(120px, 14vw, 200px) var(--gutter); }
.wk-cta h2 { font-size: clamp(40px, 6vw, 92px); font-weight: 800; letter-spacing: -0.05em; }
.wk-cta__btns { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
body[data-page="work"] .footer { position: relative; z-index: 2; }

@media (max-width: 760px) {
  .row { grid-template-columns: 64px 1fr; gap: 4px 14px; padding: 12px 0; }
  .row__n { display: none; }
  .row__thumb { display: block; grid-row: span 2; width: 64px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row__brand { font-size: 26px; align-self: end; }
  .row__label { text-align: left; font-size: 13px; align-self: start; }
  .row__cat { display: none; }
  .wk-grid { columns: 2; column-gap: 10px; }
  .wk-card { margin-bottom: 10px; }
  .wk-bar__right { width: 100%; justify-content: space-between; }
  .wk-ribbon__item { width: 110px; }
  .wk-ribbon__item.is-wide { width: 220px; height: calc(110px * 16 / 9); }
}

/* =================== BUILD YOUR PLAN =================== */
.pl-hero { max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) 56px; }
.pl-title { font-size: clamp(48px, 8vw, 128px); font-weight: 800; letter-spacing: -0.055em; line-height: .95; }
.pl-sub { margin-top: 24px; max-width: 600px; color: var(--cement-light); font-size: clamp(17px, 1.5vw, 21px); }
.pl-body { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(100px, 12vw, 160px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pl-block { padding: 30px 0; border-top: 1px solid var(--line); }
.pl-h { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.pl-h span { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 13px; }
.pl-items { display: grid; gap: 8px; }
.pl-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid transparent; transition: border-color .3s, background .3s; }
.pl-item.is-active { border-color: rgba(193,18,31,.5); background: linear-gradient(120deg, rgba(193,18,31,.10), var(--surface) 60%); }
.pl-item__txt b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.pl-item__txt span { font-size: 13px; color: var(--cement); }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper__btn { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: background .2s, transform .15s; user-select: none; touch-action: manipulation; }
.stepper__btn:hover { background: #2c2c2e; }
.stepper__btn:active { transform: scale(.9); background: var(--red); }
.stepper__btn svg { width: 12px; height: 12px; }
.stepper__val { min-width: 34px; text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper__val.is-bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); color: var(--red); } }
.pl-hint { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #f3b44c; }
.pl-hint .link-arrow { font-size: 14px; font-weight: 700; }
.pl-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-toggle { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 8px; text-align: left; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid transparent; transition: all .25s var(--ease-out); }
.pl-toggle:hover { transform: translateY(-2px); }
.pl-toggle[aria-pressed="true"] { border-color: rgba(193,18,31,.6); background: linear-gradient(140deg, rgba(193,18,31,.14), var(--surface) 70%); }
.pl-toggle__check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: all .2s; }
.pl-toggle__check svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: all .25s var(--ease-out); }
.pl-toggle[aria-pressed="true"] .pl-toggle__check { background: var(--red); border-color: var(--red); }
.pl-toggle[aria-pressed="true"] .pl-toggle__check svg { opacity: 1; transform: none; }
.pl-toggle__txt b { display: block; font-size: 15px; font-weight: 700; }
.pl-toggle__txt span { font-size: 12.5px; color: var(--cement); }
.pl-toggle__price { grid-column: 2; font-size: 13px; font-weight: 700; color: var(--cement-light); }

/* summary */
.pl-summary { position: sticky; top: 80px; display: grid; gap: 18px; padding: 24px; border-radius: 28px; background: linear-gradient(165deg, #1b1b1d, #0d0d0d); border: 1px solid var(--line); }
.pl-profile { background: #000; border-radius: 20px; padding: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.pl-profile__head { display: flex; align-items: center; gap: 16px; }
.pl-profile__avatar { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #000;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--red); }
.pl-profile__avatar svg { width: 40px; height: 15px; color: #fff; }
.pl-profile__stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.pl-profile__stats b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-profile__stats span { font-size: 11px; color: var(--cement); }
.pl-stories { display: flex; gap: 8px; margin: 14px 0; min-height: 0; }
.pl-stories span { width: 38px; height: 38px; border-radius: 50%; background: #222 center / cover; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #c13584; animation: tileIn .5s var(--ease-out) both; }
.pl-stories .is-more { display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); box-shadow: none; }
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 10px; overflow: hidden; }
.pl-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); animation: tileIn .5s var(--ease-out) both; }
.pl-tile.is-kept { animation: none; }
@keyframes tileIn { from { opacity: 0; transform: scale(.6); filter: blur(6px); } }
.pl-tile img { width: 100%; height: 100%; object-fit: cover; }
.pl-tile--photos img { filter: saturate(1.1); }
.pl-tile__icon { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.pl-tile__icon svg { width: 9px; height: 11px; }
.pl-tile em { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; font-style: normal; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.6); }
.pl-tile--film { box-shadow: inset 0 0 0 2px #c9a96e; }
.pl-tile--film em { color: #c9a96e; }
.pl-tile--graphic { display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 40% 22%), hsl(calc(var(--h) + 60) 50% 12%)); }
.pl-tile--graphic b { font-size: 14px; font-weight: 800; letter-spacing: .05em; color: rgba(255,255,255,.8); }
.pl-tile--more { display: grid; place-items: center; font-size: 18px; font-weight: 800; background: var(--surface-2); }
.pl-grid__empty { padding: 30px 10px; text-align: center; color: var(--cement); font-size: 14px; }
.pl-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; max-height: 220px; overflow-y: auto; }
.pl-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--cement-light); animation: fadeUp .4s var(--ease-out) both; }
.pl-lines li b { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-lines .is-empty { color: var(--cement); }
.pl-total { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.pl-total > span { font-size: 14px; color: var(--cement); }
.pl-total p { text-align: right; }
.pl-total b { display: block; font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.pl-total small { font-size: 13px; color: var(--cement); }
.pl-deal { padding: 12px 14px; border-radius: 14px; background: rgba(46,160,90,.12); border: 1px solid rgba(46,160,90,.35); font-size: 13.5px; color: #bfe8cc; }
.pl-deal b { color: #fff; }
.pl-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-fine { font-size: 12px; color: var(--cement); }

@media (max-width: 960px) {
  .pl-body { grid-template-columns: minmax(0, 1fr); }
  .pl-summary { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .pl-toggles { grid-template-columns: 1fr; }
  .pl-item { padding: 14px; }
  .stepper__btn { width: 34px; height: 34px; }
}
