.unico_page #grund-logo-switch {
  --grund-forest:#283a32;
  --grund-chalk:#f4f0e7;
  --grund-logo-inset:35px;
  padding-inline:var(--grund-logo-inset);
  background:var(--grund-chalk);
  color:var(--grund-forest);
}
.unico_page #grund-logo-switch[data-logo-mode=dark] {
  background:var(--grund-forest);
  color:#fff;
}
#grund-logo-switch .case_logo_controls { bottom:var(--grund-logo-inset); }
.grund-logo-cycle {
  position:relative;
  container-type:inline-size;
  display:grid;
  place-items:center;
  width:100%;
  min-height:clamp(145px,24vw,320px);
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.grund-logo-cycle:focus-visible { outline:1px solid currentColor; outline-offset:8px; }
.grund-logo-layout {
  --grund-mark-height:min(56px,5.9cqw);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:calc(var(--grund-mark-height) * .345);
  pointer-events:none;
}
.grund-logo-cycle:is([data-layout=horizontal],[data-layout=split]) .grund-logo-layout {
  flex-direction:row;
  align-items:center;
}
.grund-logo-cycle[data-layout=split] .grund-logo-layout { width:100%; justify-content:space-between; }
.grund-logo-mark {
  display:block;
  flex:none;
  height:var(--grund-mark-height);
  background:currentColor;
  mask:var(--grund-mark) center / contain no-repeat;
}
.grund-logo-name {
  --grund-mark:url('cases/grund-psykologi/grund-logo.svg');
  aspect-ratio:311.812 / 48.790;
}
.grund-logo-descriptor {
  --grund-mark:url('cases/grund-psykologi/psykologi-logo-01.svg');
  aspect-ratio:466.478 / 48.790;
}

.grund-case-lettering {
  --grund-edge-x:min(7%,72px);
  --grund-edge-y:min(15%,96px);
  grid-column:1 / -1;
  display:grid;
  place-items:center;
  min-height:clamp(260px,72svh,820px);
  overflow:clip;
  mask-image:linear-gradient(to right,transparent,#000 var(--grund-edge-x),#000 calc(100% - var(--grund-edge-x)),transparent),
    linear-gradient(to bottom,transparent,#000 var(--grund-edge-y),#000 calc(100% - var(--grund-edge-y)),transparent);
  mask-composite:intersect;
  color:var(--color-paper);
}
.grund-case-lettering svg {
  display:block;
  width:min(94%,1350px);
  height:auto;
  overflow:visible;
  fill:currentColor;
  user-select:none;
}
.grund-case-lettering path {
  stroke:currentColor;
  stroke-width:clamp(.6px,.24vw,1.83px);
  stroke-opacity:0;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
@media (hover:hover) and (pointer:fine) {
  .grund-case-lettering path {
    pointer-events:fill;
    transition:fill-opacity 1.8s ease-in-out 1s,stroke-opacity 1.8s ease-in-out 1s;
  }
  .grund-case-lettering path:hover {
    fill-opacity:0;
    stroke-opacity:1;
    transition-duration:.18s;
    transition-delay:0s;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .grund-case-lettering svg { touch-action:none; }
  .grund-case-lettering path { cursor:grab; }
  .grund-case-lettering svg.holding path { cursor:grabbing; }
}
@media (pointer:coarse) and (prefers-reduced-motion:no-preference) {
  .grund-case-lettering svg { pointer-events:none; }
  .grund-case-lettering path { pointer-events:visiblePainted; }
}

.grund-colours {
  --grund-swatch-motion:1.02s cubic-bezier(.28,.04,.24,1);
  grid-column:1 / -1;
  padding-block:clamp(44px,7vw,100px);
  color:var(--color-paper);
}
.grund-colours h2 { margin:0 0 clamp(26px,4vw,54px); text-align:center; }
.grund-colour-list {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(20px,2.4vw,36px);
  margin:0;
  padding:0;
  list-style:none;
  text-align:center;
}
.grund-colour-list h3 {
  margin:0 0 16px;
  font:500 14px/1.4 var(--font-body);
  letter-spacing:.09em;
  text-transform:uppercase;
}
.grund-swatch {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1;
  padding:0;
  border:0;
  overflow:hidden;
  border-radius:50%;
  background:var(--grund-swatch);
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.grund-swatch img { position:absolute; inset:0 0 auto; display:block; width:100%; height:50%; object-fit:cover; }
.grund-swatch::after {
  content:"";
  position:absolute;
  inset:0;
  background:var(--grund-swatch);
  transform:translateY(50%);
  transition:transform var(--grund-swatch-motion);
}
.grund-swatch[aria-pressed]::after {
  clip-path:polygon(0 0,12.5% 5.25%,25% 9%,37.5% 11.25%,50% 12%,62.5% 11.25%,75% 9%,87.5% 5.25%,100% 0,100% 100%,0 100%);
}
.grund-swatch[aria-pressed=true]::after {
  transform:translateY(-13%);
  clip-path:polygon(0 12%,12.5% 6.75%,25% 3%,37.5% .75%,50% 0,62.5% .75%,75% 3%,87.5% 6.75%,100% 12%,100% 100%,0 100%);
}
@supports (clip-path:shape(from 0 0, curve to 100% 0 with 50% 24%, line to 100% 100%, line to 0 100%, close)) {
  .grund-swatch[aria-pressed]::after {
    --grund-arc-edge:0%;
    --grund-arc-control:24%;
    clip-path:shape(from 0 var(--grund-arc-edge), curve to 100% var(--grund-arc-edge) with 50% var(--grund-arc-control), line to 100% 100%, line to 0 100%, close);
  }
  .grund-swatch[aria-pressed=true]::after {
    --grund-arc-edge:12%;
    --grund-arc-control:-12%;
  }
}
@media (prefers-reduced-motion:no-preference) {
  .grund-swatch[aria-pressed]::after { transition:transform var(--grund-swatch-motion),clip-path .16s ease-out; }
}
.grund-swatch:focus-visible { outline:1px solid var(--color-paper); outline-offset:5px; }
@media (min-width:768px) and (hover:hover) and (pointer:fine) {
  .grund-swatch::after { border-radius:50% 50% 0 0 / 12% 12% 0 0; }
  .grund-swatch:is(:hover,:focus-visible)::after { transform:translateY(-13%); }
}
.grund-colour-list p {
  max-width:24ch;
  margin:20px auto 0;
  color:var(--color-muted);
  font:400 14px/1.55 var(--font-body);
}
@media (max-width:860px) {
  .grund-colour-list { grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px 18px; }
  .grund-colour-list li { grid-column:span 2; }
  .grund-colour-list li:last-child { grid-column:2 / span 2; }
}
@media (max-width:767px) {
  .grund-swatch[aria-expanded] + .grund-colour-detail {
    display:grid;
    grid-template-rows:0fr;
    visibility:hidden;
  }
  .grund-colour-detail > div { min-height:0; overflow:hidden; }
  .grund-colour-detail p { margin-top:14px; }
  .grund-swatch[aria-expanded] + .grund-colour-detail p {
    opacity:0;
    transform:translateY(-8px);
  }
  .grund-swatch[aria-expanded=true] + .grund-colour-detail {
    grid-template-rows:1fr;
    visibility:visible;
  }
  .grund-swatch[aria-expanded=true] + .grund-colour-detail p {
    opacity:1;
    transform:translateY(0);
  }
}
@media (max-width:767px) and (prefers-reduced-motion:no-preference) {
  .grund-swatch[aria-expanded] + .grund-colour-detail {
    transition:grid-template-rows .54s cubic-bezier(.2,.75,.25,1) .12s,visibility 0s .32s;
  }
  .grund-swatch[aria-expanded=true] + .grund-colour-detail {
    transition-duration:.44s,0s;
    transition-delay:0s;
  }
  .grund-swatch[aria-expanded] + .grund-colour-detail p {
    transition:opacity .32s ease-out,transform .32s ease-out;
  }
  .grund-swatch[aria-expanded=true] + .grund-colour-detail p {
    transition:opacity .62s cubic-bezier(.3,.02,.22,1) .12s,transform .62s cubic-bezier(.22,.5,.26,1) .12s;
  }
}
@media (prefers-reduced-motion:reduce) {
  .grund-swatch::after,.grund-case-lettering path,.grund-colour-detail { transition:none; }
}
