/* Approach-only refinements. Load after the site's shared glass styles. */
#idea.approach,
.motion-enabled #idea.approach {
  min-height: 0;
  padding-top: clamp(160px, calc(6vw + 88px), 184px);
}
#idea .section-intro { margin-bottom: 24px; }
#idea .approach-cards { padding-bottom: 24px; }

#idea .approach-card {
  border-color: rgba(234, 237, 245, .21);
  outline: 0;
}
#idea .approach-card::after {
  box-shadow: inset 0 0 0 1px rgba(243, 245, 255, .46), inset 0 22px 70px -48px rgba(234, 240, 255, .6);
}
#idea .approach-card:focus-visible {
  outline: 2px solid rgba(239, 242, 255, .9);
  outline-offset: 5px;
}
#idea .card-copy {
  left: clamp(12px, 1.2vw, 24px);
  right: clamp(12px, 1.2vw, 24px);
  bottom: clamp(14px, 1.35vw, 28px);
  padding: clamp(18px, 1.5vw, 30px);
  border: 1px solid rgba(232, 236, 246, .19);
  border-radius: max(10px, calc(var(--card-radius) - 7px));
  background: linear-gradient(145deg, rgba(228, 235, 249, .11), rgba(25, 29, 37, .32) 48%, rgba(5, 7, 11, .57));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 10px 32px rgba(0, 0, 0, .15);
  -webkit-backdrop-filter: blur(9px) saturate(.75);
  backdrop-filter: blur(9px) saturate(.75);
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
#idea .card-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23g)' d='M0 0h128v128H0z'/%3E%3C/svg%3E");
}
#idea .card-copy > * { position: relative; }
#idea .approach-card:focus-within .card-copy {
  border-color: rgba(238, 242, 252, .4);
  background-color: rgba(222, 231, 248, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 36px rgba(0, 0, 0, .2);
}
@media (hover: hover) and (pointer: fine) {
  #idea .approach-card:hover .card-copy {
    border-color: rgba(238, 242, 252, .4);
    background-color: rgba(222, 231, 248, .035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 36px rgba(0, 0, 0, .2);
  }
}
/* After the single hero dock, the three cards form a horizontal accordion. */
#idea .approach-cards {
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transition: grid-template-columns .58s cubic-bezier(.22, .68, .18, 1);
}
#idea .card-copy { min-width: 0; width: auto; box-sizing: border-box; }
#idea .approach-card:not(.idea-card) { cursor: pointer; }
#idea .approach-card-expanded .card-copy { border-color: rgba(238, 242, 252, .4); }
@media (min-width: 1024px) {
  #idea .approach-cards {
    --approach-copy-height: clamp(184px, 14vw, 236px);
    --approach-copy-bottom: clamp(14px, 1.35vw, 28px);
    align-items: center;
    height: calc(var(--approach-accordion-height) + 24px);
    grid-template-columns: var(--approach-idle-height) var(--approach-idle-height) var(--approach-idle-height);
  }
  #idea .approach-card {
    height: var(--approach-idle-height);
    aspect-ratio: auto;
    background: #080a0d;
    transition: height .58s cubic-bezier(.22, .68, .18, 1);
  }
  /* The single persistent hero is below the section; never paint over its slot. */
  #idea .idea-card { background: transparent; }
  #idea .card-media { position: absolute; inset: 0; height: 100%; border-radius: inherit; }
  #idea .card-copy { position: absolute; margin: 0; }
  #idea .approach-card:not(.idea-card) .card-media > img,
  #idea .approach-card:not(.idea-card) .card-media > video { object-fit: cover; object-position: 50% 50%; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  #idea .approach-cards[data-active-card] .approach-card { height: var(--approach-accordion-height); }
  #idea .approach-cards[data-active-card] .card-copy {
    height: var(--approach-copy-height);
    bottom: var(--approach-copy-bottom);
  }
  #idea .approach-cards[data-active-card] .approach-card:not(.idea-card) .card-media > img,
  #idea .approach-cards[data-active-card] .approach-card:not(.idea-card) .card-media > video { object-fit: cover; object-position: 50% 50%; }
  #idea .approach-cards[data-active-card="0"] { grid-template-columns: var(--approach-accordion-width) var(--approach-bar-width) var(--approach-bar-width); }
  #idea .approach-cards[data-active-card="1"] { grid-template-columns: var(--approach-bar-width) var(--approach-accordion-width) var(--approach-bar-width); }
  #idea .approach-cards[data-active-card="2"] { grid-template-columns: var(--approach-bar-width) var(--approach-bar-width) var(--approach-accordion-width); }
  #idea .approach-cards[data-active-card] .approach-card:not(.approach-card-expanded) .card-copy {
    left: 10px; right: 10px;
    width: auto;
    height: var(--approach-copy-height);
    margin: 0;
    padding: 16px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #idea .approach-cards[data-active-card] .approach-card:not(.approach-card-expanded) .card-kicker,
  #idea .approach-cards[data-active-card] .approach-card:not(.approach-card-expanded) .card-description { display: none; }
  #idea .approach-cards[data-active-card] .approach-card:not(.approach-card-expanded) .card-copy h3 {
    margin: 0 auto;
    font-size: clamp(18px, 1.45vw, 24px);
    line-height: 1;
    letter-spacing: -.02em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
}
@media (max-width: 1023px) {
  #idea .approach-cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #idea .idea-card { width: 100%; height: var(--approach-idea-height, auto); aspect-ratio: 600 / 768; }
  #idea .card-copy { min-height: 180px; }
  #idea .idea-card .card-copy { left: 12px; right: 12px; }
  #idea .approach-card:not(.idea-card) {
    height: auto;
    aspect-ratio: auto;
    background: transparent;
  }
  #idea .approach-card:not(.idea-card)::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 9;
    pointer-events: none;
  }
  #idea .approach-card:not(.idea-card) .card-media {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    border-radius: inherit;
  }
  #idea .approach-card .card-media::after { background: linear-gradient(180deg, transparent 38%, rgba(3, 4, 6, .08) 68%, rgba(3, 4, 6, .16)); }
  #idea .approach-card:not(.idea-card) .card-copy { position: relative; inset: auto; margin: -12px 12px 14px; }
}
@media (max-width: 760px) {
  #idea .approach-cards { padding-bottom: 16px; }
  #idea .card-copy { left: 16px; right: 16px; bottom: 18px; padding: 22px; }
  #idea .approach-card:not(.idea-card) .card-copy { inset: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #idea .approach-cards,
  #idea .approach-card,
  #idea .approach-card::after,
  #idea .card-copy { transition: none !important; }
}

/* Both image surfaces stay mounted. Only the transition image is visible
   during the dissolve; the normal-flow card takes over at the identical rect. */
#idea .idea-card .idea-media-slot > img.idea-image,
#film-surface > img.idea-dissolve-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 50%;
  transform: none;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.motion-enabled #idea .idea-card .idea-media-slot > img.idea-image,
.motion-enabled #film-surface > img.idea-dissolve-image {
  opacity: var(--idea-scene-mix, 0);
  object-position: calc(50% + 7% * var(--dock-progress)) 50%;
  transition: none;
}
@media (max-width: 760px) {
  .motion-enabled #idea .idea-card .idea-media-slot > img.idea-image,
  .motion-enabled #film-surface > img.idea-dissolve-image {
    object-position: calc(62% - 5% * var(--dock-progress)) 50%;
  }
}
.motion-enabled:not([data-idea-card-scene="ready"]) #idea .idea-card .idea-media-slot > img.idea-image { visibility: hidden; opacity: 0; }
#film-surface > img.idea-dissolve-image { opacity: 0; visibility: hidden; }
.motion-enabled[data-idea-card-scene="mixing"] #film-surface > img.idea-dissolve-image { visibility: visible; }
/* The opaque card image owns the settled view. Keep the underlying hero
   mounted, but prevent a one-frame resize/hover offset from exposing it. */
.motion-enabled[data-idea-card-scene="ready"] #film-surface { opacity: 0; }
.motion-enabled.idea-copy-in-flight #idea .idea-card .idea-media-slot { opacity: 1; }
.motion-enabled:not([data-idea-card-scene="ready"]) #idea .idea-card .idea-media-slot::after { opacity: 0; }
.motion-enabled[data-idea-card-scene="mixing"] #film-surface > img.idea-dissolve-image {
  z-index: 1;
  filter: blur(calc(1.5px * (1 - var(--idea-scene-mix))));
}
/* Move the existing card shade with that same surface, then let the slot's
   identical shade take over. The image remains clipped by its real parent. */
.motion-enabled[data-idea-card-scene="mixing"] #film-surface::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: var(--idea-scene-mix, 0);
  background: linear-gradient(180deg, transparent 43%, rgba(3,4,6,.18) 60%, rgba(3,4,6,.87) 100%);
  pointer-events: none;
}
@media (max-width: 1023px) {
  #idea .idea-card { height: auto; aspect-ratio: auto; background: transparent; }
  #idea .idea-card::before { content: ""; display: block; aspect-ratio: 16 / 9; pointer-events: none; }
  #idea .idea-card .card-copy { position: relative; inset: auto; margin: -12px 12px 14px; }
}

/* A quiet physical toggle: no text, glyph or circuit illustration. */
#idea .approach-switch {
  position:absolute; z-index:8; top:12px; right:12px; display:grid; place-items:center;
  width:62px; height:44px; padding:0; cursor:pointer;
}
#idea .approach-switch-track {
  display:block; position:relative; width:48px; height:28px; border-radius:18px; transform:scale(.5); transform-origin:center;
  border:1px solid #ffffff4d; background:#13191eb3;
  box-shadow:inset 0 2px 5px #0005; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  transition:background 220ms ease,border-color 220ms ease;
}
#idea .approach-switch-thumb {
  position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%;
  background:linear-gradient(145deg,#fafbf8,#bbc1c3); box-shadow:0 1px 4px #0006,inset 0 1px 0 #fff;
  transition:transform 220ms cubic-bezier(.2,.7,.3,1);
}
#idea .approach-card-active .approach-switch-track { background:#dce8eb55; border-color:#f3fbffc2; }
#idea .approach-card-active .approach-switch-thumb { transform:translateX(20px); }
@media(prefers-reduced-motion:reduce) { #idea .approach-switch-track,#idea .approach-switch-thumb { transition:none; } }
.motion-enabled[data-hero-dock="moving"] #idea .approach-switch { opacity:0; pointer-events:none; }
@media(min-width:1024px) {
  #idea .approach-cards[data-active-card] .approach-card:not(.approach-card-active) .approach-switch { opacity:0; pointer-events:none; }
}

@media(max-width:1023px) {
  .motion-enabled[data-idea-card-scene="mixing"] #film-surface::after {
    background:linear-gradient(180deg,transparent 38%,rgba(3,4,6,.08) 68%,rgba(3,4,6,.16));
  }
}
