/* Custom Furniture — /custom-furniture/. Page-specific blocks; shared primitives (bands, sketch cards,
   tables, FAQ, stagger/reveal) come from quality-control.css, which is enqueued as a dependency. Prefix: .sf-cf- */

/* Hero additions: fit strip + freshness line */
.sf-cf-answer { margin: 0 0 22px; max-width: 62ch; padding: 18px 20px; border-left: 3px solid #c8102e; border-radius: 0 12px 12px 0; background: #fff; color: #1f2328; font-size: 16px; line-height: 1.6; box-shadow: 0 18px 40px -34px rgba(31,35,40,.5); }
.sf-cf-answer strong { color: #c8102e; }
.sf-qc-hero__inner > .sf-cf-fit, .sf-qc-hero__inner > .sf-cf-updated { grid-column: 1 / -1; }
.sf-cf-fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.sf-cf-fit li { display: grid; grid-template-columns: 84px 1fr; grid-template-rows: auto auto auto; gap: 2px 14px; align-items: center; padding: 14px 16px 12px; border: 1.5px dashed #d5cec5; border-radius: 14px; background: #fffdf9; transition: transform .2s ease, border-color .2s ease; }
.sf-cf-fit li:hover { transform: translateY(-3px) rotate(-.4deg); border-color: #c8102e; }
.sf-cf-fit li svg { grid-row: 1 / span 3; width: 84px; height: 84px; }
.sf-cf-fit b { color: #c8102e; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sf-cf-fit__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: #5f6368; font-size: 11.5px; line-height: 1.2; }
.sf-cf-fit__stats em { font: 800 26px/1 "Plus Jakarta Sans", sans-serif; font-style: normal; letter-spacing: -.03em; color: #1f2328; margin-right: -6px; }
.sf-cf-fit__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sf-cf-fit__chips i { padding: 3px 7px; border-radius: 4px; background: #fff; border: 1px solid #e6e2dc; color: #1f2328; font-size: 11.5px; font-style: normal; font-weight: 700; }
.sf-cf-fit small { color: #858a90; font-size: 11.5px; line-height: 1.3; }
.sf-cf-updated { margin: 0; color: #858a90; font-size: 12px; }
.sf-cf-updated time { color: #5f6368; font-weight: 700; }
.sf-cf-hero-note { position: absolute; left: 16px; top: 16px; max-width: 250px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.96); color: #1f2328; box-shadow: 0 12px 30px -18px rgba(31,35,40,.5); font-size: 12.5px; line-height: 1.45; }
.sf-cf-hero-note b { display: block; color: #c8102e; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; }

/* Jobs to be done */
.sf-cf-jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sf-cf-jobs .sf-qc-sketch__art { height: 110px; }
.sf-cf-jobs .sf-qc-sketch__art svg { height: 110px; }
.sf-cf-jobs em.sf-cf-quote { display: block; margin-bottom: 10px; color: #c8102e; font: 700 italic 15px/1.35 "Plus Jakarta Sans", sans-serif; }
.sf-cf-jobs dl { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed #d9d2c9; display: grid; gap: 6px; }
.sf-cf-jobs dt { color: #858a90; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sf-cf-jobs dd { margin: 0 0 4px; color: #3d4247; font-size: 13.5px; line-height: 1.5; }
.sf-cf-jobs a.sf-cf-more { display: inline-block; margin-top: 8px; color: #b80e2b; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.sf-cf-jobs a.sf-cf-more:hover { text-decoration: underline; }

/* Build log: alternating photo + notes */
.sf-cf-log { display: grid; gap: 28px; margin-top: 12px; }
.sf-cf-log__row { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 3.5vw, 56px); align-items: center; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid #e9e4dd; }
.sf-cf-log__row:nth-child(even) .sf-cf-log__media { order: 2; }
.sf-cf-log__media { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #eee; aspect-ratio: 4 / 3; }
.sf-cf-log__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.sf-cf-log__row:hover .sf-cf-log__media img { transform: scale(1.03); }
.sf-cf-log__media--tall { aspect-ratio: 4 / 3; }
.sf-cf-log__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; aspect-ratio: auto; background: transparent; overflow: visible; }
.sf-cf-log__media--pair figure { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #eee; }
.sf-cf-log__media--pair img { position: absolute; inset: 0; }
.sf-cf-pin { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.96); color: #1f2328; font-size: 12px; font-weight: 700; box-shadow: 0 10px 24px -14px rgba(31,35,40,.6); white-space: nowrap; }
.sf-cf-pin::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #c8102e; box-shadow: 0 0 0 4px rgba(200,16,46,.2); }
.sf-cf-log__num { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #c8102e; font: 800 12px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.sf-cf-log__num i { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px dashed #c8102e; font-style: normal; font-size: 13px; }
.sf-cf-log h3 { margin: 0 0 10px; font: 800 clamp(22px, 2.2vw, 28px)/1.15 "Plus Jakarta Sans", sans-serif; letter-spacing: -.025em; }
.sf-cf-log p { margin: 0 0 14px; color: #3d4247; font-size: 15px; line-height: 1.6; }
.sf-cf-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.sf-cf-facts li { padding: 6px 10px; border-radius: 6px; background: #f7f5f2; border: 1px solid #ebe8e4; color: #1f2328; font-size: 12.5px; font-weight: 700; }
.sf-cf-facts li b { color: #c8102e; font-weight: 800; }
.sf-cf-evidence { display: flex; gap: 8px; padding-top: 12px; border-top: 1px dashed #e0dbd3; color: #5f6368; font-size: 13px; line-height: 1.5; }
.sf-cf-evidence::before { content: "📷"; flex: 0 0 auto; }

/* Approval flow */
.sf-cf-approve { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sf-cf-approve article { position: relative; padding: 24px 22px 22px; border-radius: 16px; background: #fff; border: 1px solid #e4e4e4; }
.sf-cf-approve article::after { content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); color: #c8102e; font-size: 22px; font-weight: 800; }
.sf-cf-approve article:last-child::after { display: none; }
.sf-cf-approve svg { width: 100%; height: 110px; margin-bottom: 12px; }
.sf-cf-approve em { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: 999px; background: #fbe9ec; color: #c8102e; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sf-cf-approve b { display: block; margin-bottom: 6px; font: 800 18px/1.2 "Plus Jakarta Sans", sans-serif; }
.sf-cf-approve p { margin: 0; color: #3d4247; font-size: 14px; line-height: 1.55; }
.sf-cf-approve small { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e0dbd3; color: #858a90; font-size: 12.5px; }

/* Milestone timeline */
.sf-cf-timeline { position: relative; margin: 0; padding: 0 0 0 0; list-style: none; display: grid; gap: 10px; }
.sf-cf-timeline li { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 20px; align-items: start; padding: 16px 20px; border-radius: 12px; background: #fff; border: 1px solid #e9e4dd; }
.sf-cf-timeline li > b { display: flex; flex-direction: column; gap: 4px; }
.sf-cf-timeline li > b span { font: 800 16px/1.15 "Plus Jakarta Sans", sans-serif; letter-spacing: -.01em; }
.sf-cf-timeline li > b small { color: #c8102e; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sf-cf-timeline dt { color: #858a90; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; }
.sf-cf-timeline dd { margin: 0; color: #3d4247; font-size: 13.5px; line-height: 1.5; }
.sf-cf-timeline dl { margin: 0; }
.sf-cf-timeline dd.sf-cf-receive::before { content: "📷 "; }


/* Milestone timeline v2: central line that fills on scroll, big sketch nodes, alternating cards */
.sf-cf-tl { position: relative; margin-top: 8px; }
.sf-cf-tl__line { position: absolute; left: 50%; top: 40px; bottom: 40px; width: 2px; margin-left: -1px; background: #e0dbd3; border-radius: 2px; }
.sf-cf-tl__line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg, #c8102e, #ff6b81); transition: height 3.2s cubic-bezier(.4,0,.2,1); }
.sf-qc-js .sf-cf-tl__line i { height: 0; }
.sf-cf-tl.is-in .sf-cf-tl__line i { height: 100%; }
.sf-cf-tl ol { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.sf-cf-tl li { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; gap: 0 18px; }
.sf-qc-js .sf-cf-tl li { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--i) * 260ms + 150ms); }
.sf-cf-tl.is-in li { opacity: 1; transform: none; }
.sf-cf-tl__node { grid-column: 2; position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fffdf9; border: 1.5px dashed #cfc8bf; box-shadow: 0 0 0 10px #fbf8f3; transition: transform .25s ease, border-color .25s ease; }
.sf-cf-tl li:hover .sf-cf-tl__node { transform: rotate(-4deg) scale(1.04); border-color: #c8102e; }
.sf-cf-tl__node svg { width: 96px; height: 96px; }
.sf-cf-tl__node b { position: absolute; right: -2px; top: 4px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #c8102e; color: #fff; font: 800 12px/1 "Plus Jakarta Sans", sans-serif; }
.sf-cf-tl__card { position: relative; padding: 20px 22px 18px; border-radius: 14px; background: #fff; border: 1px solid #e9e4dd; box-shadow: 0 20px 40px -36px rgba(31,35,40,.5); }
.sf-cf-tl li:nth-child(odd) .sf-cf-tl__card { grid-column: 1; grid-row: 1; text-align: right; }
.sf-cf-tl li:nth-child(even) .sf-cf-tl__card { grid-column: 3; grid-row: 1; }
.sf-cf-tl li:nth-child(odd) .sf-cf-tl__node { grid-row: 1; }
.sf-cf-tl__card::before { content: ""; position: absolute; top: 50%; width: 18px; height: 2px; background: #c8102e; }
.sf-cf-tl li:nth-child(odd) .sf-cf-tl__card::before { right: -18px; }
.sf-cf-tl li:nth-child(even) .sf-cf-tl__card::before { left: -18px; }
.sf-cf-tl__card small { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; background: #fbe9ec; color: #c8102e; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sf-cf-tl__card h3 { margin: 0 0 8px; font: 800 20px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }
.sf-cf-tl__card p { margin: 0; color: #3d4247; font-size: 14px; line-height: 1.5; }
.sf-cf-tl__card p span { display: block; color: #858a90; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.sf-cf-tl__card p + p { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e0dbd3; }
.sf-cf-tl__get { color: #1f2328 !important; font-weight: 600; }
.sf-cf-tl li:nth-child(odd) .sf-cf-tl__get::before, .sf-cf-tl li:nth-child(even) .sf-cf-tl__get::after { content: " 📷"; }
@media (max-width: 900px) {
  .sf-cf-tl__line { left: 44px; top: 30px; bottom: 30px; }
  .sf-cf-tl li { grid-template-columns: 88px 1fr; gap: 0 14px; }
  .sf-cf-tl__node, .sf-cf-tl li:nth-child(odd) .sf-cf-tl__node { grid-column: 1; width: 88px; height: 88px; box-shadow: 0 0 0 8px #fbf8f3; }
  .sf-cf-tl__node svg { width: 60px; height: 60px; }
  .sf-cf-tl__node b { width: 26px; height: 26px; font-size: 10px; right: -4px; top: 0; }
  .sf-cf-tl li:nth-child(odd) .sf-cf-tl__card, .sf-cf-tl li:nth-child(even) .sf-cf-tl__card { grid-column: 2; text-align: left; }
  .sf-cf-tl li:nth-child(odd) .sf-cf-tl__card::before, .sf-cf-tl li:nth-child(even) .sf-cf-tl__card::before { left: -14px; right: auto; width: 14px; }
  .sf-cf-tl li:nth-child(odd) .sf-cf-tl__get::before { content: none; }
  .sf-cf-tl li:nth-child(odd) .sf-cf-tl__get::after { content: " 📷"; }
}
@media (prefers-reduced-motion: reduce) { .sf-cf-tl li { opacity: 1 !important; transform: none !important; } .sf-cf-tl__line i { height: 100% !important; transition: none; } }

/* Categories + recent work */
.sf-cf-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sf-cf-cats a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #eee; text-decoration: none; color: #fff; }
.sf-cf-cats img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.sf-cf-cats a:hover img { transform: scale(1.05); }
.sf-cf-cats div { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 18px 18px; background: linear-gradient(180deg, rgba(31,35,40,0), rgba(31,35,40,.88)); }
.sf-cf-cats b { display: block; font: 800 18px/1.2 "Plus Jakarta Sans", sans-serif; }
.sf-cf-cats span { display: block; margin-top: 4px; color: #d5d9dd; font-size: 13px; line-height: 1.45; }
.sf-cf-cats em { display: inline-block; margin-top: 8px; color: #ff9aa9; font-size: 12.5px; font-style: normal; font-weight: 800; }
.sf-cf-recent { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sf-cf-recent figure { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #eee; }
.sf-cf-recent img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.sf-cf-recent figure:hover img { transform: scale(1.05); }
.sf-cf-recent figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(180deg, rgba(31,35,40,0), rgba(31,35,40,.85)); color: #fff; }
.sf-cf-recent figcaption b { display: block; font: 800 13.5px/1.2 "Plus Jakarta Sans", sans-serif; }
.sf-cf-recent figcaption span { display: block; margin-top: 2px; color: #d5d9dd; font-size: 11.5px; }

/* Case + CTA */
.sf-cf-case { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.sf-cf-case figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #2b2f34; }
.sf-cf-case img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-cf-case__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin: 22px 0 0; padding: 0; list-style: none; justify-content: start; }
.sf-cf-case__facts b { display: block; font: 800 30px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.03em; color: #fff; }
.sf-cf-case__facts span { display: block; margin-top: 5px; color: #b3b9bf; font-size: 12.5px; }
.sf-cf-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sf-cf-limits article { padding: 22px 24px; border-radius: 14px; background: #fff; border: 1px solid #e9e4dd; }
.sf-cf-limits article.is-no { border-top: 4px solid #858a90; }
.sf-cf-limits article.is-yes { border-top: 4px solid #1e7b3c; }
.sf-cf-limits b { display: block; margin-bottom: 10px; font: 800 17px/1.2 "Plus Jakarta Sans", sans-serif; }
.sf-cf-limits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sf-cf-limits li { position: relative; padding-left: 22px; color: #3d4247; font-size: 14px; line-height: 1.5; }
.sf-cf-limits .is-yes li::before { content: "✓"; position: absolute; left: 0; color: #1e7b3c; font-weight: 800; }
.sf-cf-limits .is-no li::before { content: "–"; position: absolute; left: 0; color: #858a90; font-weight: 800; }

@media (max-width: 1100px) {
  .sf-cf-jobs, .sf-cf-cats { grid-template-columns: 1fr 1fr; }
  .sf-cf-recent { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-cf-approve article::after { display: none; }
}
@media (max-width: 900px) {
  .sf-cf-log__row, .sf-cf-case, .sf-cf-limits { grid-template-columns: 1fr; }
  .sf-cf-log__row:nth-child(even) .sf-cf-log__media { order: 0; }
  .sf-cf-log__row { padding: 16px; }
  .sf-cf-approve { grid-template-columns: 1fr; }
  .sf-cf-timeline li { grid-template-columns: 1fr; gap: 10px; }
  .sf-cf-fit { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sf-cf-jobs, .sf-cf-cats { grid-template-columns: 1fr; }
  .sf-cf-recent { grid-template-columns: 1fr 1fr; }
  .sf-cf-pin { font-size: 11px; }
  .sf-cf-case__facts { gap: 16px; }
  .sf-cf-case__facts b { font-size: 24px; }
}
