/* One frame and visual language for service thumbnails and first screens. */
.service-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-areas: "heading visual" "lead visual";
  grid-template-rows: 1fr 1fr;
  gap: 18px clamp(32px, 5vw, 76px);
  margin-top: 28px;
}
.service-heading { grid-area: heading; align-self: end; min-width: 0; }
.service-intro h1 { font-size: clamp(38px, 4.7vw, 70px); margin-top: 20px; overflow-wrap: anywhere; hyphens: auto; }
.service-intro > .lead { grid-area: lead; align-self: start; font-size: clamp(18px, 1.6vw, 23px); margin: 0; max-width: 620px; }
.service-visual { grid-area: visual; align-self: center; margin: 0; min-width: 0; }
.service-art, .service-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  color: var(--ink);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.service-art { width: min(100%, 66svh); margin-inline: auto; }
.service-poster { display: block; width: 100%; height: 100%; }
.service-poster-frame { fill: none; stroke: var(--muted); stroke-width: .8; opacity: .52; }
.service-poster-symbol { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-poster-accent { fill: var(--lime); }
.service-poster-spark { stroke: var(--focus); }
.service-art, .service-thumb {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 18.75%;
  background-position: center;
}
.service-visual figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin: 6px auto 0;
  width: min(100%, 66svh);
  font-size: 12px;
  color: var(--muted);
}
.service-visual-caption a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.service-motion-replay {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--raised);
}
.service-motion-replay[hidden] { display: none; }
.service-motion-replay:hover { border-color: var(--focus); }
.service-intro + .service-layout { margin-top: 38px; }
.service-layout .plain-text { margin-top: 0; }
.service-section .step-list { counter-reset: service-step; }
.service-section .step-list > div { counter-increment: service-step; border-top: 1px solid var(--line); padding-top: 18px; }
.service-section .step-list > div::before { content: counter(service-step); display: block; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.service-section .step-list > div:first-child::before { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.offer-row:has(.service-thumb) { grid-template-columns: 148px minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.service-thumb { width: 148px; transition: opacity 460ms var(--ease), translate 460ms var(--ease), transform 280ms var(--ease); }
[data-service-motion="pending"] { opacity: 0; translate: 0 12px; }
[data-service-motion="shown"] { opacity: 1; translate: 0 0; }
.offer-row:focus-visible .service-thumb { transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) {
  .offer-row:hover .service-thumb { transform: translateY(-2px); }
}
@media (max-width: 1000px) {
  .offer-row:has(.service-thumb) { grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; }
  .service-thumb { width: 112px; }
}
@media (max-width: 800px) {
  .service-intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "visual" "lead"; grid-template-rows: auto; gap: 12px; margin-top: 16px; }
  .service-intro h1 { font-size: clamp(29px, 7.7vw, 52px); margin-top: 10px; }
  .service-art, .service-visual figcaption { width: min(100%, 60svh); }
  .service-intro + .service-layout { margin-top: 28px; }
}
@media (max-width: 650px) {
  .offer-row:has(.service-thumb) { grid-template-columns: 96px minmax(0, 1fr); gap: 8px 18px; align-items: start; }
  .service-thumb { width: 96px; grid-column: 1; grid-row: 1 / 3; margin-top: 3px; }
  .offer-row:has(.service-thumb) :is(h2, h3, p) { grid-column: 2; }
  .offer-row:has(.service-thumb) h2 { font-size: 20px; }
  .offer-row:has(.service-thumb) p { font-size: 14px; }
  .service-page > .service-intro + .service-layout { margin-top: 24px; gap: 20px; }
  .service-intro > .lead { font-size: 16px; line-height: 1.5; }
  .service-visual figcaption { align-items: start; }
  .service-visual-caption { min-width: 0; overflow-wrap: anywhere; }
  .service-page:has(> .service-intro) > :is(.service-section, .service-cta, .case-work-section) {
    margin-block: 24px 0;
  }
  .service-page:has(> .service-intro) > .service-cta { padding: 18px; gap: 12px; }
  .service-section h2 { margin-bottom: 16px; }
  .service-section .step-list { gap: 16px; }
  .service-section .step-list > div { padding-top: 12px; }
  .service-section .step-list > div::before { margin-bottom: 8px; }
  .service-section .step-list h3 { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-service-motion] { opacity: 1 !important; translate: none !important; }
  .service-thumb { transition: none !important; transform: none !important; }
  .service-motion-replay { display: none; }
}
.service-thumb-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.service-film-video {
  position: absolute;
  inset: 12.5% auto auto 10%;
  width: 80%;
  height: 40%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}
.service-thumb-motion :is(.thumb-drone, .thumb-drone-target, .thumb-ai-pixels, .thumb-ai-result, .thumb-camera-view, .thumb-camera-focus, .thumb-camera-shutter, .thumb-brand-brief, .thumb-brand-grid, .thumb-brand-spread, .thumb-edit-cut) {
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  :is([data-thumb-motion], [data-detail-motion]).concept-playing { --thumb-duration: 3000ms; }
  :is([data-thumb-motion="design"], [data-detail-motion="design"]).concept-playing { --thumb-duration: 3400ms; }
  [data-thumb-motion].concept-playing .service-thumb-motion { animation: thumb-stage var(--thumb-duration) ease both; }
  [data-detail-motion].concept-playing .service-thumb-motion { animation: detail-stage var(--thumb-duration) ease both; }
  .concept-playing .service-film-video.is-ready { animation: detail-stage var(--thumb-duration) ease both; }
  .concept-playing .thumb-drone { animation: thumb-flight var(--thumb-duration) ease-in-out both; }
  .concept-playing .thumb-drone-target { animation: thumb-wash var(--thumb-duration) ease-out both; }
  .concept-playing .thumb-rotors { animation: thumb-spin var(--thumb-duration) linear both; }
  .concept-playing .thumb-ai-draft { stroke-dasharray: 1; animation: thumb-draft var(--thumb-duration) ease both; }
  .concept-playing .thumb-ai-pixels { animation: thumb-pixels 1950ms ease both; }
  .concept-playing .thumb-ai-result { animation: thumb-result var(--thumb-duration) ease both; }
  .concept-playing .thumb-camera-view { animation: thumb-camera-view var(--thumb-duration) ease both; }
  .concept-playing .thumb-camera-focus { animation: thumb-camera-focus var(--thumb-duration) ease both; }
  .concept-playing .thumb-camera-shutter { animation: thumb-camera-shutter var(--thumb-duration) linear both; }
  .concept-playing .thumb-camera-record { animation: thumb-camera-record var(--thumb-duration) ease both; }
  .concept-playing .thumb-brand-brief { animation: thumb-brand-brief var(--thumb-duration) ease both; }
  .concept-playing .thumb-brand-grid { animation: thumb-brand-grid var(--thumb-duration) ease both; }
  .concept-playing .thumb-brand-spread { animation: thumb-brand-spread var(--thumb-duration) ease both; }
  .concept-playing .thumb-edit-first { animation: thumb-edit-first var(--thumb-duration) linear both; }
  .concept-playing .thumb-edit-second { animation: thumb-edit-second var(--thumb-duration) linear both; }
  .concept-playing .thumb-edit-third { animation: thumb-edit-third var(--thumb-duration) linear both; }
  .concept-playing .thumb-edit-head { animation: thumb-edit-head var(--thumb-duration) linear both; }
  .concept-playing .thumb-edit-a { animation: thumb-edit-cut 380ms ease 360ms both; }
  .concept-playing .thumb-edit-b { animation: thumb-edit-cut 380ms ease 950ms both; }
  .concept-playing .thumb-edit-c { animation: thumb-edit-cut 380ms ease 1430ms both; }
}
@keyframes thumb-stage { 0%, 100% { opacity: 0; } 12%, 87% { opacity: 1; } }
@keyframes detail-stage { from { opacity: 0; } 12%, 100% { opacity: 1; } }
@keyframes thumb-flight {
  0% { transform: translateY(8px) scale(.78); }
  44%, 55% { transform: translate(9px, -9px) rotate(11deg); }
  83%, 100% { transform: translate(5px, -5px) rotate(4deg); }
}
@keyframes thumb-wash {
  0%, 17% { opacity: 0; transform: scale(.65); }
  32% { opacity: .85; }
  92%, 100% { opacity: 0; transform: scale(1.3); }
}
@keyframes thumb-spin { to { stroke-dashoffset: -128; } }
@keyframes thumb-draft {
  0%, 10% { stroke-dashoffset: 1; opacity: 0; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  60%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes thumb-pixels {
  0%, 14% { opacity: 0; transform: scale(.73); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes thumb-result {
  0%, 44% { opacity: 0; transform: translateY(5px) scale(.93); }
  66%, 100% { opacity: 1; transform: none; }
}
@keyframes thumb-camera-view {
  0%, 9% { opacity: .48; transform: scale(.87); }
  37%, 100% { opacity: 1; transform: none; }
}
@keyframes thumb-camera-focus {
  0%, 12% { opacity: .4; transform: scale(1.8); }
  36%, 63% { opacity: 1; transform: none; }
  78%, 100% { opacity: .7; transform: scale(1.14); }
}
@keyframes thumb-camera-shutter {
  0%, 47%, 59%, 100% { transform: scaleY(0); }
  52%, 55% { transform: scaleY(1); }
}
@keyframes thumb-camera-record {
  0%, 57% { opacity: 0; }
  65%, 100% { opacity: 1; }
}
@keyframes thumb-brand-brief {
  0% { opacity: 0; transform: translateY(8px); }
  13%, 28% { opacity: 1; transform: none; }
  40%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes thumb-brand-grid {
  0%, 30% { opacity: 0; transform: scale(.89); }
  42%, 56% { opacity: 1; transform: none; }
  67%, 100% { opacity: 0; }
}
@keyframes thumb-brand-spread {
  0%, 58% { opacity: 0; transform: scaleX(.2); }
  76%, 100% { opacity: 1; transform: none; }
}
@keyframes thumb-edit-cut {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes thumb-edit-first {
  0%, 30% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@keyframes thumb-edit-second {
  0%, 30%, 65%, 100% { opacity: 0; }
  33%, 62% { opacity: 1; }
}
@keyframes thumb-edit-third {
  0%, 62% { opacity: 0; }
  65%, 100% { opacity: 1; }
}
@keyframes thumb-edit-head {
  0%, 12% { transform: translateX(0); }
  78%, 100% { transform: translateX(98px); }
}
