/* Scrollcraft refinement of the approved site. Layout and brand remain the baseline. */
:root {
  --sc-canvas: #fcfeff;
  --sc-surface: #fff;
  --sc-ink: #182b37;
  --sc-ink-soft: #566977;
  --sc-accent: #007e88;
  --sc-accent-ink: #fff;
  --sc-font-display: Manrope, sans-serif;
  --sc-font-text: 'DM Sans', sans-serif;
  --polish-ease: cubic-bezier(.23, 1, .32, 1);
  --polish-raised: 0 12px 25px -14px #175b6d50, inset 0 1px 0 #fff;
  accent-color: #007e88;
  caret-color: #007e88;
}
html { text-rendering: optimizeLegibility; }
::selection { background: #c4f7d5; color: #183e36; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
/* Keep the approved entrance timing, accent movement and hover interactions. */
.reveal:focus-within { opacity: 1 !important; transform: none !important; }

/* Independent technical planes, with the original connected map as the subject. */
.hero-visual.campaign-board { perspective: 1100px; box-shadow: 0 20px 40px -24px #145e6c40, inset 0 1px 0 #fff; }
.campaign-board::before {
  content: '';
  position: absolute;
  inset: -36px;
  background-image: linear-gradient(#007e880c 1px, transparent 1px), linear-gradient(90deg, #007e880c 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(140deg, #000, #0005 70%, transparent);
  transform: translate3d(var(--ground-x, 0px), var(--ground-y, 0px), 0) rotate(-6deg);
  pointer-events: none;
}
.campaign-board .campaign-heading { transform: translate3d(0, var(--heading-y, 0px), 0); }
.campaign-board .journey-map {
  transform: translate3d(var(--map-x, 0px), var(--map-y, 0px), 0) rotateX(var(--map-rx, 0deg)) rotateY(var(--map-ry, 0deg));
  transition: transform .6s ease;
}
.journey-map .node { filter: drop-shadow(0 6px 5px #1e687d12); }
.journey-map .hub { stroke-width: 2; filter: drop-shadow(0 9px 8px #1e687d24); }
.journey-map .hub-halo { fill: #ffffff60; stroke: #53bc962e; stroke-width: 1; }
.journey-map .connection { stroke: #6db3c3; stroke-width: 1.6; }
.experience-motion .journey-map .signal { animation: signal-flow 8s linear infinite; animation-play-state: paused; stroke-dasharray: 5 9; }
.experience-motion .campaign-board.hero-in-view .journey-map .signal { animation-play-state: running; }
.campaign-board .journey-detail { box-shadow: var(--polish-raised); transform: translate3d(0, var(--detail-y, 0px), 0); border-top-color: #fff; }
.journey-controls button { transition: background 180ms, border-color 180ms, transform 160ms; }
.journey-controls button:active { transform: scale(.97); }
.journey-detail.route-arrival { animation: route-arrival 360ms var(--polish-ease); }
@keyframes route-arrival { from { opacity: .5; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }

/* Photography opens in its existing frame. The caption is always readable. */
.case-photo img { transform: translate3d(0, var(--photo-y, 0px), 0) scale(1.06); transition: transform 1s cubic-bezier(.2,.7,.3,1); }
.result-card:hover .case-photo img { transform: translate3d(0, var(--photo-y, 0px), 0) scale(1.105); }
.sc-ready .case-photo[data-sc-in] { clip-path: inset(8% 0 8% 0 round 11px); transition: clip-path 900ms var(--polish-ease); }
.sc-ready .case-photo.sc-in { clip-path: inset(0 0 0 0 round 11px); }
.case-photo span { backdrop-filter: blur(8px); background: #fffffff2; border: 1px solid #fff; }
.result-card { box-shadow: 0 8px 25px -18px #135d6e30; }
.experience-motion .result-card.visible:hover { transform: translateY(-7px); box-shadow: 0 15px 35px #006d3d12; }
.huge, .revenue-summary strong { font-variant-numeric: tabular-nums; }
.revenue-explorer { box-shadow: 0 16px 35px -24px #145e6c40, inset 0 1px 0 #fff; }
.revenue-bar { transition: none; transform-origin: center bottom; }
.elevation-ready:not(.motion-paused) .revenue-explorer:not(.evidence-in) .revenue-bar { transform: scaleY(.72); opacity: .12; }
.elevation-ready .revenue-explorer.evidence-in .revenue-bar { transform: scaleY(1); opacity: 1; transition: transform 900ms var(--polish-ease), opacity 500ms; }
.revenue-explorer.evidence-in .snapshot-column:nth-child(3) .revenue-bar { transition-delay: 100ms; }
.revenue-explorer.evidence-in .forecast-column .revenue-bar { transition-delay: 200ms; }
.revenue-explorer:focus-within .revenue-bar { transform: none !important; opacity: 1 !important; }
.early-growth li { position: relative; }
.early-growth li::before { content: ''; position: absolute; left: -4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #007e88; box-shadow: 0 0 0 4px #e3f8ee; }

/* One small connection reinforces the service mix, without moving its labels. */
.funnel.service-path { isolation: isolate; }
.funnel.service-path::before { content: ''; position: absolute; left: 16%; right: 16%; top: 27px; height: 1px; background: #b7d9df; z-index: -1; }
.service-path .path-icon { box-shadow: inset 0 1px 0 #fff; }
.process-jump[aria-pressed=true] { box-shadow: 0 4px 9px -4px #00616e60; }
.process-jump:active { transform: scale(.96); }
.about-system .system-dot { transform: translate(var(--orbit-x, 0px), var(--orbit-y, 0px)); }
.about-system .system-ring:nth-of-type(2) { transform-origin: 200px 150px; transform: rotate(var(--orbit-turn, 0deg)); }
.about-system .system-core { filter: drop-shadow(0 7px 7px #145e6c12); }
.footer-message p::after { content: ''; display: block; width: 48px; height: 3px; background: var(--coral); margin: 18px auto 0; transform-origin: center; }
.sc-ready .footer-message:not(.sc-in) p::after { transform: scaleX(.2); opacity: .3; }
.sc-ready .footer-message.sc-in p::after { transform: scaleX(1); opacity: 1; transition: transform 650ms var(--polish-ease), opacity 450ms; }

/* An explicit hero choice becomes real context in the visitor's email draft. */
.brief-priority { position: relative; border-left: 3px solid #32ce6b; padding: 12px 85px 12px 14px; margin-top: 20px; background: #effbf4; }
.brief-priority[hidden] { display: none; }
.brief-priority > span { display: block; color: #3f7063; font-size: 10px; letter-spacing: .08em; font-weight: 600; }
.brief-priority strong { display: block; color: #205046; font-size: 15px; font-weight: 500; margin-top: 3px; }
.brief-priority button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; border-bottom: 1px solid #52796e; padding: 8px 0; color: #3b6b5f; font-size: 11px; background: none; max-width: 65px; }
.motion-control { border: 0; border-bottom: 1px solid #9cbdc6; padding: 8px 0; color: #416878; background: none; font-size: 12px; min-height: 44px; }
.motion-control[hidden] { display: none; }
.motion-control:disabled { border-bottom-style: dotted; cursor: default; }
.button:active, .quick-contact a:active { transform: translateY(1px) scale(.98); }

/* No effect is needed to understand or operate the site. */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.motion-paused .reveal, .motion-paused .hero-line, .motion-paused .hero-copy > *, .motion-paused .hero-visual { opacity: 1 !important; transform: none !important; }
.motion-paused .campaign-board::before, .motion-paused .campaign-heading, .motion-paused .journey-map, .motion-paused .journey-detail, .motion-paused .system-dot, .motion-paused .system-ring, .motion-paused .case-photo img, .motion-paused .revenue-bar, .motion-paused .footer-message p::after { transform: none !important; opacity: 1 !important; }
.motion-paused .case-photo { clip-path: none !important; }
@media(max-width:700px) {
  .campaign-board .journey-map { transform: translate3d(0, var(--map-y, 0px), 0); }
  .funnel.service-path::before { top: 19px; }
  .brief-priority { padding-right: 82px; }
}
@media(prefers-reduced-motion:reduce) {
  .campaign-board::before, .campaign-board .campaign-heading, .campaign-board .journey-map, .campaign-board .journey-detail, .about-system .system-dot, .about-system .system-ring, .case-photo img, .revenue-bar, .footer-message p::after { transform: none !important; opacity: 1 !important; }
  .sc-ready .case-photo { clip-path: none; }
}
