/* AI works above the shared enterprise foundation. Keep the approved iceberg intact. */
.if-ai-foundation { position: relative; margin-bottom: 30px; }
.if-ai-tools { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.if-ai-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 60px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface, #fff9f0);
  color: var(--ink);
  font: 600 14px/1.35 Inter, sans-serif;
}
.if-ai-tool svg { width: 23px; height: 23px; flex: none; fill: none; stroke: var(--accent-ink, #b51068); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.if-ai-connections { --connector-gap: 12px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--connector-gap); height: 34px; color: var(--accent-ink, #b51068); }
.if-ai-connections span { position: relative; height: 18px; }
.if-ai-connections span::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: currentColor; }
.if-ai-connections span::after { content: ""; position: absolute; top: 17px; height: 1px; left: calc(-1 * var(--connector-gap)); right: 0; background: currentColor; }
.if-ai-connections span:first-child::after { left: 50%; }
.if-ai-connections span:last-child::after { right: 50%; }
.if-ai-connections::after { content: ""; position: absolute; top: 17px; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: currentColor; }
.if-ai-core { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; border-radius: 4px; background: #23211f; border-top: 3px solid #db127c; }
body.home-site .iceberg-flow img.if-ai-logo { position: static; inset: auto; width: 128px; height: auto; object-fit: contain; flex: none; }
body.home-site .iceberg-flow .if-ai-core p { color: #e3e1df; font-size: 13px; line-height: 1.55; margin: 0; }
body.home-site .iceberg-flow .if-ai-core strong { color: #fff9f0; font-weight: 650; }
.if-ai-entry { display: none; }
.if-iceberg-field { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
body.home-site .if-ai-home .if-platform-answer { margin-top: 20px; padding: 0 0 0 18px; border: 0; border-left: 2px solid var(--magenta); border-radius: 0; background: transparent; }
body.home-site .if-ai-home .if-answer-brand { display: none; }
body.home-site.site-design.story-site.hierarchy-site main .if-ai-home .if-platform-answer h3 { font: 650 19px/1.3 Inter,sans-serif; color: var(--ink); letter-spacing: -.025em; margin: 0 0 10px; max-width: none; }
body.home-site .if-ai-home .if-platform-answer p { color: var(--muted); font-size: 15px; line-height: 1.6; }
body.home-site .if-ai-home .if-platform-answer a { color: var(--accent-ink,var(--magenta)); margin-top: 12px; }
html[data-theme=dark] .if-ai-tool { background: #2d2b29; border-color: #5b5957; }
html[data-theme=dark] .if-ai-tool svg, html[data-theme=dark] .if-ai-connections { color: #ff90c6; stroke: #ff90c6; }
html[data-theme=dark] .if-ai-core { background: #171513; border-color: #ee238c; }
html[data-theme=dark] body.home-site .if-ai-home .if-platform-answer a { color: #ff90c6; }
@media(max-width:1050px) {
  body.story-site.hierarchy-site.home-site.site-design .iceberg-flow.if-ai-home .if-copy { display: contents; }
  .if-ai-home .if-ai-foundation { grid-row: 1; margin-bottom: 0; }
  body.story-site.hierarchy-site.home-site.site-design .iceberg-flow.if-ai-home .if-art { grid-row: 2; }
  .if-ai-home .if-stages { grid-row: 3; }
}
@media(max-width:650px) {
  .if-ai-tools { gap: 7px; }
  .if-ai-tool { flex-direction: column; gap: 7px; min-height: 78px; font-size: 12px; padding: 10px 6px; text-align: center; }
  .if-ai-tool svg { width: 21px; height: 21px; }
  .if-ai-connections { --connector-gap: 7px; height: 28px; }
  .if-ai-core { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 16px; }
  body.home-site .iceberg-flow img.if-ai-logo { width: 107px; }
  body.home-site .iceberg-flow .if-ai-core p { font-size: 12px; line-height: 1.55; }
}
