/* Essential flat palette: shared dark surfaces, violet identity, lime actions.
   Gradients are limited to the headline and the still, softened hero halo. */
.flat-palette{
  --brand-panel:#1c1722;
  --brand-section:var(--brand-panel);
  --brand-surface:var(--brand-panel);
  --brand-plum:var(--brand-surface);
  --brand-blue:var(--brand-violet);
  --brand-magenta:var(--brand-violet);
  --brand-apricot:var(--brand-violet);
  --brand-pink:var(--brand-violet);
  --pink:var(--brand-violet);
}
/* Two neutral levels: page / resting cards and alternate sections / panels / hover. */
.flat-palette .goals,
.flat-palette .reviews-spotlight,
.flat-palette .ml-draft-notice{background:var(--brand-section)}
.flat-palette .goal-transform:not(.goal-talk){background:var(--brand-ink)}
.flat-palette .goal-transform:not(.goal-talk):not(.is-open):hover{background:var(--brand-panel)}
.flat-palette .service-list>.service-row,
.flat-palette .journal-editorial .journal-feature,
.flat-palette .journal-editorial .journal-entry{background:var(--brand-panel)}
@media(max-width:760px){
  .flat-palette .header nav{background:var(--brand-section)}
}
/* The visible hairline aligns with the eyebrow; a still violet halo sits behind. */
.flat-palette .hero{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);column-gap:0;overflow:clip}
.flat-palette .hero-copy{grid-column:1;grid-row:1}
.flat-palette .portrait-scene{grid-column:2;grid-row:1 / span 2;min-height:640px}
.flat-palette .portrait-art{mask-image:none;-webkit-mask-image:none;clip-path:inset(0 -30% 0 -30%);overflow:visible}
.flat-palette .portrait-stage{inset:0;overflow:visible}
.flat-palette .hero-portrait{height:calc(117.65% + 110px);width:auto;bottom:-120px;left:42%;transform:translateX(-50%);object-fit:contain}
.flat-palette .portrait-orbit{width:108%;left:-12%;top:6%;background:radial-gradient(circle,var(--brand-raised) 0%,#362047d9 32%,#36204777 50%,#36204722 63%,#36204700 74%);border:0;pointer-events:none}
.flat-palette .portrait-orbit:after{display:none}
.flat-palette .portrait-signature{bottom:28px;right:16px;background:var(--brand-ink);padding:10px 12px}
.flat-palette .hero-bottom{grid-column:1;grid-row:2;align-self:end;flex-direction:column;align-items:flex-start;gap:8px;margin-right:36px;padding:22px 0 28px}
@media(max-width:1150px) and (min-width:761px){
  .flat-palette .portrait-scene{min-height:590px}
  .flat-palette .hero-portrait{height:calc(117.65% + 63px);bottom:-80px}
  .flat-palette .portrait-signature{right:0;bottom:25px}
  .flat-palette .hero-bottom{margin-right:24px}
}
@media(max-width:760px){
  .flat-palette .hero-copy{order:1}
  .flat-palette .hero-bottom{order:2;margin:0;padding:20px 0 0;border-top:0}
  .flat-palette .portrait-scene{order:3;min-height:0;height:450px;margin-top:6px}
  .flat-palette .hero-portrait{height:calc(100% + 115px);bottom:-70px;left:50%}
  .flat-palette .portrait-orbit{width:108%;left:-4%;top:8%}
  .flat-palette .portrait-kicker{top:0}
  .flat-palette .portrait-signature{right:0;bottom:20px}
}
@media(max-width:370px){.flat-palette .portrait-scene{height:390px}}

/* All three services have the same visual weight and colour treatment. */
.flat-palette .service-row>.service-copy{background:var(--brand-panel);color:var(--brand-text)}
.flat-palette .service-row .service-index,
.flat-palette .service-row .service-index span{color:var(--brand-violet)}
.flat-palette .service-row .service-body h3{color:var(--brand-text)}
.flat-palette .service-row .service-body p,
.flat-palette .service-row .tags span{color:var(--brand-muted)}
.flat-palette .service-row .tags span{border-color:var(--brand-frame)}
.flat-palette .service-row .service-link{background:var(--brand-lime);color:var(--brand-ink);padding:12px 16px;border-radius:4px}
.flat-palette .service-row .service-link svg{color:currentColor}
.flat-palette .service-row .service-link:is(:hover,:focus-visible){background:var(--brand-lime-hover);color:var(--brand-ink)}
.flat-palette .service-row .service-link:focus-visible{outline:3px solid var(--brand-violet);outline-offset:4px}
.flat-palette #ml-web-process .ml-mobile-block,
.flat-palette #ml-web-process .ml-stage:not([data-step='0']) .ml-modules i:first-child{background:var(--brand-violet)}
.flat-palette #ml-web-process .ml-swatches i:nth-child(1){background:var(--brand-ink)}
.flat-palette #ml-web-process .ml-swatches i:nth-child(2){background:var(--brand-deep)}
.flat-palette #ml-web-process .ml-swatches i:nth-child(3){background:var(--brand-lime)}
.flat-palette #ml-ads-paths .ml-campaign-feed-creative{background:var(--brand-violet)}

/* Mobile process controls: numbered steps and a 44px playback target on one row. */
@media(max-width:760px){
  .flat-palette :is(#ml-web-process,#ml-seo-journey,#ml-ads-paths){--scene-controls:62px}
  .flat-palette :is(#ml-web-process .ml-bottom,#ml-seo-journey .sj-controls,#ml-ads-paths .ml-campaign-controls){display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-content:start;align-items:center;padding-top:14px}
  .flat-palette :is(#ml-web-process .ml-steps,#ml-seo-journey .sj-steps,#ml-ads-paths .ml-campaign-steps){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;min-width:0}
  .flat-palette #ml-web-process .ml-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .flat-palette :is(#ml-web-process .ml-step,#ml-seo-journey .sj-step,#ml-ads-paths .ml-campaign-step){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:3px 1px;min-width:0;min-height:44px;font-size:12px;line-height:1.25;white-space:nowrap}
  .flat-palette :is(#ml-web-process .ml-step,#ml-seo-journey .sj-step,#ml-ads-paths .ml-campaign-step)>span{display:block;font-size:11px;line-height:1.25;font-variant-numeric:tabular-nums;color:var(--brand-violet)}
  .flat-palette :is(#ml-web-process .ml-play,#ml-seo-journey .sj-play,#ml-ads-paths .ml-campaign-play){width:44px;height:44px;min-height:44px;padding:0;justify-content:center;justify-self:end}
  .flat-palette :is(#ml-web-process .ml-play,#ml-seo-journey .sj-play,#ml-ads-paths .ml-campaign-play)>span{display:none}
  .flat-palette :is(#ml-web-process .ml-play,#ml-seo-journey .sj-play,#ml-ads-paths .ml-campaign-play)>svg{width:16px;height:16px}
  .flat-palette :is(#ml-web-process .ml-bottom,#ml-seo-journey .sj-controls,#ml-ads-paths .ml-campaign-controls):has(>button[hidden]){grid-template-columns:minmax(0,1fr)}
}

.flat-palette .goal-transform:not(.goal-talk).is-open{background:var(--brand-raised)}
.flat-palette .goal-transform.goal-talk{background:var(--brand-deep)}
.flat-palette .goal-transform.goal-talk:is(:hover,.is-open){background:var(--brand-raised)}

/* A shared violet accent in each section heading, without changing the copy. */
.flat-palette h2 .section-accent{color:var(--brand-violet)}
.flat-palette .reviews-intro{background:var(--brand-panel)}

.flat-palette .ai-section{background:var(--brand-section)}
.flat-palette .ai-cases article.lab-card{background:var(--brand-panel)}
.flat-palette .lab-icon{background:var(--brand-ink);color:var(--brand-violet);border-color:var(--brand-outline)}
.flat-palette .lab-icon .lab-icon-fill{fill:var(--brand-violet);fill-opacity:.22}
.flat-palette .lab-icon .lab-icon-detail{stroke:var(--brand-violet)}
.flat-palette .lab-card-action{background:transparent;color:var(--brand-violet)}
.flat-palette .lab-card-action:is(:hover,:focus-visible){background:transparent;color:var(--brand-lime);text-decoration:none}

/* Contact composition follows Marco's screenshot, with a shared title accent. */
.flat-palette .contact-section.contact-compose{background:var(--brand-raised);color:var(--brand-text);border-bottom:0}
.flat-palette .contact-compose .contact-copy h2>span{color:var(--brand-violet)}
.flat-palette .contact-compose .contact-copy>.eyebrow,
.flat-palette .contact-compose .contact-copy>.contact-intro,
.flat-palette .contact-call>span{color:var(--brand-text)}
.flat-palette .contact-promise{background:var(--brand-raised);border-color:var(--brand-outline)}
.flat-palette .contact-promise-icon{background:var(--brand-panel);color:var(--brand-violet)}
.flat-palette .contact-form-panel{background:var(--brand-panel);border-color:var(--brand-outline);box-shadow:none}
.flat-palette .contact-field input,.flat-palette .contact-field textarea{background:var(--brand-panel)}
.flat-palette .contact-call a{background:var(--brand-ink);color:var(--brand-lime);padding:12px 16px;border-radius:4px}
.flat-palette .contact-call a:is(:hover,:focus-visible){background:var(--brand-plum);color:var(--brand-lime-hover)}
.flat-palette .contact-copy a:focus-visible{outline-color:var(--brand-lime)}
