/* Existing portfolio styles own all layout, color and typography.
   The standalone page uses h1 instead of Home's nested h2. */
#mobile-first-ai .project-heading h1 { max-width: 100%; font-size: clamp(64px, 10vw, 160px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
/* Video artifacts occupy the same image slot and phone width as existing stacks. */
#mobile-first-ai .case-video { position: relative; }
#mobile-first-ai .case-video, #mobile-first-ai .phone-stack .artifact img { width: min(calc(100% - 64px), max(140px, calc((100svh - var(--navigation-height) - 105px - var(--stack-peek-limit, 72px)) * .46))); }
#mobile-first-ai .case-video video { display: block; width: 100%; height: auto; cursor: pointer; }
#mobile-first-ai .case-video video:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
#mobile-first-ai .case-video.diagram-video { width: calc(100% - 64px); }
/* Text-led sequences share the portfolio's heading and body scales. */
#mobile-first-ai .automation-spectrum { margin: 32px 0; }
#mobile-first-ai #mental-model > .detail-copy:first-child { padding-top: 0; }
#mobile-first-ai #mental-model .detail-copy h3 { color: var(--muted); font-size: var(--section-size); line-height: 1.2; letter-spacing: -.015em; overflow-wrap: anywhere; }
#mobile-first-ai .proposal-heading { color: var(--ink); font-size: var(--section-size); line-height: 1.2; letter-spacing: -.015em; }
#mobile-first-ai .proposal-label { display: block; margin-bottom: 8px; color: var(--muted); }
#mobile-first-ai .sequence-diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0 0 24px; }
#mobile-first-ai .sequence-diagram li { display: grid; grid-template-columns: minmax(0, max-content) minmax(24px, 1fr); column-gap: 16px; row-gap: 8px; align-content: start; margin: 0; padding: 0; color: var(--ink); }
#mobile-first-ai .sequence-diagram li:last-child { grid-template-columns: minmax(0, 1fr); }
#mobile-first-ai .sequence-title { grid-column: 1; grid-row: 1; font-size: var(--section-size); line-height: 1.2; letter-spacing: -.015em; font-weight: 400; }
#mobile-first-ai .sequence-subtitle { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: var(--body-size); font-weight: 400; line-height: 1.5; text-transform: none; }
#mobile-first-ai .sequence-connector { grid-column: 2; grid-row: 1; align-self: center; display: block; width: 100%; height: 12px; overflow: visible; color: var(--ink); }
#mobile-first-ai .sequence-connector path { fill: none; stroke: currentColor; stroke-width: 1.25px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#mobile-first-ai .video-speed { position: absolute; top: 0; left: calc(100% + 12px); width: 52px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
#mobile-first-ai .video-speed:hover, #mobile-first-ai .video-speed[aria-pressed="true"] { color: var(--accent); border-color: currentColor; }
#mobile-first-ai .video-speed:focus-visible, #mobile-first-ai .teaching-methods a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#mobile-first-ai .teaching-methods { list-style: none; padding: 0; margin-block: 16px 24px; }
#mobile-first-ai .teaching-methods li { margin: 0; border-top: 1px solid var(--rule); }
#mobile-first-ai .teaching-methods li:last-child { border-bottom: 1px solid var(--rule); }
#mobile-first-ai .teaching-methods a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 16px 12px; color: var(--ink); text-decoration: none; transition: background-color 160ms ease; }
#mobile-first-ai .teaching-methods svg { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
#mobile-first-ai .teaching-methods a:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); }
#mobile-first-ai .teaching-methods a:active { background: color-mix(in srgb, var(--ink) 12%, transparent); }
@media (hover: hover) {
  #mobile-first-ai .teaching-methods a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
  #mobile-first-ai .teaching-methods a:hover svg { transform: translate(2px, -2px); }
}
/* Parent and step share the existing heading scale; color carries the hierarchy. */
#mobile-first-ai .artifact-context { font-size: var(--section-size); line-height: 1.2; letter-spacing: -.015em; font-weight: 400; color: var(--muted); }
#mobile-first-ai .artifact-context a { display: block; color: inherit; text-decoration: none; }
#mobile-first-ai .artifact-context a:hover { color: var(--hover); }
#mobile-first-ai .artifact-context a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#mobile-first-ai .artifact-step-copy > .artifact-context,
#mobile-first-ai .subsection-heading > .artifact-context { margin: 0 0 8px; }
#mobile-first-ai .artifact-step-copy :is(h3, h4, .artifact-step-label), #mobile-first-ai .subsection-heading h4 { color: var(--ink); }
#mobile-first-ai .project-media .hero-video { margin: 0; }
#mobile-first-ai .hero-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
#mobile-first-ai .motion-transcript { margin-top: 16px; color: var(--muted); font-size: var(--body-size); line-height: 1.5; }
#mobile-first-ai .motion-transcript summary { cursor: pointer; padding-block: 8px; }
#mobile-first-ai .motion-transcript p { margin-top: 12px; }
@media (max-width: 760px) {
  #mobile-first-ai .project-heading h1 { font-size: clamp(52px, 12vw, 90px); }
  #mobile-first-ai .case-video, #mobile-first-ai .phone-stack .artifact img { width: min(calc(100% - 64px), 320px); }
  #mobile-first-ai .hero-videos { grid-template-columns: minmax(0, 1fr); gap: 32px; }

}
@media (max-width: 360px) { #mobile-first-ai .project-heading h1 { font-size: 48px; } }

@media (max-width: 1100px) {
  #mobile-first-ai .sequence-diagram { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #mobile-first-ai .sequence-diagram li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 40px; }
  #mobile-first-ai .sequence-diagram li:last-child { grid-template-rows: auto auto; }
  #mobile-first-ai .sequence-connector { grid-column: 1; grid-row: 3; justify-self: start; width: 40px; height: 12px; transform: rotate(90deg); }
}

/* Figma sketch exports include outlined titles and adapt through the shared artifact theme switch. */
#mobile-first-ai .model-sketch { margin-bottom: 28px; }

/* Keep the editable Figma artwork on wide screens and readable native labels on phones. */
@font-face { font-family: "Patrick Hand"; src: url("/assets/fonts/patrick-hand-latin.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
#mobile-first-ai .automation-spectrum .automation-levels { display: none; }
@media (max-width: 1100px) {
  #mobile-first-ai .automation-spectrum .automation-sketch { display: none; }
  #mobile-first-ai .automation-spectrum .automation-levels { display: grid; }
  #mobile-first-ai .automation-spectrum .sequence-title { font-family: "Patrick Hand", cursive; font-size: 32px; letter-spacing: 0; }
}
