/* Depth sections (core/depth.js): loaded by site-runtime.js right after a look renders, never on the first-paint path
   (every depth section sits below the hero, and below-the-fold sections use content-visibility: auto). */
/* =====================================================================
   DEPTH SECTIONS (core/depth.js, design pass 2): trust strip, about, service area, FAQ, gallery. Shared structure here;
   every look restyles them in styles/<look>.css (`.cxd` rules), so the same facts read as part of each look.
   Motion: the shared [data-r] reveals (opacity/transform only); the FAQ chevron turns with transform only.
   ===================================================================== */
.cxd { position: relative; padding: clamp(48px, 7vw, 104px) var(--gut, clamp(16px, 4vw, 64px)); }
.cxd-in { max-width: var(--cxd-max, none); margin: 0 auto; }
.cxd-lede { margin: 0 0 16px; font-size: var(--cx-t-lg); line-height: 1.5; text-wrap: pretty; }
.cxd p { text-wrap: pretty; }
.cxd-about__copy p:not(.cxd-lede) { margin: 0; opacity: .88; max-width: 60ch; }
.cxd-about__grid { display: grid; gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 3vw, 44px); align-items: start; }
@media (min-width: 900px) { .cxd-about__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .cxd-about.has-photo .cxd-about__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, .8fr); } }
.cxd-facts { margin: 0; }
.cxd-facts > div { display: grid; grid-template-columns: minmax(6.5em, 34%) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 16%, transparent)); }
.cxd-facts > div:last-child { border-bottom: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 16%, transparent)); }
.cxd-facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .76; padding-top: 3px; }
.cxd-facts dd { margin: 0; overflow-wrap: anywhere; }
.cxd-facts a { text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cxd-about__fig, .cxd-gal__f { position: relative; margin: 0; overflow: hidden; border-radius: var(--cxd-r, 0); background: color-mix(in srgb, currentColor 8%, transparent); }
.cxd-about__fig { aspect-ratio: 4 / 5; }
.cxd-about__fig img, .cxd-gal__f img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .cxd-about__fig { aspect-ratio: 16 / 10; } }
.cxd-illus { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; font: 500 11px/1 system-ui, sans-serif; letter-spacing: .02em; color: #fff; background: rgba(0, 0, 0, .55); }
.cxd-credit { display: block; padding: 8px 0 0; font-size: 12px; }

.cxd-trust { padding-block: clamp(22px, 3vw, 40px); }
.cxd-trust__list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--cxd-max, none); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
@media (min-width: 900px) { .cxd-trust__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; } }
.cxd-trust__list li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cxd-trust__list b { display: block; font-weight: 700; line-height: 1.2; }
.cxd-trust__list small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; opacity: .84; overflow-wrap: anywhere; }
.cxd-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--cxd-ic-r, 50%); background: color-mix(in srgb, currentColor 9%, transparent); }
.cxd-ic svg { width: 22px; height: 22px; }

.cxd-area__grid { display: grid; gap: clamp(24px, 4vw, 64px); margin-top: clamp(24px, 3vw, 44px); align-items: center; }
@media (min-width: 900px) { .cxd-area__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.cxd-area__art { max-width: min(360px, 60vw); width: 100%; margin: 0 auto; }
.cxd .cxd-rings { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1; overflow: visible; }
.cxd-ring { fill: none; stroke: currentColor; stroke-opacity: .22; stroke-width: 1; }
.cxd-ring--o { stroke-dasharray: 3 6; }
.cxd-dot { fill: var(--a-fill, var(--a, currentColor)); }
.cxd-hub { fill: var(--a-fill, var(--a, currentColor)); stroke: currentColor; stroke-opacity: .2; stroke-width: 8; paint-order: stroke; }
.cxd-hub__t { fill: currentColor; font: 600 13px/1 system-ui, sans-serif; letter-spacing: .02em; }
.cxd-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cxd-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--cxd-chip-r, 999px); border: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 22%, transparent)); font-size: 14px; line-height: 1.2; }
.cxd-chips li.is-home { background: var(--a-fill, var(--a)); color: var(--a-ink, #111); border-color: transparent; font-weight: 700; }
.cxd-chips svg { width: 15px; height: 15px; }
.cxd-chips a { text-decoration: underline; text-underline-offset: 3px; }
.cxd-note { margin: 0; font-size: 14px; opacity: .88; }
.cxd-note a { font-weight: 700; white-space: nowrap; }

.cxd-faq__list { max-width: 900px; margin-top: clamp(20px, 3vw, 40px); }
.cxd-q { border-top: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 18%, transparent)); }
.cxd-q:last-child { border-bottom: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 18%, transparent)); }
.cxd-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; min-height: 44px; cursor: pointer; list-style: none; font-size: var(--cx-t-lg); font-weight: 600; line-height: 1.3; }
.cxd-q summary::-webkit-details-marker { display: none; }
.cxd-q summary i { position: relative; flex: none; width: 18px; height: 18px; transition: transform var(--cx-d2) var(--cx-ease-out); }
.cxd-q summary i::before, .cxd-q summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; }
.cxd-q summary i::after { transform: rotate(90deg); transition: transform var(--cx-d2) var(--cx-ease-out); }
.cxd-q[open] summary i { transform: rotate(180deg); }
.cxd-q[open] summary i::after { transform: rotate(0deg); }
.cxd-q summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cxd-a p { margin: 0 0 22px; max-width: 70ch; opacity: .9; line-height: 1.6; }
.cxd-a a { font-weight: 600; }

.cxd-gal { display: grid; gap: clamp(8px, 1.4vw, 18px); margin-top: clamp(24px, 3vw, 44px); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 34vw, 220px); }
.cxd-gal__f--0 { grid-column: span 2; }
@media (max-width: 899px) { .cxd-gal--6 .cxd-gal__f--5 { display: none; } }
@media (min-width: 900px) { .cxd-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 18vw, 280px); } .cxd-gal__f--0 { grid-row: span 2; } .cxd-gal--3 { grid-template-columns: 2fr 1fr; } .cxd-gal--3 .cxd-gal__f--0 { grid-column: auto; } }
.cxd-gal__note { margin-top: 12px; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .cxd-q summary i, .cxd-q summary i::after { transition: none; } }


/* design fix 5: text links inside depth copy take the surrounding text colour (underlined), never the raw brand accent, so
   they hold 4.5:1 on every look and every business colour */
.cxd .cxd-a a, .cxd .cxd-note a, .cxd .cxd-lede a, .cxd .cxd-facts a, .cxd a[href^="tel:"]:not([class]) { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Cake makers (core/depth.js flavours + ordering, owner decision 26 Oct 2026). Look-neutral structure; each look's own
   tokens (currentColor, --a / --a-fill / --a-ink, --cxd-r, --cxd-line) carry its character. */
.cxd-flav { list-style: none; margin: clamp(20px, 3vw, 36px) 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .cxd-flav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.cxd-flav li { display: flex; align-items: baseline; gap: 12px; min-height: 64px; padding: 18px 18px; border-radius: var(--cxd-r, 14px); border: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 18%, transparent)); background: color-mix(in srgb, var(--a-fill, var(--a, currentColor)) 7%, transparent); }
.cxd-flav__n { flex: none; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; opacity: .6; }
.cxd-flav b { font-size: var(--cx-t-lg, 1.125rem); font-weight: 600; line-height: 1.25; }
@media (max-width: 759px) { .cxd-flav li { padding: 14px; gap: 10px; min-height: 56px; } .cxd-flav b { font-size: 16px; } }
.cxd-ord { display: grid; gap: clamp(20px, 3.5vw, 48px); margin-top: clamp(20px, 3vw, 40px); }
@media (min-width: 900px) { .cxd-ord { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.cxd-ord__h { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.cxd-ord__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cxd-ord__steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 0; border-top: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 16%, transparent)); }
.cxd-ord__steps li:last-child { border-bottom: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 16%, transparent)); }
.cxd-ord__steps b { grid-column: 2; font-weight: 600; line-height: 1.3; }
.cxd-ord__steps li > span:last-child { grid-column: 2; font-size: 15px; opacity: .84; line-height: 1.45; }
.cxd-ord__i { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-fill, var(--a-fill, var(--a, currentColor))); color: var(--accent-ink, #fff); font-weight: 700; }
.cxd-ord__side { display: grid; gap: 12px; }
.cxd-ord__card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--cxd-r, 14px); border: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 18%, transparent)); }
.cxd-ord__k { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.cxd-ord__b { margin: 4px 0 0; font-size: 15px; line-height: 1.45; opacity: .9; }
.cxd-ord__go { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.cxd-ord__cta, .cxd-social { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--cxd-btn-r, 999px); font-weight: 700; text-decoration: none; }
.cxd-ord__cta { background: var(--accent-fill, var(--a-fill, var(--a, currentColor))); color: var(--accent-ink, #fff); font-weight: 600; }
.cxd-social { border: 1px solid var(--cxd-line, color-mix(in srgb, currentColor 30%, transparent)); color: inherit; }
.cxd-social svg { width: 20px; height: 20px; }
.cxd .cxd-ord__cta, .cxd .cxd-social { text-decoration: none; }
/* Beats the looks' `.<look> a { color: inherit }` so the order button keeps its contrast-guarded ink (4.5:1). */
.cxd .cxd-ord__cta { color: var(--accent-ink, #fff); }
/* Owner photos on cake sites are usually tall: keep the subject (the cake) in frame. */
[data-cx-pack="cakes"] img[src*="/media/"], [data-cx-pack="cakes"] img[src*="r2"] { object-position: 50% 40%; }

/* Full photo gallery (core/depth.js fullGallery): every job photo, directly under the hero. 2 columns on phones, 3 then 4 wider;
   images lazy-load and keep their aspect box so nothing shifts. */
.cxd-galgrid { display: grid; gap: clamp(8px, 1.4vw, 18px); margin-top: clamp(24px, 3vw, 44px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cxd-galgrid__f { margin: 0; position: relative; overflow: hidden; border-radius: var(--cxd-r, 0); }
.cxd-galgrid__f img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: color-mix(in srgb, currentColor 8%, transparent); }
.cxd-galgrid__f figcaption { margin: 0; padding: 8px 2px 0; font-size: 12.5px; line-height: 1.35; opacity: .75; text-wrap: balance; }
@media (min-width: 700px) { .cxd-galgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cxd-galgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Recent work lightbox (core/lightbox.js). Dark scrim, centred photo, caption bar, 44px controls. */
.cxd-galgrid__b { display: block; cursor: zoom-in; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cxd-galgrid__b:focus-visible { outline: 3px solid var(--a-fill, #F6AC29); outline-offset: -3px; }
.cxd-galgrid__b img { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .cxd-galgrid__b:hover img { transform: scale(1.035); } }
.cxd-lb { position: fixed; inset: 0; z-index: 2147483300; display: flex; flex-direction: column; background: rgba(8, 8, 10, .97); color: #fff; font: 500 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.cxd-lb__stage { flex: 1 1 auto; display: grid; place-items: center; min-height: 0; padding: 56px clamp(8px, 7vw, 120px) 8px; }
.cxd-lb__img { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px -20px #000; user-select: none; -webkit-user-drag: none; }
.cxd-lb__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: 1100px; width: 100%; margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px) max(18px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.cxd-lb__cap { flex: 1; margin: 0; font-size: 15px; text-wrap: balance; }
.cxd-lb__count { flex: none; font-variant-numeric: tabular-nums; opacity: .7; }
.cxd-lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff33; border-radius: 50%; background: rgba(20, 20, 24, .7); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cxd-lb__btn:hover { background: rgba(255, 255, 255, .18); }
.cxd-lb__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cxd-lb__btn[hidden] { display: none; }
.cxd-lb__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.cxd-lb__prev, .cxd-lb__next { top: calc(50% - 24px - 30px); }
.cxd-lb__prev { left: max(8px, env(safe-area-inset-left)); }
.cxd-lb__next { right: max(8px, env(safe-area-inset-right)); }
@media (max-width: 700px) { .cxd-lb__stage { padding-inline: 4px; } .cxd-lb__prev, .cxd-lb__next { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); width: 44px; height: 44px; } .cxd-lb__prev { left: auto; right: 68px; } .cxd-lb__next { right: 12px; } .cxd-lb__bar { padding-right: 130px; } }
@media (prefers-reduced-motion: no-preference) {
  .cxd-lb { animation: cxd-lb-in .22s ease-out; }
  .cxd-lb__img { animation: cxd-lb-img .28s ease-out; }
  @keyframes cxd-lb-in { from { opacity: 0; } }
  @keyframes cxd-lb-img { from { opacity: .0; transform: scale(.985); } }
}
@media (prefers-reduced-motion: reduce) { .cxd-lb, .cxd-lb *, .cxd-galgrid__b img { animation: none !important; transition: none !important; } }
/* Moved from site.css (mobile LCP budget): the quote form sits far below the fold, so its upload styles load after paint. */
/* Quote form uploads (core/quote-upload.js): one field inside the existing form; a drop zone, the chosen files, one error line. */
.cx-upload { display: grid; gap: 8px; }
.cx-upload__label { font-size: 13px; font-weight: 600; }
.cx-upload__drop { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 14px; min-height: 76px; border-radius: 10px; border: 1.5px dashed color-mix(in srgb, currentColor 32%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); font-size: 14px; }
.cx-upload__drop.is-over, .cx-upload__drop:focus-within { border-color: currentColor; background: color-mix(in srgb, currentColor 9%, transparent); }
.cx-upload__drop small { font-size: 12.5px; opacity: .72; }
.cx-form .cx-upload__input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; border: 0; }
.cx-upload__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cx-upload__list:empty { display: none; }
.cx-upload__list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 14px; }
.cx-upload__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-upload__size { opacity: .7; font-size: 12.5px; white-space: nowrap; }
.cx-upload__rm { min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cx-upload__err { margin: 0; font-size: 13px; font-weight: 600; display: none; }
.cx-upload__err.is-on { display: block; }
