/* 3D glass-card services carousel (ported from care-operation.co.uk /services/, 9 Nov 2026) */
.cf-sec { position: relative; isolation: isolate; overflow-x: clip; color: var(--ink); background: var(--paper2); }
.cf-room { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--paper2); }
.cf-room::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(255,255,255,0.18), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--paper2) 90%, transparent) 0%, color-mix(in srgb, var(--paper2) 55%, transparent) 38%, color-mix(in srgb, var(--paper2) 50%, transparent) 62%, color-mix(in srgb, var(--paper2) 92%, transparent) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
.cf-amb { position: absolute; inset: -6%; background: center / cover no-repeat; filter: blur(22px) saturate(1.15); opacity: 0; transform: scale(1.06); transition: opacity 1100ms cubic-bezier(.22,1,.36,1), transform 7s cubic-bezier(.22,1,.36,1); }
.cf-amb.is-on { opacity: 1; transform: scale(1.02); }
.cf { --cw: min(300px, 78vw); position: relative; }
.cf-track { list-style: none; margin: 0 calc(clamp(16px, 3vw, 32px) * -1); padding: 8px clamp(16px, 3vw, 32px) 28px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(16px, 3vw, 32px); scrollbar-width: thin; }
.cf-card { flex: 0 0 var(--cw); height: calc(var(--cw) * 1.38); scroll-snap-align: start; }
.cf .cf-card > .cf-card__a { position: relative; display: block; width: 100%; box-sizing: border-box; height: 100%; overflow: hidden; border-radius: 30px; color: #fff; text-decoration: none; background: var(--night); box-shadow: 0 50px 90px -40px rgba(0,0,0,0.9), 0 18px 40px -24px rgba(0,0,0,0.7); -webkit-tap-highlight-color: transparent; }
/* the glass edge: a thin bright rim, a frosted inner frame and a soft highlight across the top corner */
.cf-card__a::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; border: 1px solid rgba(255,255,255,0.42);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.07), inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -18px 40px -30px rgba(255,255,255,0.25);
  background: linear-gradient(125deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 22%, transparent 40%); }
.cf-card .pic { position: absolute; inset: 0 -9%; margin: 0; transform: translate3d(calc(var(--d, 0) * -6%), 0, 0); }
.cf-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.cf-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, color-mix(in srgb, var(--night) 94%, transparent) 0%, color-mix(in srgb, var(--night) 62%, transparent) 34%, color-mix(in srgb, var(--night) 8%, transparent) 62%, transparent 75%); }
.cf-shade::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: calc(var(--a, 0) * 0.32); }
.cf-pill { position: absolute; z-index: 3; top: 18px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 14px; border-radius: 999px; white-space: nowrap;
  font-size: .875rem; font-weight: 650; color: #fff; background: color-mix(in srgb, var(--night) 38%, transparent); border: 1px solid rgba(255,255,255,0.38); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); transition: background .2s, color .2s; }
.cf-pill .ico { width: 16px; height: 16px; }
.cf-mini { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 4px; }
.cf-mini b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.cf-mini small { font-size: .875rem; color: rgba(255,255,255,0.72); }
.cf-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: block; padding: 26px 26px 24px; }
.cf-body::before { content: ""; position: absolute; inset: -30px 0 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--night) 60%, transparent), color-mix(in srgb, var(--night) 15%, transparent));
  -webkit-mask-image: linear-gradient(0deg, #000 72%, transparent); mask-image: linear-gradient(0deg, #000 72%, transparent); }
.cf-body__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.cf-tag .ico { width: 15px; height: 15px; }
.cf-num { font-size: .875rem; font-weight: 600; color: rgba(255,255,255,0.75); font-variant-numeric: tabular-nums; }
.cf-title { display: block; margin: 10px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.1vw + 1.2rem, 2.3rem); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.cf-line { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.98rem; line-height: 1.5; color: rgba(255,255,255,0.86); }
.cf-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .875rem; font-weight: 750; color: var(--amber); }
.cf-more .ico { width: 16px; height: 16px; transition: transform .2s cubic-bezier(.22,1,.36,1); }
.cf-card__a:hover .cf-more .ico { transform: translateX(4px); }
.cf-card__a:focus-visible { outline: 3px solid var(--royal); outline-offset: 5px; }
/* scroll list (no JS / reduced motion): full text on every card */
.cf:not(.is-cf) .cf-mini, .cf:not(.is-cf) .cf-ctrl, .cf:not(.is-cf) .cf-jumps, .cf:not(.is-cf) .cf-hint { margin: 16px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.cf:not(.is-cf) .cf-title { font-size: 1.6rem; }

/* coverflow */
.cf.is-cf { --cw: min(410px, max(290px, 30vw), calc((100svh - 230px) / 1.4)); }
.cf.is-cf .cf-track { position: relative; display: block; height: calc(var(--cw) * 1.4); margin: 28px 0 0; padding: 0; overflow: visible; perspective: 1700px; perspective-origin: 50% 42%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.cf.is-cf .cf-track.is-drag { cursor: grabbing; }
.cf.is-cf .cf-track::after { content: ""; position: absolute; left: 50%; bottom: -46px; width: min(70%, 640px); height: 70px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--night) 35%, transparent), transparent 70%); filter: blur(6px); pointer-events: none; }
.cf.is-cf .cf-card { position: absolute; top: 0; left: 50%; width: var(--cw); height: 100%; margin-left: calc(var(--cw) / -2); will-change: transform, opacity; backface-visibility: hidden;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms cubic-bezier(.22,1,.36,1); }
.cf.is-cf:not(.is-ready) .cf-card, .cf.is-cf:not(.is-ready) .cf-card .pic, .cf.is-cf .cf-track.is-drag .cf-card, .cf.is-cf .cf-track.is-drag .cf-card .pic { transition: none; }
.cf.is-cf .cf-card .pic { transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.cf.is-cf .cf-card__a { height: 100%; -webkit-user-drag: none; }
.cf.is-cf .cf-card img { -webkit-user-drag: none; pointer-events: none; }
.cf.is-cf .cf-body, .cf.is-cf .cf-pill { opacity: 0; transition: opacity 350ms cubic-bezier(.22,1,.36,1); }
.cf.is-cf .cf-mini { opacity: 1; transition: opacity 450ms cubic-bezier(.22,1,.36,1) 150ms; }
.cf.is-cf .cf-card.is-active .cf-body, .cf.is-cf .cf-card.is-active .cf-pill { opacity: 1; transition-delay: 120ms; }
.cf.is-cf .cf-card.is-active .cf-mini { opacity: 0; transition-delay: 0ms; }
.cf.is-cf .cf-card.is-active .cf-card__a:hover .cf-pill { background: #fff; color: var(--night); }
.cf.is-cf .cf-card:not(.is-active) .cf-card__a { box-shadow: 0 40px 70px -40px rgba(0,0,0,0.85); }
.cf.is-cf .cf-card:not(.is-active) .cf-card__a::after { border-color: rgba(255,255,255,0.3); box-shadow: inset 0 0 0 7px rgba(255,255,255,0.1), inset 0 1px 1px rgba(255,255,255,0.45); background: linear-gradient(125deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.1)); }
/* controls */
.cf-ctrl { display: flex; justify-content: center; margin-top: 48px; }
.cf-jump:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.cf-meter { width: min(260px, 38vw); }
.cf-count { margin: 0 0 8px; text-align: center; font-size: .875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cf-count b { color: var(--ink); font-weight: 800; }
.cf-prog { position: relative; display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--night) 15%, transparent); }
.cf-prog i { position: absolute; inset: 0; border-radius: inherit; background: var(--amber); transform-origin: left; transform: scaleX(0.06); transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.cf-jumps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cf-jump { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 650; color: var(--ink); background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.85); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--night) 50%, transparent), inset 0 1px 0 rgba(255,255,255,0.9); transition: background .2s, color .2s, border-color .2s; }
.cf-jump .ico { width: 16px; height: 16px; color: var(--royal); }
.cf-jump small { font-size: .78rem; opacity: 0.65; }
.cf-jump:hover { background: rgba(255,255,255,0.85); }
.cf-jump.is-on { background: var(--amber); border-color: var(--amber); color: var(--night); }
.cf-jump.is-on .ico { color: var(--night); }
.cf-hint { margin: 16px 0 0; text-align: center; font-size: .78rem; color: var(--muted); opacity: 0.8; }
@media (max-width: 40rem) {
  .cf.is-cf { --cw: min(76vw, calc((100svh - 200px) / 1.4)); }
  .cf.is-cf .cf-track { height: calc(var(--cw) * 1.38); perspective: 1100px; }
  .cf-body { padding: 20px 20px 18px; }
  .cf-title { font-size: 1.55rem; }
  .cf-line { font-size: 0.92rem; }
  .cf-mini { left: 16px; right: 16px; bottom: 16px; } .cf-mini b { font-size: 1.15rem; }
  .cf-pill { top: 14px; padding: 7px 14px 7px 11px; font-size: .78rem; }
  .cf-ctrl { margin-top: 36px; }
  .cf-meter { width: min(240px, 60vw); }
  .cf-jump { padding: 7px 11px; font-size: .78rem; }
}
/* motion: photo drift on the front card and a staggered text reveal each time a card comes forward */
@media (prefers-reduced-motion: no-preference) {
  .cf.is-cf.is-ready .cf-card.is-active .pic img { animation: cf-kb 16s ease-in-out infinite alternate; }
  .cf.is-cf.is-ready .cf-card.is-active .cf-tag, .cf.is-cf.is-ready .cf-card.is-active .cf-num, .cf.is-cf.is-ready .cf-card.is-active .cf-title,
  .cf.is-cf.is-ready .cf-card.is-active .cf-line, .cf.is-cf.is-ready .cf-card.is-active .cf-more { animation: cf-up 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .cf.is-cf.is-ready .cf-card.is-active .cf-tag { animation-delay: 160ms; } .cf.is-cf.is-ready .cf-card.is-active .cf-num { animation-delay: 220ms; }
  .cf.is-cf.is-ready .cf-card.is-active .cf-title { animation-delay: 260ms; } .cf.is-cf.is-ready .cf-card.is-active .cf-line { animation-delay: 360ms; }
  .cf.is-cf.is-ready .cf-card.is-active .cf-more { animation-delay: 460ms; }
  .cf.is-cf.is-ready .cf-card.is-active .cf-pill { animation: cf-pill 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both 200ms; }
  @keyframes cf-kb { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
  @keyframes cf-up { from { opacity: 0; transform: translateY(18px); filter: blur(5px); } }
  @keyframes cf-pill { from { opacity: 0; transform: translate(-50%, -10px) scale(0.85); } to { transform: translate(-50%, 0); } }
}
@media print { .cf-ctrl, .cf-jumps, .cf-hint, .cf-room { display: none !important; } }
/* phone and tablet menu (owner, 9 Nov: the old sheet listed every link with a description and ran several screens long):
   Services / Designs / Company are tabs, one group shows at a time as a compact grid of names, so the sheet fits a screen. */
.dk__togt { display: none; }
@media (max-width: 64rem) {
  .dock.is-open .dock__nav { bottom: auto; max-height: calc(100dvh - 92px); gap: 16px; padding: 16px; }
  .dock__links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }