/* Services page: discipline graphics and service dropdowns. Sizes are in cqw so each graphic scales with its card. */
.svc .svc-art .arch-screen { padding: 0; container-type: inline-size; overflow: hidden; }
.sa { position: absolute; inset: 0; font-size: 3cqw; line-height: 1.3; color: var(--ink); overflow: hidden; }
/* graphics only move while on screen (site.js toggles .playing) */
.sa:not(.playing), .sa:not(.playing) * { animation-play-state: paused !important; }

/* ---------- Graphic design: a design app ---------- */
.sa-design { background: #F2F4F6; display: flex; flex-direction: column; }
.sa-bar { display: flex; align-items: center; gap: 1.2cqw; padding: 2.4cqw 3cqw; background: var(--paper); font-size: 2.8cqw; font-weight: 600; }
.sa-bar i { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--mist-2); }
.sa-bar span { margin-left: 2cqw; }
.sa-body { flex: 1; display: grid; grid-template-columns: 8cqw 21cqw 1fr 22cqw; min-height: 0; }
.sa-tools { background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2.6cqw; padding-top: 3cqw; color: #9fb3c6; }
.sa-tools svg { width: 3.6cqw; fill: currentColor; }
.sa-tools svg:first-child { color: var(--lagoon); }
.sa-layers, .sa-props { background: var(--paper); padding: 3cqw 2.4cqw; display: flex; flex-direction: column; gap: 1.4cqw; font-size: 2.5cqw; }
.sa-layers b, .sa-props b { font-weight: 600; font-size: 2.6cqw; margin-top: 1cqw; }
.sa-layers span { padding: 1cqw 1.4cqw; border-radius: 1.2cqw; }
.sa-layers span.on { background: var(--mist); font-weight: 600; }
.sa-props .sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqw; }
.sa-props .sw i { aspect-ratio: 1; border-radius: 1cqw; }
.sa-props .sw-ink { outline: 0.5cqw solid transparent; outline-offset: 0.4cqw; animation: swPick 7s infinite; }
.sa-props .exp { margin-top: auto; background: var(--teal); color: var(--paper); text-align: center; padding: 1.4cqw; border-radius: 99px; font-weight: 600; margin-bottom: 3cqw; }
.sa-canvas { position: relative; display: grid; place-items: center; padding: 4cqw; background-image: radial-gradient(#d5dde3 0.35cqw, transparent 0.4cqw); background-size: 3cqw 3cqw; /* taste-skill-ignore: canvas dot grid inside the app picture */ }
.poster { position: relative; width: 100%; aspect-ratio: 4 / 5; background: var(--teal); border-radius: 0.6cqw; padding: 3.4cqw; color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: 2.6cqw; overflow: visible; animation: posterFill 7s infinite; }
.poster img { position: absolute; right: -6%; top: 6%; width: 64%; opacity: .9; }
.ph-wrap { position: relative; }
.ph { display: block; font-weight: 600; font-size: 6.4cqw; line-height: .95; letter-spacing: -0.04em; }
.pbtn { align-self: flex-start; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 2.4cqw; padding: 1.4cqw 2.4cqw; border-radius: 99px; }
.sel { position: absolute; inset: -1.4cqw; border: 0.35cqw solid var(--lagoon); border-radius: 0.4cqw; animation: selPulse 7s infinite; }
.sel i { position: absolute; width: 1.6cqw; height: 1.6cqw; background: var(--paper); border: 0.35cqw solid var(--lagoon); }
.sel i:nth-child(1) { left: -1cqw; top: -1cqw; } .sel i:nth-child(2) { right: -1cqw; top: -1cqw; }
.sel i:nth-child(3) { left: -1cqw; bottom: -1cqw; } .sel i:nth-child(4) { right: -1cqw; bottom: -1cqw; }
.sel em { position: absolute; left: 0; bottom: calc(100% + 1.4cqw); font-style: normal; font-size: 2.2cqw; font-weight: 600; background: var(--lagoon); color: var(--ink); padding: 0.6cqw 1.2cqw; border-radius: 0.8cqw; white-space: nowrap; }
.sa-cursor { position: absolute; width: 4.4cqw; left: 0; top: 0; animation: cursorPath 7s var(--ease-in-out) infinite; z-index: 3; }
@keyframes cursorPath {
  0%, 8%   { transform: translate(34cqw, 50cqw); }
  28%, 36% { transform: translate(77cqw, 30cqw) scale(1); }
  38%      { transform: translate(77cqw, 30cqw) scale(.85); }
  42%, 60% { transform: translate(77cqw, 30cqw) scale(1); }
  76%, 84% { transform: translate(70.5cqw, 30cqw) scale(1); }
  86%      { transform: translate(70.5cqw, 30cqw) scale(.85); }
  90%, 100%{ transform: translate(34cqw, 50cqw) scale(1); }
}
@keyframes posterFill { 0%, 38% { background-color: var(--teal); } 41%, 85% { background-color: var(--ink); } 88%, 100% { background-color: var(--teal); } }
@keyframes swPick { 0%, 37% { outline-color: transparent; } 40%, 84% { outline-color: var(--ink); } 87%, 100% { outline-color: transparent; } }
@keyframes selPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Video & motion: the logo, animated ---------- */
.sa-motion { background: var(--ink); display: flex; flex-direction: column; }
.sm-stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; }
.sm-stage > * { grid-area: 1 / 1; }
.sm-ring { width: 30cqw; aspect-ratio: 1; border-radius: 50%; border: 0.8cqw solid var(--lagoon); opacity: 0; animation: smRing 5s var(--ease-out) infinite; }
.sm-symbol { width: 36cqw; clip-path: inset(100% 0 0 0); animation: smSymbol 5s var(--ease-out) infinite; }
.sm-logo { width: 60cqw; clip-path: inset(0 100% 0 0); animation: smLogo 5s var(--ease-out) infinite; }
@keyframes smSymbol {
  0%       { clip-path: inset(100% 0 0 0); transform: translateY(8cqw) scale(.96); opacity: 1; filter: none; }
  20%      { clip-path: inset(0 0 0 0); transform: none; }
  24%      { transform: scale(1.04); }
  28%, 40% { transform: scale(1); opacity: 1; filter: none; }
  48%      { transform: scale(.7) translateY(-6cqw); opacity: 0; filter: blur(0.6cqw); clip-path: inset(0 0 0 0); }
  100%     { opacity: 0; clip-path: inset(0 0 0 0); }
}
@keyframes smLogo {
  0%, 44% { clip-path: inset(0 100% 0 0); opacity: 1; transform: scale(.98); }
  62%     { clip-path: inset(0 0 0 0); transform: scale(1); }
  90%     { clip-path: inset(0 0 0 0); opacity: 1; transform: scale(1); }
  98%, 100% { clip-path: inset(0 0 0 0); opacity: 0; transform: scale(1.02); }
}
@keyframes smRing { 0%, 16% { opacity: 0; transform: scale(.4); } 20% { opacity: .9; } 40%, 100% { opacity: 0; transform: scale(2.4); } }
.sm-bar { display: flex; align-items: center; gap: 2.4cqw; padding: 2.6cqw 3.4cqw; background: var(--ink-2); color: var(--paper); font-size: 2.6cqw; font-weight: 600; }
.sm-play { width: 0; height: 0; border-left: 2.4cqw solid var(--lagoon); border-top: 1.5cqw solid transparent; border-bottom: 1.5cqw solid transparent; }
.sm-track { flex: 1; height: 0.8cqw; border-radius: 1cqw; background: #333; overflow: hidden; }
.sm-track i { display: block; height: 100%; background: var(--lagoon); transform-origin: left; animation: smPlayhead 5s linear infinite; }
@keyframes smPlayhead { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sm-tracks { position: relative; height: 13cqw; background: var(--ink-2); padding: 0 3.4cqw 3cqw; }
.sm-tracks span { position: absolute; left: calc(3.4cqw + var(--x) * 0.932); width: calc(var(--w) * 0.86); height: 4.4cqw; top: calc(var(--row, 0) * 5cqw); border-radius: 1cqw; background: var(--teal); color: var(--paper); font-size: 2.2cqw; font-weight: 600; padding: 1cqw 1.4cqw; }
.sm-tracks span:nth-child(2) { --row: 1; background: var(--lagoon); color: var(--ink); }

/* ---------- Web design: a wireframe ---------- */
.sa-wire { background: var(--paper); padding: 5cqw; display: flex; flex-direction: column; gap: 4.4cqw; --wl: #9fb3c6; }
.sa-wire .b { display: block; border: 0.45cqw dashed var(--wl); border-radius: 1.4cqw; }
.sa-wire .ln { display: block; height: 2cqw; border-radius: 1cqw; background: var(--mist); }
.sa-wire .ln.xl { height: 4.6cqw; background: var(--mist-2); margin-bottom: 1.6cqw; }
.sw-nav { display: grid; grid-template-columns: 12cqw 1fr 1fr 1fr 16cqw; gap: 3cqw; align-items: center; }
.sw-nav .box { height: 5cqw; }
.sw-nav .ln { height: 1.6cqw; }
.sw-nav .pill, .sw-hero .cta { height: 5.4cqw; border-radius: 99px; border-style: solid; border-color: var(--teal); }
.sw-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; align-items: center; }
.sw-hero > div { display: flex; flex-direction: column; gap: 1.6cqw; }
.sw-hero .cta { width: 22cqw; margin-top: 2cqw; }
.sw-hero .img { aspect-ratio: 1 / 1.1; position: relative; overflow: hidden; }
.sw-hero .img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sw-hero .img path { stroke: var(--wl); stroke-width: 0.8; vector-effect: non-scaling-stroke; fill: none; }
.sw-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; flex: 1; }
.sw-row .card { min-height: 20cqw; }
.sw-note { position: absolute; font-size: 3.2cqw; color: var(--teal-deep); transform: rotate(-4deg); }
.sw-note.n1 { left: 6cqw; top: 13cqw; transform: rotate(-4deg); }
.sw-note.n2 { left: 31cqw; top: 49cqw; font-size: 2.8cqw; transform: rotate(-2deg); }
.sw-arrow { position: absolute; width: 9cqw; fill: none; stroke: var(--teal-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sw-arrow.a1 { left: 28cqw; top: 15cqw; transform: scaleY(-1) rotate(10deg); }
.sw-arrow.a2 { left: 26cqw; top: 54cqw; transform: rotate(20deg) scaleX(-1); }
/* the designer at work: toggles the layout grid, selects the image, fills the button, picks a card */
.sw-grid { position: absolute; inset: 0 5cqw; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3cqw; pointer-events: none; opacity: 0; animation: wGrid 8s var(--ease-in-out) infinite; }
.sw-grid i { background: color-mix(in srgb, var(--teal) 8%, transparent); }
.sw-cursor { position: absolute; left: 0; top: 0; width: 4.4cqw; z-index: 3; animation: wCursor 8s var(--ease-in-out) infinite; }
.sw-hero .img { animation: wImg 8s infinite; }
.sw-hero .cta { animation: wCta 8s infinite; }
.sw-row .card:nth-child(2) { animation: wCard 8s infinite; }
@keyframes wGrid { 0%, 2% { opacity: 0; } 6%, 12% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes wCursor {
  0%       { transform: translate(86cqw, 94cqw); }
  14%, 32% { transform: translate(72cqw, 38cqw) scale(1); }
  17%      { transform: translate(72cqw, 38cqw) scale(.85); }
  42%, 60% { transform: translate(16cqw, 50cqw) scale(1); }
  45%      { transform: translate(16cqw, 50cqw) scale(.85); }
  70%, 86% { transform: translate(48cqw, 84cqw) scale(1); }
  73%      { transform: translate(48cqw, 84cqw) scale(.85); }
  100%     { transform: translate(86cqw, 94cqw); }
}
@keyframes wImg { 0%, 16% { border-color: var(--wl); border-style: dashed; background: transparent; } 18%, 36% { border-color: var(--teal); border-style: solid; background: color-mix(in srgb, var(--teal) 6%, transparent); } 40%, 100% { border-color: var(--wl); border-style: dashed; background: transparent; } }
@keyframes wCta { 0%, 44% { background: transparent; } 47%, 66% { background: var(--teal); } 70%, 100% { background: transparent; } }
@keyframes wCard { 0%, 72% { border-color: var(--wl); background: transparent; transform: none; } 75%, 90% { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, transparent); transform: translateY(-1.2cqw); } 94%, 100% { border-color: var(--wl); background: transparent; transform: none; } }

/* ---------- Web development: code being written ---------- */
.sa-code { background: var(--ink-2); color: var(--paper); display: flex; flex-direction: column; }
.sc-tabs { display: flex; gap: 0.6cqw; padding: 2.4cqw 2.4cqw 0; background: var(--ink); font-size: 2.6cqw; }
.sc-tabs span { padding: 1.6cqw 2.6cqw; border-radius: 1.4cqw 1.4cqw 0 0; color: #9fb3c6; }
.sc-tabs span.on { background: var(--ink-2); color: var(--paper); }
.sc-ed { flex: 1; margin: 0; padding: 4cqw 3cqw; font: 400 3.3cqw/1.95 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: pre; overflow: hidden; }
.sc-ed code { font: inherit; display: block; white-space: normal; }
.sc-ed .l { white-space: pre; }
.sc-ed .l { display: block; clip-path: inset(0 100% 0 0); animation: type1 9s steps(24, end) infinite; }
.sc-ed .l i { font-style: normal; color: #55606b; display: inline-block; width: 4.4cqw; }
.sc-ed .t { color: var(--lagoon); font-weight: 400; } .sc-ed .a { color: #9fb3c6; font-weight: 400; }
.sc-ed .s { color: #F2C66D; font-weight: 400; } .sc-ed .k { color: #7FD1D1; font-weight: 400; }
.sc-ed .l:nth-child(1) { animation-name: type1; }
.sc-ed .l:nth-child(2) { animation-name: type2; }
.sc-ed .l:nth-child(3) { animation-name: type3; }
.sc-ed .l:nth-child(4) { animation-name: type4; }
.sc-ed .l:nth-child(5) { animation-name: type5; }
.sc-ed .l:nth-child(6) { animation-name: type6; }
.sc-ed .l:nth-child(7) { animation-name: type7; }
.sc-ed .l:nth-child(8) { animation-name: type8; }
@keyframes type1 { 0%, 0.0% { clip-path: inset(0 100% 0 0); } 5.5%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type2 { 0%, 5.56% { clip-path: inset(0 100% 0 0); } 11.06%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type3 { 0%, 11.11% { clip-path: inset(0 100% 0 0); } 16.61%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type4 { 0%, 16.67% { clip-path: inset(0 100% 0 0); } 22.17%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type5 { 0%, 20.0% { clip-path: inset(0 100% 0 0); } 25.5%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type6 { 0%, 23.33% { clip-path: inset(0 100% 0 0); } 28.83%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type7 { 0%, 30.0% { clip-path: inset(0 100% 0 0); } 35.5%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type8 { 0%, 36.67% { clip-path: inset(0 100% 0 0); } 42.17%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
.sc-term { background: var(--ink); padding: 3cqw; font: 400 2.8cqw/1.7 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; display: flex; flex-direction: column; min-height: 17cqw; }
.sc-term span { opacity: 0; animation: termLine 9s infinite; }
.sc-term .p { color: #9fb3c6; animation-name: term1; }
.sc-term .ok { color: var(--lagoon); animation-name: term2; }
.sc-term .ok2 { color: var(--paper); animation-name: term3; }
@keyframes term1 { 0%, 46% { opacity: 0; } 48%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes term2 { 0%, 57% { opacity: 0; } 59%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes term3 { 0%, 64% { opacity: 0; } 66%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* ---------- Marketing assets: an email template ---------- */
.sa-mail { background: var(--mist); display: flex; flex-direction: column; }
.se-head { background: var(--paper); padding: 2.6cqw 3.4cqw; display: flex; flex-direction: column; gap: 0.8cqw; font-size: 2.6cqw; }
.se-head b { font-weight: 600; display: inline-block; width: 12cqw; color: #4a4a4a; }
.se-view { flex: 1; overflow: hidden; padding: 4cqw 8cqw 0; }
.se-tpl { background: var(--paper); border-radius: 1.6cqw 1.6cqw 0 0; padding: 4cqw; display: flex; flex-direction: column; gap: 3.4cqw; animation: mailScroll 10s var(--ease-in-out) infinite; }
@keyframes mailScroll { 0%, 18% { transform: translateY(0); } 48%, 68% { transform: translateY(-34cqw); } 96%, 100% { transform: translateY(0); } }
.se-top { display: flex; justify-content: space-between; align-items: center; font-size: 2.2cqw; color: #4a4a4a; }
.se-top img { width: 22cqw; height: auto; }
.se-hero { background: var(--teal); color: var(--paper); border-radius: 1.4cqw; padding: 5cqw 4cqw; display: flex; flex-direction: column; gap: 2cqw; }
.se-hero b { font-size: 7cqw; font-weight: 600; line-height: .95; letter-spacing: -0.04em; }
.se-hero span { font-size: 2.8cqw; max-width: 34ch; }
.se-hero i, .se-cta i { align-self: flex-start; font-style: normal; font-weight: 600; font-size: 2.6cqw; background: var(--paper); color: var(--ink); padding: 1.6cqw 3cqw; border-radius: 99px; }
.se-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; font-size: 2.6cqw; }
.se-cols div { display: flex; flex-direction: column; gap: 0.8cqw; }
.se-cols .img { aspect-ratio: 1; border-radius: 1.2cqw; margin-bottom: 1cqw; }
.se-cols b { font-weight: 600; }
.se-text, .se-foot { display: flex; flex-direction: column; gap: 1.4cqw; }
.se-text span, .se-foot span { height: 1.8cqw; border-radius: 1cqw; background: var(--mist); }
.se-cta { display: flex; justify-content: center; }
.se-cta i { background: var(--ink); color: var(--paper); align-self: center; }
.se-foot { padding: 2cqw 0 4cqw; align-items: center; }
.se-foot span { width: 70%; height: 1.4cqw; }

/* ---------- what's included: one toggle, sub-service titles inside ---------- */
/* top-align so opening the list never shifts the heading */
.svc { align-items: start; }
.svc > [data-reveal]:first-child { padding-top: clamp(24px, 4vw, 72px); }
.svc-more { margin-top: 32px; }
.svc-more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 600; padding: 12px 12px 12px 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more summary:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .svc-more summary:hover { background: var(--teal); } }
.svc-more .count { font-size: 14px; min-width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: var(--ink-3); color: var(--lagoon); }
.svc-more .chev { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: transform 320ms var(--ease-out); }
.svc-more .chev svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-more[open] .chev { transform: rotate(180deg); }
.svc-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; max-width: 560px; }
.svc-more li { font-size: 17px; font-weight: 600; padding: 12px 18px; border-radius: 999px; background: var(--paper-alt); }
.f-mist .svc-more li { background: var(--paper); }
.svc-more[open] li { animation: chipIn 420ms var(--ease-spring) both; animation-delay: calc(var(--k) * 45ms); }
@keyframes chipIn { from { opacity: 0; transform: translateY(-8px) scale(0.96); } }

@media (prefers-reduced-motion: reduce) {
  .sa *, .sa { animation: none !important; }
  .sm-symbol { opacity: 0; }
  .sm-logo, .sc-ed .l { clip-path: none; }
  .sc-term span { opacity: 1; }
  .svc-more[open] li { animation: none; }
  .svc-more .chev { transition: none; }
}

.sa img { height: auto; max-width: none; }
.svc-acc details[open] p { color: var(--paper); }
