/* ==========================================================================
   /services/development — page-only styles (shared ones are in service.css)
   ========================================================================== */

/* ---------- Hero art: a code editor whose lines type themselves in ----------
   Each line is revealed left-to-right by a stepped clip-path, one after the
   other, held, then wiped — 12s loop. Still for reduced motion. */
.dev-editor {
    justify-self: center;
    width: min(100%, 420px);
    background: var(--c-white);
    border: 3px solid var(--c-ink);
    box-shadow: 0 10px 0 var(--c-ink);
    border-radius: var(--r-card);
    overflow: hidden;
    position: relative;
    transform: rotate(2deg);
}
.dev-editor__bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    border-bottom: 3px solid var(--c-ink);
    background: var(--c-cream);
}
.dev-editor__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-ink); }
.dev-editor__file { margin-left: 8px; font-family: ui-monospace, monospace; font-size: 13px; font-weight: 700; }

.dev-editor__body {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: 0 14px; padding: 18px 18px 22px;
}
.dev-editor__nums {
    display: flex; flex-direction: column;
    font-family: ui-monospace, monospace; font-size: 12px; font-weight: 600;
    color: var(--c-muted); text-align: right;
}
.dev-editor__nums span { height: 24px; line-height: 24px; }
.dev-editor__code { display: flex; flex-direction: column; }

.dev-line { height: 24px; display: flex; align-items: center; justify-content: center; }
.dev-line--caret { justify-content: flex-start; }
.dev-line__type { display: flex; gap: 6px; animation: 12s steps(5, end) infinite; }

.dev-pill { height: 12px; border-radius: 6px; }
.dev-pill--gap { background: transparent; }
.dev-pill--w24 { width: 24px; }
.dev-pill--w30 { width: 30px; }
.dev-pill--w34 { width: 34px; }
.dev-pill--w36 { width: 36px; }
.dev-pill--w40 { width: 40px; }
.dev-pill--w44 { width: 44px; }
.dev-pill--w50 { width: 50px; }
.dev-pill--w54 { width: 54px; }
.dev-pill--w60 { width: 60px; }
.dev-pill--w70 { width: 70px; }

.dev-caret {
    width: 10px; height: 18px; border-radius: 2px; background: var(--c-pink);
    animation: devCaret 1s steps(1) infinite;
}

.dev-line:nth-child(1) .dev-line__type { animation-name: devT0; }
.dev-line:nth-child(2) .dev-line__type { animation-name: devT1; }
.dev-line:nth-child(3) .dev-line__type { animation-name: devT2; }
.dev-line:nth-child(4) .dev-line__type { animation-name: devT3; }
.dev-line:nth-child(5) .dev-line__type { animation-name: devT4; }
.dev-line:nth-child(6) .dev-line__type { animation-name: devT5; }
.dev-line:nth-child(7) .dev-line__type { animation-name: devT6; }
.dev-line:nth-child(8) .dev-line__type { animation-name: devT7; }
.dev-line:nth-child(9) .dev-line__type { animation-name: devT8; }

@keyframes devT0 { 0%, 3%  { clip-path: inset(0 100% 0 0); } 8%, 90%  { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT1 { 0%, 9%  { clip-path: inset(0 100% 0 0); } 14%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT2 { 0%, 15% { clip-path: inset(0 100% 0 0); } 20%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT3 { 0%, 21% { clip-path: inset(0 100% 0 0); } 26%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT4 { 0%, 27% { clip-path: inset(0 100% 0 0); } 32%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT5 { 0%, 33% { clip-path: inset(0 100% 0 0); } 38%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT6 { 0%, 39% { clip-path: inset(0 100% 0 0); } 44%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT7 { 0%, 45% { clip-path: inset(0 100% 0 0); } 50%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devT8 { 0%, 51% { clip-path: inset(0 100% 0 0); } 56%, 90% { clip-path: inset(0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes devCaret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .dev-editor, .dev-editor * { animation: none !important; }
}
