/* V4: align the data panel and keep its border attached to the card. */
.dashboard-motion-v3 .dashboard-grid {
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
}
.dashboard-motion-v3 .dashboard-grid > * { min-width: 0; }
.dashboard-motion-v3 .dashboard-window {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(143,196,219,.74);
  background: linear-gradient(145deg,#FFFFFF,#F2FAFD);
  background-clip: padding-box;
  box-shadow: 0 0 0 1px rgba(255,255,255,.62),0 22px 60px rgba(24,79,110,.12),0 0 28px rgba(112,202,235,.12);
}
/* The original decorative outline was offset 30px / -23px outside the panel. */
.dashboard-motion-v3 .dashboard-window::before { content: none; }
.dashboard-motion-v3 .plot { width: 100%; max-width: 100%; }
.dashboard-motion-v3 .plot svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 10 / 3;
}

/* V4: three values stay visible; only the emphasis travels between them. */
.employer-main-title em {
  position: relative;
  isolation: isolate;
  text-shadow: 0 0 14px rgba(255,255,255,.86),0 0 36px rgba(77,192,242,.62);
}
.employer-main-title em::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 12% -12%;
  border-radius: 50%;
  background: radial-gradient(ellipse,rgba(212,248,255,.72),rgba(88,178,220,.12) 58%,transparent 75%);
  filter: blur(13px);
  pointer-events: none;
}
.employer-values .value-point,
.employer-values .value-point.visible {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none !important;
  transition: background-color .55s ease,border-color .55s ease,box-shadow .55s ease;
  background: rgba(238,250,255,.66);
  border-color: rgba(244,252,255,.85);
}
.employer-values .value-point .num {
  transition: color .55s ease,background-color .55s ease,box-shadow .55s ease;
}
.employer-values[data-value-phase="1"] .value-point:nth-child(1),
.employer-values[data-value-phase="2"] .value-point:nth-child(2),
.employer-values[data-value-phase="3"] .value-point:nth-child(3),
.employer-values[data-value-phase="all"] .value-point {
  background-color: rgba(248,254,255,.98);
  border-color: #EDFCFF;
  box-shadow: 0 0 0 1px rgba(225,251,255,.72),0 0 27px rgba(111,222,255,.72),0 15px 36px rgba(22,71,104,.12);
}
.employer-values[data-value-phase="1"] .value-point:nth-child(1) .num,
.employer-values[data-value-phase="2"] .value-point:nth-child(2) .num,
.employer-values[data-value-phase="3"] .value-point:nth-child(3) .num,
.employer-values[data-value-phase="all"] .value-point .num {
  color: #FFFFFF;
  background-color: #257FA8;
  box-shadow: 0 0 18px rgba(81,185,226,.54);
}
@media(max-width:820px) {
  .dashboard-motion-v3 .dashboard-grid { grid-template-columns: minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
  .employer-values .value-point,
  .employer-values .value-point .num { transition: none; }
}

/* V4 content, real portfolio assets, and consultation form. */
.pain-heading { text-align:center; max-width:900px; margin:0 auto 34px; }
.pain-heading h2 { font-size:clamp(33px,4.3vw,57px); line-height:1.3; margin-bottom:0; }
.pain-guide { margin-bottom:28px; }
.belief-copy h2 .highlight { white-space:nowrap; }
.work-section .work-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; }
.work-section .work-card,.work-section .work-card:last-child { display:flex; flex-direction:column; min-height:0; grid-column:auto; }
.work-section .work-meta { padding:27px 24px; gap:18px; justify-content:flex-start; }
.work-section .work-meta .type { font-size:12px; }
.work-section .work-meta strong { display:block; font-size:23px; margin-top:9px; }
.work-section .work-meta p { font-size:16px; line-height:1.8; flex:1; }
.work-watch { display:inline-flex; width:fit-content; align-items:center; gap:9px; padding:10px 0 2px; border-bottom:1px solid rgba(159,220,245,.5); color:#CBEFFF; font-size:14px; font-weight:700; }
.work-watch:hover { color:#fff; border-color:#fff; }
.reel-embed { position:relative; background:linear-gradient(145deg,#376E88,#132F45); min-width:0; overflow:hidden; }
.reel-embed .instagram-media { width:100% !important; max-width:100% !important; min-width:0 !important; margin:0 !important; box-shadow:none !important; border:0 !important; border-radius:0 !important; }
.reel-embed blockquote { aspect-ratio:9 / 14; display:grid; place-items:center; }
.reel-fallback { padding:28px; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:25px; color:#E4F6FD; background:radial-gradient(ellipse at 30% 20%,rgba(132,221,255,.15),transparent 65%); }
.reel-fallback svg { width:60px; height:60px; opacity:.9; }
.reel-fallback strong { font-size:29px; line-height:1.4; }
.reel-fallback span { font-size:14px; padding:12px 18px; border:1px solid rgba(191,235,254,.55); border-radius:999px; }
.reel-embed iframe { display:block !important; width:100% !important; min-width:0 !important; max-width:100% !important; border:0; }
.about-section .about-grid { grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:clamp(34px,4.3vw,64px); }
.about-section .about-portrait { height:auto; aspect-ratio:4 / 5; background:#A1A3B2; border:1px solid rgba(56,107,133,.18); box-shadow:0 24px 60px rgba(22,63,89,.12); }
.about-section .about-portrait::before { content:none; }
.about-portrait img { display:block; width:100%; height:100%; object-fit:cover; }
.about-section .about-copy { min-width:0; }
.about-section .about-copy .about-title { font-size:clamp(28px,3.9vw,54px); line-height:1.4; }
.about-title-line,.diagnosis-title-line { display:block; white-space:nowrap; }
.about-section .about-copy .about-role { font-size:18px; color:#19344A; font-weight:800; }
.about-section .about-copy p { font-size:16px; }
.social-proof { background:linear-gradient(180deg,#F2F9FC,#E1F0F6 65%,#DCEFF7); }
.social-proof .section-head { margin-bottom:44px; }
.partner-heading { margin-bottom:24px; display:flex; gap:18px; align-items:baseline; justify-content:space-between; flex-wrap:wrap; }
.partner-heading h3 { margin:0; font-size:26px; }
.partner-heading p { font-size:15px; margin:0; color:#58798C; }
.partner-logos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.partner-logo { min-width:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:17px; padding:27px; border:1px solid rgba(158,202,223,.5); border-radius:24px; background:rgba(255,255,255,.68); box-shadow:0 12px 36px rgba(18,67,96,.04); }
.partner-logo-view { position:relative; width:190px; height:150px; max-width:100%; overflow:hidden; }
.partner-logo-view img { position:absolute; max-width:none; }
.partner-logo-view.rivana img { height:260px; width:260px; left:calc(50% - 130px); top:-62px; }
.partner-logo-view.vivi img { width:340px; height:auto; left:calc(50% - 170px); top:-100px; }
.partner-logo strong { font-size:16px; font-weight:650; color:#385B72; }
.industry-list { list-style:none; margin:28px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.industry-list li { font-size:14px; color:#345D74; padding:9px 13px; border:1px solid #BEDAE7; border-radius:999px; background:rgba(249,253,255,.65); }
.feedback-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:76px 0 27px; flex-wrap:wrap; }
.feedback-heading h3 { margin:0; font-size:29px; }
.feedback-heading p { margin:0; font-size:14px; color:#58798C; }
.feedback-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:start; }
.feedback-column { display:grid; gap:20px; min-width:0; }
.feedback-card { min-width:0; margin:0; padding:24px 19px 19px; border-radius:22px; background:rgba(255,255,255,.8); border:1px solid rgba(155,201,222,.6); box-shadow:0 14px 35px rgba(22,66,91,.055); }
.feedback-card h4 { font-size:20px; color:#19344A; margin:0 0 18px; line-height:1.5; }
.feedback-card h4::before { content:'“'; color:#58B2DC; font:40px/.5 Georgia,serif; display:inline-block; margin-right:9px; vertical-align:-9px; }
.feedback-images { display:grid; gap:13px; }
.feedback-image-link { display:block; border-radius:10px; overflow:hidden; background:#EAF4F9; transition:box-shadow .25s,transform .25s; }
.feedback-image-link:hover { transform:translateY(-2px); box-shadow:0 0 0 2px #78BFDE,0 8px 25px rgba(36,114,153,.13); }
.feedback-image-link img { display:block; width:100%; height:auto; }
.feedback-card figcaption { margin-top:15px; font-size:13px; line-height:1.8; color:#668195; }
.feedback-dialog { padding:24px; border:1px solid rgba(162,222,248,.5); border-radius:24px; max-width:min(1000px,calc(100vw - 28px)); width:fit-content; max-height:90vh; max-height:90dvh; background:#102C40; color:#E9F7FF; box-shadow:0 30px 120px rgba(0,0,0,.45); }
.feedback-dialog::backdrop { background:rgba(6,25,39,.78); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.feedback-dialog:not([open]) { display:none; }
.feedback-dialog .dialog-top { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:19px; }
.feedback-dialog h3 { margin:0; font-size:20px; }
.feedback-dialog .dialog-close { width:44px; height:44px; flex-shrink:0; background:rgba(218,242,255,.1); border:1px solid rgba(164,213,237,.4); border-radius:50%; color:#F1F9FF; font-size:29px; }
.feedback-dialog img { display:block; width:auto; max-width:100%; max-height:64vh; max-height:64dvh; object-fit:contain; margin:auto; border-radius:9px; }
.feedback-dialog p { font-size:14px; line-height:1.7; color:#BDDAE9; margin:18px 0 0; max-width:780px; }
.diagnosis-title { font-size:clamp(30px,3.8vw,52px); line-height:1.35; }
.diagnosis-wrap > * { min-width:0; }
.diagnosis-section .diagnosis-copy .lead { max-width:480px; }
.quiz-contact h3 { margin-bottom:8px; }
.quiz-contact-note { font-size:14px; color:#6B8698; line-height:1.7; margin-bottom:22px; }
.contact-fields { display:grid; gap:19px; }
.contact-field { display:grid; gap:8px; min-width:0; }
.contact-field label { font-size:15px; font-weight:750; color:#244C63; }
.contact-field label span { font-weight:400; font-size:13px; color:#7390A2; margin-left:7px; }
.contact-field input,.contact-field textarea { width:100%; max-width:100%; border:1px solid #B8D3E1; border-radius:12px; padding:13px 14px; font-size:16px; line-height:1.7; color:#19344A; background:#F6FBFE; transition:border .2s,box-shadow .2s; }
.contact-field textarea { min-height:92px; resize:vertical; }
.contact-field input::placeholder,.contact-field textarea::placeholder { color:#7A94A4; font-size:14px; }
.contact-field input:focus,.contact-field textarea:focus { outline:2px solid #58B2DC; outline-offset:2px; background:#fff; }
.quiz-contact .quiz-foot { margin-top:25px; flex-wrap:wrap; }
.quiz-contact .quiz-foot .button { flex:1; }
.result-block:not([hidden]) { display:block; }
.result-summary { white-space:pre-wrap; overflow-wrap:anywhere; max-height:440px; overflow-y:auto; font-size:14px; line-height:1.9; }
.quiz-actions .button { font-size:14px; }
.quiz-result-meta { margin-top:15px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.quiz-text-button { border:0; border-bottom:1px solid #A7CADC; background:none; padding:9px 0; color:#416E86; font-size:14px; }
.quiz-note { font-size:13px; }
@media(max-width:1000px) {
  .work-section .work-grid { grid-template-columns:1fr; max-width:600px; margin:auto; gap:30px; }
  .reel-embed blockquote { aspect-ratio:4 / 3; }
  .feedback-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .feedback-column:last-child { grid-column:1 / -1; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:820px) {
  .about-section .about-grid { grid-template-columns:minmax(0,1fr); }
  .about-section .about-portrait { max-width:480px; width:100%; margin:auto; }
  .about-section .about-copy .about-title { font-size:clamp(27px,4.6vw,42px); }
}
@media(max-width:560px) {
  .pain-heading { margin-bottom:26px; }
  .pain-heading h2 { font-size:clamp(28px,8.3vw,39px); }
  .work-section .work-meta { padding:25px 21px; }
  .work-section h2 { font-size:clamp(28px,8.2vw,40px); }
  .reel-embed blockquote { aspect-ratio:9 / 12; }
  .about-section .about-copy .about-title { font-size:clamp(22px,7.1vw,38px); }
  .partner-logos { gap:12px; }
  .partner-logo { padding:18px 8px; gap:12px; border-radius:18px; }
  .partner-logo-view { width:130px; height:115px; }
  .partner-logo-view.rivana img { width:210px; height:210px; left:calc(50% - 105px); top:-51px; }
  .partner-logo-view.vivi img { width:240px; left:calc(50% - 120px); top:-68px; }
  .partner-logo strong { font-size:12px; }
  .partner-heading h3 { font-size:23px; }
  .industry-list { gap:8px; }
  .industry-list li { font-size:13px; padding:8px 10px; }
  .feedback-grid,.feedback-column:last-child { display:grid; grid-template-columns:1fr; }
  .feedback-column:last-child { grid-column:auto; }
  .feedback-heading { margin-top:56px; }
  .feedback-card { padding:22px 17px 17px; }
  .feedback-dialog { padding:16px; border-radius:18px; }
  .feedback-dialog img { max-height:58dvh; }
  .diagnosis-title { font-size:clamp(28px,8.3vw,40px); }
  .diagnosis-box { padding:23px 18px; }
  .quiz-contact .quiz-foot { gap:15px; }
  .quiz-contact .quiz-foot .button { width:100%; flex:auto; }
}
@media(prefers-reduced-motion:reduce) {
  .feedback-image-link { transition:none; }
  .work-card:hover,.feedback-image-link:hover { transform:none; }
}
